/// <summary>
 /// Ctor
 /// </summary>
 /// <param name="entityRepository"></param>
 public CustomEntityTypeController(IEntityApplicationDbContext <CustomEntityType> entityRepository, IMyLogger logger) : base(entityRepository, logger)
 {
 }
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="entityRepository"></param>
 public ActivityController(IEntityApplicationDbContext <RecordedActivity> entityRepository, IMyLogger logger) : base(entityRepository, logger)
 {
 }
 /// <inheritdoc />
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="db">database context</param>
 /// <param name="logger">loggin mechanism</param>
 public InvestmentController(IEntityApplicationDbContext <Investment> db, IMyLogger logger)
     : base(db, logger)
 {
 }
Example #4
0
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="entityRepository"></param>
 /// <param name="logger"></param>
 public BaseEntityControllerFunctionality(IEntityApplicationDbContext <T> entityRepository, IMyLogger logger)
 {
     EntityRepository = entityRepository;
     Logger           = logger;
 }
Example #5
0
 /// <inheritdoc />
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="entityRepository"></param>
 public RefersToAnEntityControllerFunctionality(IEntityApplicationDbContext <T> entityRepository, IMyLogger logger) : base(entityRepository, logger)
 {
 }
 /// <inheritdoc />
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="db"></param>
 /// <param name="logger"></param>
 public RegionController(IEntityApplicationDbContext <Region> db, IMyLogger logger) : base(db, logger)
 {
 }
 /// <summary>
 /// Access to te underlying store of entities for this T type of managed entity controller. This is resolved by depedency injection.
 /// </summary>
 /// <summary>
 /// Constructor for dependency injection support
 /// </summary>
 /// <param name="logger"></param>
 /// <param name="db"></param>
 public EntityManagedController(IEntityApplicationDbContext <T> db, IMyLogger logger) : base(db, logger)
 {
     Logger = logger;
 }
 /// <summary>
 /// Access to te underlying store of entities for this T type of managed entity controller. This is resolved by depedency injection.
 /// </summary>
 /// <summary>
 /// Constructor for dependency injection support
 /// </summary>
 /// <param name="logger"></param>
 /// <param name="db"></param>
 public CustomEntityController(IEntityApplicationDbContext <CustomEntity> db, IMyLogger logger) : base(db, logger)
 {
 }
Example #9
0
 /// <summary>
 /// Access to te underlying store of entities for this T type of managed entity controller. This is resolved by depedency injection.
 /// </summary>
 /// <summary>
 /// Constructor for dependency injection support
 /// </summary>
 /// <param name="logger"></param>
 /// <param name="db"></param>
 public TransactionController(IEntityApplicationDbContext <InvestmentTransaction> db, IMyLogger logger) : base(db, logger)
 {
 }
 /// <inheritdoc />
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="db"></param>
 /// <param name="logger"></param>
 public FactorController(IEntityApplicationDbContext <InvestmentInfluenceFactor> db, IMyLogger logger)
     : base(db, logger)
 {
 }
Example #11
0
 public void AddEntityApplicationDbContext(IEntityApplicationDbContext <T> entityRepo)
 {
     EntityRepository = entityRepo;
 }