摘要:
EF Code First数据库映射规则主要包括以下方面:1、表名及所有者映射Data Annotation:指定表名1 using System.ComponentModel.DataAnnotations;2 3 [Table("Product")]4 public class Product指定表名及用户using System.ComponentModel.DataAnnotations;[Table("Product", Schema = "dbo")]public class ProductFluent API:指定表名1 阅读全文
posted @ 2012-03-29 23:21
libingql
阅读(5672)
评论(2)
推荐(3)

浙公网安备 33010602011771号