Example #1
0
 static void ConfigureServices(IServiceCollection services, EquinoxContext context)
 {
     services.AddSingleton(_ => context);
     services.AddSingleton(sp => new ServiceBuilder(context, Serilog.Log.ForContext <EquinoxContext>()));
     services.AddSingleton(sp => sp.GetRequiredService <ServiceBuilder>().CreateTodoService());
     services.AddSingleton(sp => sp.GetRequiredService <ServiceBuilder>().CreateAggregateService());
 }
Example #2
0
        static void ConfigureServices(IServiceCollection services, EquinoxContext context)
        {
            services.AddSingleton(_ => context);
            services.AddSingleton(sp => new ServiceBuilder(context, Serilog.Log.ForContext <EquinoxContext>()));
#if todos
            services.AddSingleton(sp => sp.GetRequiredService <ServiceBuilder>().CreateTodoService());
#endif
#if aggregate
            services.AddSingleton(sp => sp.GetRequiredService <ServiceBuilder>().CreateAggregateService());
#endif
#if (!aggregate && !todos)
            //services.Register(fun sp -> sp.Resolve<ServiceBuilder>().CreateThingService())
#endif
        }
Example #3
0
 public Repository(EquinoxContext context)
 {
     Db    = context;
     DbSet = Db.Set <TEntity>();
 }
Example #4
0
 public CustomerRepository(EquinoxContext context)
     : base(context)
 {
 }
Example #5
0
 public UnitOfWork(EquinoxContext context)
 {
     _context = context;
 }
Example #6
0
 public ServiceBuilder(EquinoxContext context, ILogger handlerLog)
 {
     _context    = context;
     _handlerLog = handlerLog;
 }
Example #7
0
 public BongRepository(EquinoxContext context) : base(context)
 {
 }
Example #8
0
 public ConfigRepository(EquinoxContext context)
     : base(context)
 {
 }
 public SysModuleRepository(EquinoxContext context) : base(context)
 {
 }
Example #10
0
 public EventStoreSQLRepository(EquinoxContext context)
 {
     _context = context;
 }
Example #11
0
 public RefferalRepository(EquinoxContext context)
     : base(context)
 {
 }
Example #12
0
 public TransactionRepository(EquinoxContext context)
     : base(context)
 {
 }
Example #13
0
 public EquinoxUnitOfWork(EquinoxContext context) : base(context)
 {
     _context = context;
 }
 public ProductRepository(EquinoxContext context)
     : base(context)
 {
 }
 public UnitOfWork(EquinoxContext equinoxContext)
 {
     _equinoxContext = equinoxContext;
 }
Example #16
0
 public CustomerRepository(EquinoxContext context)
 {
     Db    = context;
     DbSet = Db.Set <Customer>();
 }
Example #17
0
 public CurrencyRepository(EquinoxContext context)
     : base(context)
 {
 }