通用存储库模式中的实体框架数据库优先方法

时间:2016-12-27 06:05:23

标签: c# entity-framework repository-pattern ef-database-first

我有一个包含50多个与我的应用程序相关的表的数据库。因此,对于此项目,我是否可以使用Entity Framework和数据库优先方法实现通用存储库模式。

我尝试了类似下面的内容,我试图澄清我的方法是否正确。

核心项目:

DataModel(Folder)
  DataBaseModel.edmx
Interfaces(Folder)
 Base(Folder)
   IGenericInterface.cs    
 OtherInterfaces(Files)

基础设施项目:

 DataContext(Folder)
   ApplicationDbContext.cs
 Repository(Folder)
  Base(Folder)
    GenericRepository.cs          
  OtherRepositories(Files) 

0 个答案:

没有答案
相关问题