Esempio n. 1
0
        protected ParentTest()
        {
            var configuration = new ConfigurationBuilder()
                                .AddJsonFile("appsettings.json")
                                .Build();

            var options = new DbContextOptionsBuilder();

            options.UseNpgsql(configuration.GetConnectionString("ImmedisDbConnection"));

            ImmedisDbContext = new ImmedisDbContext(options.Options);
        }
Esempio n. 2
0
 public EmployeeService(ImmedisDbContext dbContext)
 {
     _dbContext = dbContext;
 }
Esempio n. 3
0
 public CommentService(ImmedisDbContext dbContext)
 {
     _dbContext = dbContext;
 }