摘要:DataAnnotations - Column Attribute: Column attribute can be applied to properties of a class. Default Code First convention creates a column name same 阅读全文
Entity Framework Code-First(9.8):DataAnnotations - Column Attribute
2016-07-05 16:37 by 追忆似水流年, 218 阅读, 0 推荐, 收藏, 编辑Entity Framework Code-First(9.7):DataAnnotations - Table Attribute
2016-07-05 16:35 by 追忆似水流年, 224 阅读, 0 推荐, 收藏, 编辑
摘要:DataAnnotations - Table Attribute: Table attribute can be applied to a class. Default Code-First convention creates a table name same as the class nam 阅读全文
Entity Framework Code-First(9.6):DataAnnotations - StringLength Attribute
2016-07-05 16:33 by 追忆似水流年, 267 阅读, 0 推荐, 收藏, 编辑
摘要:DataAnnotations - StringLength Attribute: StringLength attribute can be applied to a string type property of a class. EF Code-First will set the size 阅读全文
Entity Framework Code-First(9.5):DataAnnotations - MaxLength Attribute
2016-07-05 16:32 by 追忆似水流年, 286 阅读, 0 推荐, 收藏, 编辑
摘要:DataAnnotations - MaxLength Attribute: MaxLength attribute can be applied to a string or array type property of a domain class. EF Code First will set 阅读全文
Entity Framework Code-First(9.4):DataAnnotations - Required Attribute
2016-07-05 16:30 by 追忆似水流年, 175 阅读, 0 推荐, 收藏, 编辑
摘要:Required attribute can be applied to a property of a domain class. EF Code-First will create a NOT NULL column in a database table for a property on w 阅读全文
Entity Framework Code-First(9.3):DataAnnotations - ConcurrencyCheck Attribute
2016-07-05 16:29 by 追忆似水流年, 251 阅读, 0 推荐, 收藏, 编辑
摘要:ConcurrencyCheck Attribute: ConcurrencyCheck attribute can be applied to a property of a domain class. Code First takes the value of a column in "wher 阅读全文
Entity Framework Code-First(9.2):DataAnnotations - TimeStamp Attribute
2016-07-05 16:27 by 追忆似水流年, 231 阅读, 0 推荐, 收藏, 编辑
摘要:DataAnnotations - TimeStamp Attribute: TimeStamp attribute can be applied to only one byte array property of a domain class. TimeStamp attribute creat 阅读全文
Entity Framework Code-First(9.1):DataAnnotations - Key Attribute
2016-07-05 16:25 by 追忆似水流年, 198 阅读, 0 推荐, 收藏, 编辑
摘要:DataAnnotations - Key Attribute: Key attribute can be applied to properties of a class. Default Code-First convention creates a primary key column for 阅读全文
Entity Framework Code-First(9):DataAnnotations
2016-07-05 16:23 by 追忆似水流年, 257 阅读, 0 推荐, 收藏, 编辑
摘要:DataAnnotations in Code-First: EF Code-First provides a set of DataAnnotation attributes, which you can apply to your domain classes and properties. D 阅读全文
Entity Framework Code-First(8):Configure Domain Classes
2016-07-05 16:22 by 追忆似水流年, 219 阅读, 0 推荐, 收藏, 编辑
摘要:Configure Domain Classes in Code-First: We learned default Code-First Conventions in the previous section. Code-First builds conceptual model from you 阅读全文