Example #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);
        }
 public EmployeeService(ImmedisDbContext dbContext)
 {
     _dbContext = dbContext;
 }
Example #3
0
 public CommentService(ImmedisDbContext dbContext)
 {
     _dbContext = dbContext;
 }