示例#1
0
 public static T GetByInterface <T>(this IDbContextCollection collection) where T : class, IDbContext
 {
     return(GetDbContextFromCollection(collection, typeof(T)) as T);
 }
示例#2
0
 protected abstract DbContext GetDbContext(IDbContextCollection dbContextCollection);