This commit is contained in:
yubaolee
2017-11-29 18:26:36 +08:00
parent 503f92d68e
commit e36664d5f6
27 changed files with 3565 additions and 3515 deletions

24
OpenAuth.App/BaseApp.cs Normal file
View File

@@ -0,0 +1,24 @@
using OpenAuth.Domain;
using OpenAuth.Domain.Interface;
namespace OpenAuth.App
{
/// <summary>
/// 业务层基类UnitWork用于事务操作Repository用于普通的数据库操作
/// <para>如用户管理Class UserManagerApp:BaseApp<User></para>
/// </summary>
/// <typeparam name="T"></typeparam>
public class BaseApp<T> where T:Entity
{
/// <summary>
/// 用于事务操作
/// </summary>
/// <value>The unit work.</value>
public IUnitWork UnitWork { get; set; }
/// <summary>
/// 用于普通的数据库操作
/// </summary>
/// <value>The repository.</value>
public IRepository<T> Repository { get; set; }
}
}