1
我嘗試首先使用EnityFramework代碼創建表映射。我需要從這個基類EntityTypeConfiguration驅動,但我無法找到程序集。我已經添加了EntityFramework。什麼程序集使用EntityTypeConfiguration在EntityFramework中創建表映射
這是我的代碼:沒有定義
using System.Data.Entity.ModelConfiguration;
namespace Domain.Repository.Configuration
{
public class TypeMap : EntityTypeConfiguration
{
public TypeMap()
{
// Table Mapping
}
}
}
EntityTypeConfiguration。
確保你真的下載並在您的工作項目包括的EntityFramework。然後確保intellisense在編寫System.Data.Model.Entity和ModelConfiguration時顯示提示。然後建立你的解決方案可能會有所幫助。 – SergeyAn