mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2026-08-31 04:49:23 +08:00
同步openauth.Core:
采用代码生成器的表结构控制前端显示,删除以前按照dbset获取数据库结构 优化注释 升级EF及所有三方的版本
This commit is contained in:
@@ -34,7 +34,7 @@ namespace OpenAuth.App
|
||||
/// <summary>
|
||||
/// 获取当前登录用户的数据访问权限
|
||||
/// </summary>
|
||||
/// <param name=""parameterName>linq表达式参数的名称,如u=>u.name中的"u"</param>
|
||||
/// <param name="parametername">linq表达式参数的名称,如u=>u.name中的"u"</param>
|
||||
/// <returns></returns>
|
||||
protected IQueryable<T> GetDataPrivilege(string parametername)
|
||||
{
|
||||
|
||||
@@ -15,6 +15,7 @@ namespace OpenAuth.App
|
||||
/// 业务层基类,UnitWork用于事务操作,Repository用于普通的数据库操作
|
||||
/// </summary>
|
||||
/// <typeparam name="T"></typeparam>
|
||||
/// <typeparam name="TDbContext"></typeparam>
|
||||
public class BaseIntAutoGenApp<T, TDbContext> :BaseApp<T,TDbContext> where T : IntAutoGenEntity where TDbContext: DbContext
|
||||
{
|
||||
public BaseIntAutoGenApp(IUnitWork<TDbContext> unitWork, IRepository<T,TDbContext> repository, IAuth auth) : base(unitWork, repository, auth)
|
||||
|
||||
@@ -14,6 +14,7 @@ namespace OpenAuth.App
|
||||
/// 业务层基类,UnitWork用于事务操作,Repository用于普通的数据库操作
|
||||
/// </summary>
|
||||
/// <typeparam name="T"></typeparam>
|
||||
/// <typeparam name="TDbContext"></typeparam>
|
||||
public class BaseLongApp<T, TDbContext> :BaseApp<T,TDbContext> where T : LongEntity where TDbContext: DbContext
|
||||
{
|
||||
|
||||
|
||||
@@ -11,9 +11,10 @@ namespace OpenAuth.App
|
||||
{
|
||||
/// <summary>
|
||||
/// 业务层基类,UnitWork用于事务操作,Repository用于普通的数据库操作
|
||||
/// <para>如用户管理:Class UserManagerApp:BaseApp<User></para>
|
||||
/// <para>如用户管理:Class UserManagerApp:BaseApp<User></para>
|
||||
/// </summary>
|
||||
/// <typeparam name="T"></typeparam>
|
||||
/// <typeparam name="TDbContext"></typeparam>
|
||||
public class BaseStringApp<T, TDbContext> :BaseApp<T,TDbContext> where T : StringEntity where TDbContext: DbContext
|
||||
{
|
||||
|
||||
|
||||
@@ -10,6 +10,7 @@ namespace OpenAuth.App
|
||||
/// 树状结构处理
|
||||
/// </summary>
|
||||
/// <typeparam name="T"></typeparam>
|
||||
/// /// <typeparam name="TDbContext"></typeparam>
|
||||
public class BaseTreeApp<T,TDbContext> :BaseStringApp<T,TDbContext> where T : TreeEntity where TDbContext :DbContext
|
||||
{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user