Skip to main content
added 22 characters in body
Source Link
Ewan
  • 84.4k
  • 5
  • 91
  • 189
MyModels - class lib. No dependencies

IMyDataRepository - interface. Depends on MyModels

MyDataRepository_EfSql - depends on MyModels and IMyDataRepository and Entity framework
private EF Context
private EF Models
private EF Model to Domain Model mapping

MyApplication - depends on all three. But the repository is loosely coupled via dependency injection
  • MyModels - class lib. No dependencies

  • IMyDataRepository - interface. Depends on MyModels

  • MyDataRepository_EfSql - depends on MyModels and IMyDataRepository
    and Entity framework - private EF Context private EF Models

    - private EF Model to Domain Model mapping
    
  • MyApplication - depends on all three. But the repository is loosely
    coupled via dependency injection

MyModels - class lib. No dependencies

IMyDataRepository - interface. Depends on MyModels

MyDataRepository_EfSql - depends on MyModels and IMyDataRepository and Entity framework
private EF Context
private EF Models
private EF Model to Domain Model mapping

MyApplication - depends on all three. But the repository is loosely coupled via dependency injection
  • MyModels - class lib. No dependencies

  • IMyDataRepository - interface. Depends on MyModels

  • MyDataRepository_EfSql - depends on MyModels and IMyDataRepository
    and Entity framework - private EF Context private EF Models

    - private EF Model to Domain Model mapping
    
  • MyApplication - depends on all three. But the repository is loosely
    coupled via dependency injection

added 115 characters in body
Source Link
Ewan
  • 84.4k
  • 5
  • 91
  • 189

MyModels - class lib. No dependencies

IMyDataRepository - interface. Depends on MyModels

MyDataRepository_EfSql - depends on MyModels and IMyDataRepository and Entity framework

MyApplication - depends on all three. But the repository is loosely coupled via dependency injection

MyModels - class lib. No dependencies

IMyDataRepository - interface. Depends on MyModels

MyDataRepository_EfSql - depends on MyModels and IMyDataRepository and Entity framework
private EF Context
private EF Models
private EF Model to Domain Model mapping

MyApplication - depends on all three. But the repository is loosely coupled via dependency injection

MyModels - class lib. No dependencies

IMyDataRepository - interface. Depends on MyModels

MyDataRepository_EfSql - depends on MyModels and IMyDataRepository and Entity framework

MyApplication - depends on all three. But the repository is loosely coupled via dependency injection

MyModels - class lib. No dependencies

IMyDataRepository - interface. Depends on MyModels

MyDataRepository_EfSql - depends on MyModels and IMyDataRepository and Entity framework
private EF Context
private EF Models
private EF Model to Domain Model mapping

MyApplication - depends on all three. But the repository is loosely coupled via dependency injection
Source Link
Ewan
  • 84.4k
  • 5
  • 91
  • 189

MyModels - class lib. No dependencies

IMyDataRepository - interface. Depends on MyModels

MyDataRepository_EfSql - depends on MyModels and IMyDataRepository and Entity framework

MyApplication - depends on all three. But the repository is loosely coupled via dependency injection