public GrillBotRepository(Configuration config) { if (string.IsNullOrEmpty(config.Database)) { throw new ArgumentException("Missing databse connection string in configuration"); } Context = new GrillBotContext(config.Database); InitRepositories(); }
public GrillBotRepository(GrillBotContext context) { Context = context; Repositories = new List <RepositoryBase>(); }
protected RepositoryBase(GrillBotContext context) { Context = context; }