示例#1
0
 public DefaultRPGCharacterRepository(IDBContextAdapter <RPGCharacterDatabaseContext <TRaceType, TClassType> > contextAdapter)
     : base(contextAdapter.Context.Set <DBRPGCharacter>(), contextAdapter.Context)
 {
     if (contextAdapter == null)
     {
         throw new ArgumentNullException(nameof(contextAdapter));
     }
     Context = contextAdapter.Context;
 }
示例#2
0
 public NonGenericCharacterDatabaseContextAdapter(RPGCharacterDatabaseContext <TCustomizableSlotType, TColorStructureType, TProportionSlotType, TProportionStructureType, TRaceType, TClassType, TSkillType, TStatType> context)
 {
     _Context = context ?? throw new ArgumentNullException(nameof(context));
 }
示例#3
0
 public DefaultRPGCharacterAppearanceRepository(RPGCharacterDatabaseContext <TCustomizableSlotType, TColorStructureType, TProportionSlotType, TProportionStructureType, TRaceType, TClassType, TSkillType, TStatType> context)
 {
     Context = context ?? throw new ArgumentNullException(nameof(context));
 }