[英]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.