上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 46 下一页
摘要: 原文:http://www.entityframeworktutorial.net/code-first/configure-one-to-many-relationship-in-code-first.aspx 本节,我们将学习如何在Code First中配置两个实体之间的一对多关系。 举一个St 阅读全文
posted @ 2017-08-04 14:28 talentzemin 阅读(258) 评论(0) 推荐(0)
摘要: 原文:http://www.entityframeworktutorial.net/code-first/configure-one-to-one-relationship-in-code-first.aspx 本节,我们将配置两个实体之间的一对零或者一对一关系。例如, Entity1可以与零个或仅 阅读全文
posted @ 2017-08-02 15:46 talentzemin 阅读(244) 评论(0) 推荐(0)
摘要: 原文:http://www.entityframeworktutorial.net/code-first/configure-property-mappings-using-fluent-api.aspx 本节,我们将学习如何使用Fluent API配置实体类的属性。 我们将使用我们学校app的St 阅读全文
posted @ 2017-08-01 14:52 talentzemin 阅读(282) 评论(0) 推荐(0)
摘要: 原文:http://www.entityframeworktutorial.net/code-first/configure-entity-mappings-using-fluent-api.aspx 本节,我们将学习如何使用Fluent API配置实体。 我们将使用以下学校app的Student和 阅读全文
posted @ 2017-08-01 14:24 talentzemin 阅读(285) 评论(0) 推荐(0)
摘要: 原文:http://www.entityframeworktutorial.net/code-first/entitytypeconfiguration-class.aspx 在我们开始使用Fluent API进行配置之前,我们来看看一个重要的Fluent API类。 EntityTypeConfi 阅读全文
posted @ 2017-08-01 14:05 talentzemin 阅读(516) 评论(0) 推荐(0)
摘要: 原文:http://www.entityframeworktutorial.net/code-first/fluent-api-in-code-first.aspx 在前面的学习中。我们已经看到不同的DataAnnotations属性来覆盖默认的Code-First约定。 本节,我们将了解Fluen 阅读全文
posted @ 2017-08-01 13:51 talentzemin 阅读(229) 评论(0) 推荐(0)
摘要: 原文:http://www.entityframeworktutorial.net/code-first/inverseproperty-dataannotations-attribute-in-code-first.aspx 我们已经学习,如果你没有在父类中包含外键属性,那么Code-First会 阅读全文
posted @ 2017-07-21 16:40 talentzemin 阅读(466) 评论(0) 推荐(0)
摘要: 原文:http://www.entityframeworktutorial.net/code-first/notmapped-dataannotations-attribute-in-code-first.aspx NotMapped属性可以应用于类的属性。 默认的Code-First约定为包含ge 阅读全文
posted @ 2017-07-21 16:29 talentzemin 阅读(241) 评论(0) 推荐(0)
摘要: 原文:http://www.entityframeworktutorial.net/code-first/foreignkey-dataannotations-attribute-in-code-first.aspx ForeignKey属性可以应用于类的属性。对于ForeignKey关系, 默认C 阅读全文
posted @ 2017-07-21 16:25 talentzemin 阅读(509) 评论(0) 推荐(0)
摘要: 原文:http://www.entityframeworktutorial.net/code-first/column-dataannotations-attribute-in-code-first.aspx Column属性可以应用于类的属性。 默认Code First约定创建与名称相同的列名称。 阅读全文
posted @ 2017-07-21 16:09 talentzemin 阅读(242) 评论(0) 推荐(0)
上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 46 下一页