My code is like this
我的代码是这样的
public class Address
{
public int Id { get; set; }
public string City { get; set; }
public int PostNo { get; set; }
public string Street { get; set; }
}
public class ApplicationDbContext : IdentityDbContext<ApplicationUser>
{
public ApplicationDbContext()
: base("DefaultConnection", throwIfV1Schema: false)
{
}
public static ApplicationDbContext Create()
{
return new ApplicationDbContext();
}
public System.Data.Entity.DbSet<MearnIt.Models.Address> Addresses { get; set; }
}
public class