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