コード例 #1
0
 public ProductRepository(SimsDbContext ctx, IMapper mapper)
 {
     this.ctx        = ctx;
     this.DbSet      = ctx.Set <T>();
     this.DbSetDates = ctx.Set <Date>();
     this.mapper     = mapper;
 }
コード例 #2
0
 public LinkedRecordsRepository(SimsDbContext ctx, IMapper mapper, Func <int, string> publicIdGenerator)
 {
     this.ctx               = ctx;
     this.LinkSet           = ctx.Set <LinkDb>();
     this.NoteSet           = ctx.Set <NoteDb>();
     this.mapper            = mapper;
     this.publicIdGenerator = publicIdGenerator;
 }
 public ProductFboRepository(SimsDbContext ctx, IMapper mapper)
 {
     this.ctx    = ctx;
     this.DbSet  = ctx.Set <ProductFBO>();
     this.mapper = mapper;
 }
コード例 #4
0
 public NotesRepository(SimsDbContext ctx, IMapper mapper)
 {
     this.ctx     = ctx;
     this.NoteSet = ctx.Set <NoteDb>();
     this.mapper  = mapper;
 }
コード例 #5
0
 public AttachmentsRepository(SimsDbContext ctx, IMapper mapper)
 {
     this.DbSet  = ctx.Set <AttachmentDb>();
     this.ctx    = ctx;
     this.mapper = mapper;
 }
コード例 #6
0
 public StakeholdersRepository(SimsDbContext ctx, IMapper mapper)
 {
     this.ctx    = ctx;
     this.DbSet  = ctx.Set <T>();
     this.mapper = mapper;
 }