/// <summary> /// Initializes a new instance of the <see cref="AuthController"/> class. /// </summary> /// <param name="authService"> /// The service. /// </param> /// <param name="logger"> /// The logger. /// </param> /// <param name="context"> /// The context. /// </param> public AuthController( IAuthenticateService authService, ILogger <AuthController> logger, TmContext context) { this.authService = authService; this.logger = logger; this.context = context; }
/// <summary> /// Initializes a new instance of the <see cref="FileController"/> class. /// </summary> /// <param name="logger"> /// The logger. /// </param> /// <param name="repositoryWrapper"> /// The repository wrapper. /// </param> /// <param name="context"> /// The context. /// </param> public FileController(ILogger <FileController> logger, IRepositoryWrapper repositoryWrapper, TmContext context) { this.logger = logger; this.context = context; if (this.document == null) { this.document = new Document(context); } }
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostingEnvironment env, TmContext context) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } app.UseSignalR(route => { route.MapHub <TripUpdateHub>("/tripshub"); }); app.UseMvc(); Initialize(context); }
public RepositoryWrapper(TmContext tmContext, ICallRepository call) { context = tmContext; this.call = call; }
public ManyToManyRepository(TmContext tmContext) : base(tmContext) { }
public CallRepository(TmContext tmContext) : base(tmContext) { }
protected RepositoryBase(TmContext tmContext) { this.dbContext = tmContext; this.dbSet = tmContext.Set <TEntity>(); }
public QueryableRepository(TmContext tmContext) : base(tmContext) { }
public DbRepository(TmContext tmContext) : base(tmContext) { }
/// <summary> /// Initializes a new instance of the <see cref="Document"/> class. /// </summary> /// <param name="context"> /// The context. /// </param> public Document(TmContext context) { this.context = context; }
protected RepositoryBase(TmContext tmContext) { TmContext = tmContext; }
public UnitOfWork(TmContext context) { _context = context; }
public DbService(TmContext context, IHttpClientFactory clientFactory) { _ctx = context; _clientFactory = clientFactory; }
public static void Initialize(TmContext context) { context.Database.Migrate(); }