예제 #1
0
        public GrillBotRepository(Configuration config)
        {
            if (string.IsNullOrEmpty(config.Database))
            {
                throw new ArgumentException("Missing databse connection string in configuration");
            }

            Context = new GrillBotContext(config.Database);

            InitRepositories();
        }
예제 #2
0
 public GrillBotRepository(GrillBotContext context)
 {
     Context      = context;
     Repositories = new List <RepositoryBase>();
 }
예제 #3
0
 protected RepositoryBase(GrillBotContext context)
 {
     Context = context;
 }