Class UnitOfWorkServiceCollectionExtensions
- Namespace
- Biwen.QuickApi.UnitOfWork
- Assembly
- Biwen.QuickApi.dll
[SuppressType]
public static class UnitOfWorkServiceCollectionExtensions
- Inheritance
-
UnitOfWorkServiceCollectionExtensions
- Inherited Members
Methods
AddCustomRepository<TEntity, TRepository>(IServiceCollection)
public static IServiceCollection AddCustomRepository<TEntity, TRepository>(this IServiceCollection services) where TEntity : class where TRepository : class, IRepository<TEntity>
Parameters
services
IServiceCollection
Returns
Type Parameters
TEntity
TRepository
AddUnitOfWork<TContext>(IServiceCollection)
添加工作单元
public static IServiceCollection AddUnitOfWork<TContext>(this IServiceCollection services) where TContext : DbContext
Parameters
services
IServiceCollection
Returns
Type Parameters
TContext
AddUnitOfWork<TContext1, TContext2>(IServiceCollection)
添加工作单元
public static IServiceCollection AddUnitOfWork<TContext1, TContext2>(this IServiceCollection services) where TContext1 : DbContext where TContext2 : DbContext
Parameters
services
IServiceCollection
Returns
Type Parameters
TContext1
TContext2
AddUnitOfWork<TContext1, TContext2, TContext3>(IServiceCollection)
public static IServiceCollection AddUnitOfWork<TContext1, TContext2, TContext3>(this IServiceCollection services) where TContext1 : DbContext where TContext2 : DbContext where TContext3 : DbContext
Parameters
services
IServiceCollection
Returns
Type Parameters
TContext1
TContext2
TContext3