2016-01-21 53 views
1

我嘗試首先使用EnityFramework代碼創建表映射。我需要從這個基類EntityTypeConfiguration驅動,但我無法找到程序集。我已經添加了EntityFramework。什麼程序集使用EntityTypeConfiguration在EntityFramework中創建表映射

這是我的代碼:沒有定義

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

    public TypeMap() 
    { 
     // Table Mapping 

    } 
} 
} 

EntityTypeConfiguration。

回答

1

命名空間:System.Data.Entity.ModelConfiguration 大會:的EntityFramework(在EntityFramework.dll)

看到這個https://msdn.microsoft.com/en-us/library/gg696117%28v=vs.103%29.aspx

+1

確保你真的下載並在您的工作項目包括的EntityFramework。然後確保intellisense在編寫System.Data.Model.Entity和ModelConfiguration時顯示提示。然後建立你的解決方案可能會有所幫助。 – SergeyAn

相關問題