Пример #1
0
        public static IRepository <T> GetRepository <T>() where T : class
        {
            var dbContext = new K9DbContext("k94warriors_dbEntities");

            return(new EFRepository <T>(dbContext));
        }
Пример #2
0
        public static IRepository <T> GetRepository <T>() where T : class
        {
            var dbContext = new K9DbContext("K9");

            return(new EFRepository <T>(dbContext));
        }
Пример #3
0
        public static IRepository <T> GetRepository <T>(string connectionName) where T : class
        {
            var dbContext = new K9DbContext(connectionName);

            return(new EFRepository <T>(dbContext));
        }