代码改变世界

Entity Framework Code-First(13):Configure Many-to-Many

2016-07-05 17:02 by 追忆似水流年, 192 阅读, 0 推荐, 收藏, 编辑
摘要:Configure Many-to-Many relationship: Here, we will learn how to configure Many-to-Many relationship between the Student and Course entity classes. Stu 阅读全文

Entity Framework Code-First(12):Configure One-to-Many

2016-07-05 17:00 by 追忆似水流年, 278 阅读, 0 推荐, 收藏, 编辑
摘要:Configure One-to-Many Relationship: Here, we will learn how to configure One-to-Many relationship between two entities in code-first. Take an example 阅读全文

Entity Framework Code-First(11):Configure One-to-One

2016-07-05 16:57 by 追忆似水流年, 274 阅读, 0 推荐, 收藏, 编辑
摘要:Configure One-to-Zero-or-One Relationship: Here, we will configure One-to-Zero-or-One relationship between two entities, e.g. Entity1 can be associate 阅读全文

Entity Framework Code-First(10.3):Property Mappings

2016-07-05 16:54 by 追忆似水流年, 147 阅读, 0 推荐, 收藏, 编辑
摘要:Property Mappings using Fluent API: Here, we will learn how to configure properties of an entity class using Fluent API. We will use the following Stu 阅读全文

Entity Framework Code-First(10.2):Entity Mappings

2016-07-05 16:51 by 追忆似水流年, 243 阅读, 0 推荐, 收藏, 编辑
摘要:Entity Mappings using Fluent API: Here, we will learn how to configure an entity using Fluent API. We will use the following Student and Standard doma 阅读全文

Entity Framework Code-First(10.1):EntityTypeConfiguration

2016-07-05 16:48 by 追忆似水流年, 615 阅读, 0 推荐, 收藏, 编辑
摘要:EntityTypeConfiguration Class in Code-First: Before we start to configure using Fluent API, let's see an important class of Fluent API. EntityTypeConf 阅读全文

Entity Framework Code-First(10):Fluent API

2016-07-05 16:47 by 追忆似水流年, 187 阅读, 0 推荐, 收藏, 编辑
摘要:Fluent API in Code-First: We have seen different DataAnnotations attributes in the previous sections to override default Code-First Conventions. Here, 阅读全文

Entity Framework Code-First(9.11):DataAnnotations - InverseProperty Attribute

2016-07-05 16:43 by 追忆似水流年, 188 阅读, 0 推荐, 收藏, 编辑
摘要:DataAnnotations - InverseProperty Attribute: We have seen in the Code-First Convention section that Code-First creates {Class Name}_{Primary Key} fore 阅读全文

Entity Framework Code-First(9.10):DataAnnotations - NotMapped Attribute

2016-07-05 16:41 by 追忆似水流年, 231 阅读, 0 推荐, 收藏, 编辑
摘要:DataAnnotations - NotMapped Attribute: NotMapped attribute can be applied to properties of a class. Default Code-First convention creates a column for 阅读全文

Entity Framework Code-First(9.9):DataAnnotations - ForeignKey Attribute

2016-07-05 16:39 by 追忆似水流年, 446 阅读, 0 推荐, 收藏, 编辑
摘要:DataAnnotations - ForeignKey Attribute: ForeignKey attribute can be applied to properties of a class. Default Code-First convention for ForeignKey rel 阅读全文
上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 41 下一页