예제 #1
0
 public Repository(DDDContext context)
 {
     Db = context;
     //DbSet = Db.Set<T>();
 }
 public RepositoryBase(DDDContext db) => Db = db;
예제 #3
0
 public ProductRepository(DDDContext context) : base(context)
 {
 }
예제 #4
0
 public ClienteRepository(DDDContext context) : base(context)
 {
 }
예제 #5
0
 public CityRepository(DDDContext ctx) : base(ctx)
 {
 }
예제 #6
0
 public RepositoryBase(DDDContext ctx)
 {
     this.db = ctx;
 }
예제 #7
0
 public void SetContext(string conn)
 {
     ctx = new DDDContext(conn);
 }
예제 #8
0
 public RepositoryBase()
 {
     ctx = new DDDContext();
 }
예제 #9
0
 public UserRepository(DDDContext context) : base(context)
 {
 }
예제 #10
0
 public CustomerRepository(DDDContext context) : base(context)
 {
 }
예제 #11
0
 public BaseRepository(DDDContext context)
 {
     _context = context;
     _dataSet = context.Set <TEntity>();
 }