示例#1
0
        public static IRepository <T> GetRepository <T>() where T : class
        {
            var dbContext = new K9DbContext("k94warriors_dbEntities");

            return(new EFRepository <T>(dbContext));
        }
        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));
        }