示例#1
0
 /// <summary>
 ///
 /// </summary>
 /// <typeparam name="TEntity"></typeparam>
 /// <typeparam name="TKey"></typeparam>
 /// <param name="repository"></param>
 /// <returns></returns>
 public static DbContext GetDbContext <TEntity, TKey>(this IBasicRepository <TEntity, TKey> repository)
     where TEntity : class, IEntity <TKey>
 {
     return(repository.ToEfCoreRepository().DbContext);
 }