コード例 #1
0
 public CustomerController(ICodeGenericRepository <CustomerEntity, CustomerDto, CustomerDto> codeGenericRepository,
                           DatabaseContext context)
     : base(codeGenericRepository, context)
 {
     _codeGenericRepository = codeGenericRepository;
     _context = context;
     _entity  = _context.Set <CustomerEntity>();
 }
コード例 #2
0
 public CodeGenericController(ICodeGenericRepository <TEntity, TDto, TCreationDto> genericRepository, DatabaseContext context) : base(genericRepository, context)
 {
     _context           = context;
     _entities          = _context.Set <TEntity>();
     _genericRepository = genericRepository;
 }