mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-09-20 10:37:55 +08:00
调整代码生成器
This commit is contained in:
@@ -16,24 +16,10 @@ namespace OpenAuth.App
|
||||
/// <typeparam name="T"></typeparam>
|
||||
public class BaseLongApp<T, TDbContext> :BaseApp<T,TDbContext> where T : LongEntity where TDbContext: DbContext
|
||||
{
|
||||
/// <summary>
|
||||
/// 用于普通的数据库操作
|
||||
/// </summary>
|
||||
protected IRepository<T, TDbContext> Repository;
|
||||
|
||||
/// <summary>
|
||||
/// 用于事务操作
|
||||
/// <para>使用详见:http://doc.openauth.me/core/unitwork.html</para>
|
||||
/// </summary>
|
||||
protected IUnitWork<TDbContext> UnitWork;
|
||||
|
||||
protected IAuth _auth;
|
||||
|
||||
public BaseLongApp(IUnitWork<TDbContext> unitWork, IRepository<T,TDbContext> repository, IAuth auth) : base(unitWork, repository,auth)
|
||||
{
|
||||
UnitWork = unitWork;
|
||||
Repository = repository;
|
||||
_auth = auth;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user