日期:2014-05-20 浏览次数:20733 次
public class Category
{
public string CategoryId { get; set; }
public string Name { get; set; }
}
public class ProductContext2 : DbContext
{
public DbSet<Category> Categories1 { get; set; }
public DbSet<Category> Categories2 { get; set; }
}
public class Category1: Category
{
}
public class ProductContext2 : DbContext
{
public DbSet<Category1> Categories1 { get; set; }
public DbSet<Category2> Categories2 { get; set; }
}