EntityFramework用法探索(二)CodeFirst

Code First,顾名思义,要先写Code,而不是先建立数据库内容。 同样使用与上文 Database First 模式相同的例子,假设需要设计一个零售系统,我们先构建一个 Customer 类。 1 [Table("Customer", Schema = "STORE")] 2 public class Customer 3 { 4 [Key] 5 [D
相关文章
相关标签/搜索