示例#1
0
 public EditModel(LarpBuilderContext larpBuilderContext, ICharacterRepository characterRepository,
                  ISkillRepository skillRepository)
 {
     _larpBuilderContext  = larpBuilderContext;
     _characterRepository = characterRepository;
     _skillRepository     = skillRepository;
 }
        /*private readonly LarpBuilderContext _dbContext;
         * private readonly IMapper _mapper;*/

        public CharacterRepository(
            [Service] LarpBuilderContext dbContext,
            [Service] IMapper mapper,
            [Service] IDapperDataSession dapperDataSession) : base(dbContext, mapper)
        {
            _dapperDataSession = dapperDataSession;
        }
 public SkillRepository(
     [Service] LarpBuilderContext dbContextEF,
     [Service] IMapper mapper,
     [Service] IDapperDataSession dapperDataSessionLarpBuilderContext
     ) : base(dbContextEF, mapper)
 {
     _dbContextEf = dbContextEF;
     _mapper      = mapper;
     _dapperDataSessionLarpBuilderContext = dapperDataSessionLarpBuilderContext;
 }
示例#4
0
 protected RepositoryBase([Service] LarpBuilderContext dbContext, [Service] IMapper mapper)
 {
     _dbContext = dbContext;
     _mapper    = _mapper;
 }
示例#5
0
 public EditModel(LarpBuilderContext larpBuilderContext)
 {
     _larpBuilderContext = larpBuilderContext;
 }
示例#6
0
 public IndexModelSkill(LarpBuilderContext context)
 {
     _context = context;
 }
 public CreateModel(LarpBuilderContext context)
 {
     _context = context;
 }
 public EditModelSkill(LarpBuilderContext larpBuilderContext,
                       ISkillRepository skillRepository)
 {
     _larpBuilderContext = larpBuilderContext;
     _skillRepository    = skillRepository;
 }