简体   繁体   English

什么程序集使用EntityTypeConfiguration在EntityFramework中创建表映射

[英]what assembly use to create Table mapping in EntityFramework using EntityTypeConfiguration

I try to create table mapping with EnityFramework code first. 我尝试首先使用EnityFramework代码创建表映射。 I need to drive from this base class EntityTypeConfiguration but I am not able to find the assembly. 我需要从该基类EntityTypeConfiguration驱动,但是我找不到该程序集。 I already added the EntityFramework. 我已经添加了EntityFramework。

This is my code: 这是我的代码:

     using System.Data.Entity.ModelConfiguration;
     namespace Domain.Repository.Configuration
  {
  public class TypeMap : EntityTypeConfiguration
   {

    public TypeMap()
    {
        // Table Mapping

    }
 }
}

EntityTypeConfiguration is not defined. 未定义EntityTypeConfiguration。

Namespace: System.Data.Entity.ModelConfiguration Assembly: EntityFramework (in EntityFramework.dll) 命名空间:System.Data.Entity.ModelConfiguration程序集:EntityFramework(在EntityFramework.dll中)

See this https://msdn.microsoft.com/en-us/library/gg696117%28v=vs.103%29.aspx 看到这个https://msdn.microsoft.com/en-us/library/gg696117%28v=vs.103%29.aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 EntityFramework:使用EntityTypeConfiguration映射具有列表的类 - EntityFramework: Using EntityTypeConfiguration to map a class that has a List C#EntityFramework 6.0-如何在EntityTypeConfiguration中使用Where语句? - C# EntityFramework 6.0 - How to use Where Statement in EntityTypeConfiguration? 动态调用EntityFramework EntityTypeConfiguration &lt;&gt;。HasKey - Dynamic Call To EntityFramework EntityTypeConfiguration<>.HasKey EF Core 映射实体类型配置 - EF Core Mapping EntityTypeConfiguration EntityFramework映射-此映射有什么问题? - EntityFramework mappings - what is wrong with this mapping? 使用代码优先和自定义EntityTypeConfiguration实现将复杂类型的属性映射到EF 6中的DB列 - Mapping Properties of type of Complex Type to DB Columns in EF 6 using code first and custom EntityTypeConfiguration implementation EntityFramework-每种类型的表(TPT)继承和与CodeFirst的映射关系 - EntityFramework - Table per Type (TPT) Inheritance and Mapping Relationships with CodeFirst EntityFramework总是创建新的关系表记录 - EntityFramework always create new relation table record &#39;EntityFramework&#39;组装错误 - 'EntityFramework' assembly error 无法找到程序集“EntityFramework” - Could not locate assembly “EntityFramework”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM