阅读背景:

如何将列映射到实体框架中的另一个表?

来源:互联网 

Lets say i have two classes,

假设我有两节课,

public class UserBio {
        [Key]
        public string Id { get; set; }
        [Required]
        [Display(Name = "First Name")]
        public string FirstName { get; set; }
        [Required]
        [Display(Name = "Last Name")]
        public string LastName { get; set; }
      }





 public class UserPosts
        {
            [Key]
            public int PostId { get; set; }
            public string CreatedBy { get; set; }
            public string Description { get; set; }
        }
publi



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: