This commit is contained in:
owenchen committed 2026-08-27 15:58:44 +08:00
1 parent 4b92ee5fab
commit a2a03f5475
35 files changed
+373 -201

No files matched your search

@@ -149,6 +149,37 @@ builder.Entity<SecurityPermissionViewEntity>(eb => { eb.HasNoKey(); });
builder.Entity<SecurityUserActorViewEntity>(eb => { eb.HasNoKey(); });
builder.Entity<SecurityUserViewEntity>(eb => { eb.HasNoKey(); });
builder.Entity<SysTablePkeyViewEntity>(eb => { eb.HasNoKey(); });
builder.Entity<SysTableSchemaViewEntity>(eb => { eb.HasNoKey(); });
builder.Entity<SecurityActorGroupViewEntity>(eb => { eb.HasNoKey(); });
builder.Entity<SecurityFunctionMapViewEntity>(eb => { eb.HasNoKey(); });
builder.Entity<SecurityGroupPermissionDependentViewEntity>(eb => { eb.HasNoKey(); });
builder.Entity<SecurityGroupPermissionViewEntity>(eb => { eb.HasNoKey(); });
builder.Entity<SecurityInitializerTickViewEntity>(eb => { eb.HasNoKey(); });
builder.Entity<SecurityPermissionFunctionMapViewEntity>(eb => { eb.HasNoKey(); });
builder.Entity<SecurityPermissionViewEntity>(eb => { eb.HasNoKey(); });
builder.Entity<SecurityUserActorViewEntity>(eb => { eb.HasNoKey(); });
@@ -56,7 +56,7 @@ namespace CloudBuilder.Security.Entity
public const string DB_VALUE = "value";
public const string DB_ORDER_BY = "order_by";
private string ProviderName { get; set; }
private string ProviderName { get; set; }
public static LocaleEntity GetInstance(string providerName)
{
@@ -164,7 +164,7 @@ namespace CloudBuilder.Security.Entity
if (string.IsNullOrEmpty(orderbytag) || orderbytag.Trim() != "desc") orderbytag = "asc";
if (string.IsNullOrEmpty(orderby) || !DB_NAME_FIELDS.Contains(orderby)) orderby = DB_GROUP_NAME ;
int offset = limit * (start - 1);
return $" select {DB_NAME_FIELDS} from (select {DB_NAME_FIELDS} ,row_number() over(order by {orderby} {orderbytag}) as num from { DB_NAME_LOCALE} where 1=1 {sqlWhere} ) a where num> {offset} LIMIT {offset},{limit} ";
return $" select {DB_NAME_FIELDS} from (select {DB_NAME_FIELDS} ,row_number() over(order by {orderby} {orderbytag}) as num from { DB_NAME_LOCALE} where 1=1 {sqlWhere} ) a where num> {offset} LIMIT {limit} ";
}
public string GetSelectTopFromBySqlServer(int limit, int start,string orderby,string orderbytag, string sqlWhere)
@@ -49,7 +49,7 @@ namespace CloudBuilder.Security.Entity
public const string DB_ACTOR_LOCAL_NAME = "actor_local_name";
public const string DB_ACTOR_ENG_NAME = "actor_eng_name";
private string ProviderName { get; set; }
private string ProviderName { get; set; }
public static SecurityActorEntity GetInstance(string providerName)
{
@@ -155,7 +155,7 @@ namespace CloudBuilder.Security.Entity
if (string.IsNullOrEmpty(orderbytag) || orderbytag.Trim() != "desc") orderbytag = "asc";
if (string.IsNullOrEmpty(orderby) || !DB_NAME_FIELDS.Contains(orderby)) orderby = DB_ACTOR_NAME ;
int offset = limit * (start - 1);
return $" select {DB_NAME_FIELDS} from (select {DB_NAME_FIELDS} ,row_number() over(order by {orderby} {orderbytag}) as num from { DB_NAME_SECURITY_ACTOR} where 1=1 {sqlWhere} ) a where num> {offset} LIMIT {offset},{limit} ";
return $" select {DB_NAME_FIELDS} from (select {DB_NAME_FIELDS} ,row_number() over(order by {orderby} {orderbytag}) as num from { DB_NAME_SECURITY_ACTOR} where 1=1 {sqlWhere} ) a where num> {offset} LIMIT {limit} ";
}
public string GetSelectTopFromBySqlServer(int limit, int start,string orderby,string orderbytag, string sqlWhere)
@@ -44,7 +44,7 @@ namespace CloudBuilder.Security.Entity
public const string DB_ACTOR_NAME = "actor_name";
public const string DB_GROUP_NAME = "group_name";
private string ProviderName { get; set; }
private string ProviderName { get; set; }
public static SecurityActorGroupEntity GetInstance(string providerName)
{
@@ -149,7 +149,7 @@ namespace CloudBuilder.Security.Entity
if (string.IsNullOrEmpty(orderbytag) || orderbytag.Trim() != "desc") orderbytag = "asc";
if (string.IsNullOrEmpty(orderby) || !DB_NAME_FIELDS.Contains(orderby)) orderby = DB_ACTOR_NAME ;
int offset = limit * (start - 1);
return $" select {DB_NAME_FIELDS} from (select {DB_NAME_FIELDS} ,row_number() over(order by {orderby} {orderbytag}) as num from { DB_NAME_SECURITY_ACTOR_GROUP} where 1=1 {sqlWhere} ) a where num> {offset} LIMIT {offset},{limit} ";
return $" select {DB_NAME_FIELDS} from (select {DB_NAME_FIELDS} ,row_number() over(order by {orderby} {orderbytag}) as num from { DB_NAME_SECURITY_ACTOR_GROUP} where 1=1 {sqlWhere} ) a where num> {offset} LIMIT {limit} ";
}
public string GetSelectTopFromBySqlServer(int limit, int start,string orderby,string orderbytag, string sqlWhere)
@@ -36,7 +36,7 @@ namespace CloudBuilder.Security.Entity
public const string DB_GROUP_NAME = "group_name";
public const string DB_GROUP_LOCAL_NAME = "group_local_name";
private string ProviderName { get; set; }
private string ProviderName { get; set; }
public static SecurityActorGroupViewEntity GetInstance(string providerName)
{
@@ -135,7 +135,7 @@ namespace CloudBuilder.Security.Entity
if (string.IsNullOrEmpty(orderbytag) || orderbytag.Trim() != "desc") orderbytag = "asc";
if (string.IsNullOrEmpty(orderby) || !DB_NAME_FIELDS.Contains(orderby)) orderby = DB_ACTOR_NAME ; int offset = limit * (start - 1);
return $" select {DB_NAME_FIELDS} from (select {DB_NAME_FIELDS} ,row_number() over(order by {orderby} {orderbytag}) as num from { DB_NAME_SECURITY_ACTOR_GROUP_VIEW} where 1=1 {sqlWhere} ) a where num> {offset} LIMIT {offset},{limit} ";
return $" select {DB_NAME_FIELDS} from (select {DB_NAME_FIELDS} ,row_number() over(order by {orderby} {orderbytag}) as num from { DB_NAME_SECURITY_ACTOR_GROUP_VIEW} where 1=1 {sqlWhere} ) a where num> {offset} LIMIT {limit} ";
}
public string GetSelectTopFromBySqlServer(int limit, int start,string orderby,string orderbytag, string sqlWhere)
@@ -69,7 +69,7 @@ namespace CloudBuilder.Security.Entity
public const string DB_ICON = "icon";
public const string DB_PAGE_NAME = "page_name";
private string ProviderName { get; set; }
private string ProviderName { get; set; }
public static SecurityFunctionEntity GetInstance(string providerName)
{
@@ -180,7 +180,7 @@ namespace CloudBuilder.Security.Entity
if (string.IsNullOrEmpty(orderbytag) || orderbytag.Trim() != "desc") orderbytag = "asc";
if (string.IsNullOrEmpty(orderby) || !DB_NAME_FIELDS.Contains(orderby)) orderby = DB_FUNCTION_NAME ;
int offset = limit * (start - 1);
return $" select {DB_NAME_FIELDS} from (select {DB_NAME_FIELDS} ,row_number() over(order by {orderby} {orderbytag}) as num from { DB_NAME_SECURITY_FUNCTION} where 1=1 {sqlWhere} ) a where num> {offset} LIMIT {offset},{limit} ";
return $" select {DB_NAME_FIELDS} from (select {DB_NAME_FIELDS} ,row_number() over(order by {orderby} {orderbytag}) as num from { DB_NAME_SECURITY_FUNCTION} where 1=1 {sqlWhere} ) a where num> {offset} LIMIT {limit} ";
}
public string GetSelectTopFromBySqlServer(int limit, int start,string orderby,string orderbytag, string sqlWhere)
@@ -48,7 +48,7 @@ namespace CloudBuilder.Security.Entity
public const string DB_FUNCTION_NAME_SON = "function_name_son";
public const string DB_ORDERBY = "orderby";
private string ProviderName { get; set; }
private string ProviderName { get; set; }
public static SecurityFunctionMapEntity GetInstance(string providerName)
{
@@ -154,7 +154,7 @@ namespace CloudBuilder.Security.Entity
if (string.IsNullOrEmpty(orderbytag) || orderbytag.Trim() != "desc") orderbytag = "asc";
if (string.IsNullOrEmpty(orderby) || !DB_NAME_FIELDS.Contains(orderby)) orderby = DB_FUNCTION_NAME_PARENT ;
int offset = limit * (start - 1);
return $" select {DB_NAME_FIELDS} from (select {DB_NAME_FIELDS} ,row_number() over(order by {orderby} {orderbytag}) as num from { DB_NAME_SECURITY_FUNCTION_MAP} where 1=1 {sqlWhere} ) a where num> {offset} LIMIT {offset},{limit} ";
return $" select {DB_NAME_FIELDS} from (select {DB_NAME_FIELDS} ,row_number() over(order by {orderby} {orderbytag}) as num from { DB_NAME_SECURITY_FUNCTION_MAP} where 1=1 {sqlWhere} ) a where num> {offset} LIMIT {limit} ";
}
public string GetSelectTopFromBySqlServer(int limit, int start,string orderby,string orderbytag, string sqlWhere)
@@ -44,7 +44,7 @@ namespace CloudBuilder.Security.Entity
public const string DB_SON_FUNCTION_LOCAL_NAME = "son_function_local_name";
public const string DB_SON_PAGE_NAME = "son_page_name";
private string ProviderName { get; set; }
private string ProviderName { get; set; }
public static SecurityFunctionMapViewEntity GetInstance(string providerName)
{
@@ -145,7 +145,7 @@ namespace CloudBuilder.Security.Entity
if (string.IsNullOrEmpty(orderbytag) || orderbytag.Trim() != "desc") orderbytag = "asc";
if (string.IsNullOrEmpty(orderby) || !DB_NAME_FIELDS.Contains(orderby)) orderby = DB_ORDERBY ; int offset = limit * (start - 1);
return $" select {DB_NAME_FIELDS} from (select {DB_NAME_FIELDS} ,row_number() over(order by {orderby} {orderbytag}) as num from { DB_NAME_SECURITY_FUNCTION_MAP_VIEW} where 1=1 {sqlWhere} ) a where num> {offset} LIMIT {offset},{limit} ";
return $" select {DB_NAME_FIELDS} from (select {DB_NAME_FIELDS} ,row_number() over(order by {orderby} {orderbytag}) as num from { DB_NAME_SECURITY_FUNCTION_MAP_VIEW} where 1=1 {sqlWhere} ) a where num> {offset} LIMIT {limit} ";
}
public string GetSelectTopFromBySqlServer(int limit, int start,string orderby,string orderbytag, string sqlWhere)
@@ -70,7 +70,7 @@ namespace CloudBuilder.Security.Entity
public const string DB_LAST_GENERATOR_DATE = "last_generator_date";
public const string DB_NEXT_ID = "next_id";
private string ProviderName { get; set; }
private string ProviderName { get; set; }
public static SecurityGeneratorNumberEntity GetInstance(string providerName)
{
@@ -181,7 +181,7 @@ namespace CloudBuilder.Security.Entity
if (string.IsNullOrEmpty(orderbytag) || orderbytag.Trim() != "desc") orderbytag = "asc";
if (string.IsNullOrEmpty(orderby) || !DB_NAME_FIELDS.Contains(orderby)) orderby = DB_GENERATOR_ID ;
int offset = limit * (start - 1);
return $" select {DB_NAME_FIELDS} from (select {DB_NAME_FIELDS} ,row_number() over(order by {orderby} {orderbytag}) as num from { DB_NAME_SECURITY_GENERATOR_NUMBER} where 1=1 {sqlWhere} ) a where num> {offset} LIMIT {offset},{limit} ";
return $" select {DB_NAME_FIELDS} from (select {DB_NAME_FIELDS} ,row_number() over(order by {orderby} {orderbytag}) as num from { DB_NAME_SECURITY_GENERATOR_NUMBER} where 1=1 {sqlWhere} ) a where num> {offset} LIMIT {limit} ";
}
public string GetSelectTopFromBySqlServer(int limit, int start,string orderby,string orderbytag, string sqlWhere)
@@ -49,7 +49,7 @@ namespace CloudBuilder.Security.Entity
public const string DB_GROUP_LOCAL_NAME = "group_local_name";
public const string DB_GROUP_ENG_NAME = "group_eng_name";
private string ProviderName { get; set; }
private string ProviderName { get; set; }
public static SecurityGroupEntity GetInstance(string providerName)
{
@@ -155,7 +155,7 @@ namespace CloudBuilder.Security.Entity
if (string.IsNullOrEmpty(orderbytag) || orderbytag.Trim() != "desc") orderbytag = "asc";
if (string.IsNullOrEmpty(orderby) || !DB_NAME_FIELDS.Contains(orderby)) orderby = DB_GROUP_NAME ;
int offset = limit * (start - 1);
return $" select {DB_NAME_FIELDS} from (select {DB_NAME_FIELDS} ,row_number() over(order by {orderby} {orderbytag}) as num from { DB_NAME_SECURITY_GROUP} where 1=1 {sqlWhere} ) a where num> {offset} LIMIT {offset},{limit} ";
return $" select {DB_NAME_FIELDS} from (select {DB_NAME_FIELDS} ,row_number() over(order by {orderby} {orderbytag}) as num from { DB_NAME_SECURITY_GROUP} where 1=1 {sqlWhere} ) a where num> {offset} LIMIT {limit} ";
}
public string GetSelectTopFromBySqlServer(int limit, int start,string orderby,string orderbytag, string sqlWhere)
@@ -64,7 +64,7 @@ namespace CloudBuilder.Security.Entity
public const string DB_AMEND_INDC = "amend_indc";
public const string DB_DELETE_INDC = "delete_indc";
private string ProviderName { get; set; }
private string ProviderName { get; set; }
public static SecurityGroupPermissionDependentEntity GetInstance(string providerName)
{
@@ -174,7 +174,7 @@ namespace CloudBuilder.Security.Entity
if (string.IsNullOrEmpty(orderbytag) || orderbytag.Trim() != "desc") orderbytag = "asc";
if (string.IsNullOrEmpty(orderby) || !DB_NAME_FIELDS.Contains(orderby)) orderby = DB_GROUP_NAME ;
int offset = limit * (start - 1);
return $" select {DB_NAME_FIELDS} from (select {DB_NAME_FIELDS} ,row_number() over(order by {orderby} {orderbytag}) as num from { DB_NAME_SECURITY_GROUP_PERMISSION_DEPENDENT} where 1=1 {sqlWhere} ) a where num> {offset} LIMIT {offset},{limit} ";
return $" select {DB_NAME_FIELDS} from (select {DB_NAME_FIELDS} ,row_number() over(order by {orderby} {orderbytag}) as num from { DB_NAME_SECURITY_GROUP_PERMISSION_DEPENDENT} where 1=1 {sqlWhere} ) a where num> {offset} LIMIT {limit} ";
}
public string GetSelectTopFromBySqlServer(int limit, int start,string orderby,string orderbytag, string sqlWhere)
@@ -60,7 +60,7 @@ namespace CloudBuilder.Security.Entity
public const string DB_DEPENDENT_DETAIL_DESCRIPTION = "dependent_detail_description";
public const string DB_DEPENDENT = "dependent";
private string ProviderName { get; set; }
private string ProviderName { get; set; }
public static SecurityGroupPermissionDependentViewEntity GetInstance(string providerName)
{
@@ -165,7 +165,7 @@ namespace CloudBuilder.Security.Entity
if (string.IsNullOrEmpty(orderbytag) || orderbytag.Trim() != "desc") orderbytag = "asc";
if (string.IsNullOrEmpty(orderby) || !DB_NAME_FIELDS.Contains(orderby)) orderby = DB_GROUP_NAME ; int offset = limit * (start - 1);
return $" select {DB_NAME_FIELDS} from (select {DB_NAME_FIELDS} ,row_number() over(order by {orderby} {orderbytag}) as num from { DB_NAME_SECURITY_GROUP_PERMISSION_DEPENDENT_VIEW} where 1=1 {sqlWhere} ) a where num> {offset} LIMIT {offset},{limit} ";
return $" select {DB_NAME_FIELDS} from (select {DB_NAME_FIELDS} ,row_number() over(order by {orderby} {orderbytag}) as num from { DB_NAME_SECURITY_GROUP_PERMISSION_DEPENDENT_VIEW} where 1=1 {sqlWhere} ) a where num> {offset} LIMIT {limit} ";
}
public string GetSelectTopFromBySqlServer(int limit, int start,string orderby,string orderbytag, string sqlWhere)
@@ -64,7 +64,7 @@ namespace CloudBuilder.Security.Entity
public const string DB_DELETE_INDC = "delete_indc";
public const string DB_DEPENDENT = "dependent";
private string ProviderName { get; set; }
private string ProviderName { get; set; }
public static SecurityGroupPermissionEntity GetInstance(string providerName)
{
@@ -174,7 +174,7 @@ namespace CloudBuilder.Security.Entity
if (string.IsNullOrEmpty(orderbytag) || orderbytag.Trim() != "desc") orderbytag = "asc";
if (string.IsNullOrEmpty(orderby) || !DB_NAME_FIELDS.Contains(orderby)) orderby = DB_GROUP_NAME ;
int offset = limit * (start - 1);
return $" select {DB_NAME_FIELDS} from (select {DB_NAME_FIELDS} ,row_number() over(order by {orderby} {orderbytag}) as num from { DB_NAME_SECURITY_GROUP_PERMISSION} where 1=1 {sqlWhere} ) a where num> {offset} LIMIT {offset},{limit} ";
return $" select {DB_NAME_FIELDS} from (select {DB_NAME_FIELDS} ,row_number() over(order by {orderby} {orderbytag}) as num from { DB_NAME_SECURITY_GROUP_PERMISSION} where 1=1 {sqlWhere} ) a where num> {offset} LIMIT {limit} ";
}
public string GetSelectTopFromBySqlServer(int limit, int start,string orderby,string orderbytag, string sqlWhere)
@@ -52,7 +52,7 @@ namespace CloudBuilder.Security.Entity
public const string DB_DEPENDENT = "dependent";
public const string DB_PERMISSION_DESCRIPTION = "permission_description";
private string ProviderName { get; set; }
private string ProviderName { get; set; }
public static SecurityGroupPermissionViewEntity GetInstance(string providerName)
{
@@ -155,7 +155,7 @@ namespace CloudBuilder.Security.Entity
if (string.IsNullOrEmpty(orderbytag) || orderbytag.Trim() != "desc") orderbytag = "asc";
if (string.IsNullOrEmpty(orderby) || !DB_NAME_FIELDS.Contains(orderby)) orderby = DB_GROUP_NAME ; int offset = limit * (start - 1);
return $" select {DB_NAME_FIELDS} from (select {DB_NAME_FIELDS} ,row_number() over(order by {orderby} {orderbytag}) as num from { DB_NAME_SECURITY_GROUP_PERMISSION_VIEW} where 1=1 {sqlWhere} ) a where num> {offset} LIMIT {offset},{limit} ";
return $" select {DB_NAME_FIELDS} from (select {DB_NAME_FIELDS} ,row_number() over(order by {orderby} {orderbytag}) as num from { DB_NAME_SECURITY_GROUP_PERMISSION_VIEW} where 1=1 {sqlWhere} ) a where num> {offset} LIMIT {limit} ";
}
public string GetSelectTopFromBySqlServer(int limit, int start,string orderby,string orderbytag, string sqlWhere)
@@ -68,7 +68,7 @@ namespace CloudBuilder.Security.Entity
public const string DB_SECURITY_USER_UPD = "security_user_upd";
public const string DB_SECURITY_USER_ACTOR_UPD = "security_user_actor_upd";
private string ProviderName { get; set; }
private string ProviderName { get; set; }
public static SecurityInitializerTickViewEntity GetInstance(string providerName)
{
@@ -175,7 +175,7 @@ namespace CloudBuilder.Security.Entity
if (string.IsNullOrEmpty(orderbytag) || orderbytag.Trim() != "desc") orderbytag = "asc";
if (string.IsNullOrEmpty(orderby) || !DB_NAME_FIELDS.Contains(orderby)) orderby = DB_SECURITY_ACTOR_UPD ; int offset = limit * (start - 1);
return $" select {DB_NAME_FIELDS} from (select {DB_NAME_FIELDS} ,row_number() over(order by {orderby} {orderbytag}) as num from { DB_NAME_SECURITY_INITIALIZER_TICK_VIEW} where 1=1 {sqlWhere} ) a where num> {offset} LIMIT {offset},{limit} ";
return $" select {DB_NAME_FIELDS} from (select {DB_NAME_FIELDS} ,row_number() over(order by {orderby} {orderbytag}) as num from { DB_NAME_SECURITY_INITIALIZER_TICK_VIEW} where 1=1 {sqlWhere} ) a where num> {offset} LIMIT {limit} ";
}
public string GetSelectTopFromBySqlServer(int limit, int start,string orderby,string orderbytag, string sqlWhere)
@@ -48,7 +48,7 @@ namespace CloudBuilder.Security.Entity
public const string DB_PKEY_ID = "pkey_id";
public const string DB_LOCKED_BY_ACTOR = "locked_by_actor";
private string ProviderName { get; set; }
private string ProviderName { get; set; }
public static SecurityLockEntity GetInstance(string providerName)
{
@@ -154,7 +154,7 @@ namespace CloudBuilder.Security.Entity
if (string.IsNullOrEmpty(orderbytag) || orderbytag.Trim() != "desc") orderbytag = "asc";
if (string.IsNullOrEmpty(orderby) || !DB_NAME_FIELDS.Contains(orderby)) orderby = DB_ENTITY_NAME ;
int offset = limit * (start - 1);
return $" select {DB_NAME_FIELDS} from (select {DB_NAME_FIELDS} ,row_number() over(order by {orderby} {orderbytag}) as num from { DB_NAME_SECURITY_LOCK} where 1=1 {sqlWhere} ) a where num> {offset} LIMIT {offset},{limit} ";
return $" select {DB_NAME_FIELDS} from (select {DB_NAME_FIELDS} ,row_number() over(order by {orderby} {orderbytag}) as num from { DB_NAME_SECURITY_LOCK} where 1=1 {sqlWhere} ) a where num> {offset} LIMIT {limit} ";
}
public string GetSelectTopFromBySqlServer(int limit, int start,string orderby,string orderbytag, string sqlWhere)
@@ -72,7 +72,7 @@ namespace CloudBuilder.Security.Entity
public const string DB_VALID_INDC = "valid_indc";
public const string DB_REMARK = "remark";
private string ProviderName { get; set; }
private string ProviderName { get; set; }
public static SecurityMasterEntity GetInstance(string providerName)
{
@@ -184,7 +184,7 @@ namespace CloudBuilder.Security.Entity
if (string.IsNullOrEmpty(orderbytag) || orderbytag.Trim() != "desc") orderbytag = "asc";
if (string.IsNullOrEmpty(orderby) || !DB_NAME_FIELDS.Contains(orderby)) orderby = DB_MASTER_CATEGORY ;
int offset = limit * (start - 1);
return $" select {DB_NAME_FIELDS} from (select {DB_NAME_FIELDS} ,row_number() over(order by {orderby} {orderbytag}) as num from { DB_NAME_SECURITY_MASTER} where 1=1 {sqlWhere} ) a where num> {offset} LIMIT {offset},{limit} ";
return $" select {DB_NAME_FIELDS} from (select {DB_NAME_FIELDS} ,row_number() over(order by {orderby} {orderbytag}) as num from { DB_NAME_SECURITY_MASTER} where 1=1 {sqlWhere} ) a where num> {offset} LIMIT {limit} ";
}
public string GetSelectTopFromBySqlServer(int limit, int start,string orderby,string orderbytag, string sqlWhere)
@@ -52,7 +52,7 @@ namespace CloudBuilder.Security.Entity
public const string DB_DEPENDENT_DETAIL_NAME = "dependent_detail_name";
public const string DB_DEPENDENT_DETAIL_DESCRIPTION = "dependent_detail_description";
private string ProviderName { get; set; }
private string ProviderName { get; set; }
public static SecurityPermissionDependentEntity GetInstance(string providerName)
{
@@ -159,7 +159,7 @@ namespace CloudBuilder.Security.Entity
if (string.IsNullOrEmpty(orderbytag) || orderbytag.Trim() != "desc") orderbytag = "asc";
if (string.IsNullOrEmpty(orderby) || !DB_NAME_FIELDS.Contains(orderby)) orderby = DB_PERMISSION_NAME ;
int offset = limit * (start - 1);
return $" select {DB_NAME_FIELDS} from (select {DB_NAME_FIELDS} ,row_number() over(order by {orderby} {orderbytag}) as num from { DB_NAME_SECURITY_PERMISSION_DEPENDENT} where 1=1 {sqlWhere} ) a where num> {offset} LIMIT {offset},{limit} ";
return $" select {DB_NAME_FIELDS} from (select {DB_NAME_FIELDS} ,row_number() over(order by {orderby} {orderbytag}) as num from { DB_NAME_SECURITY_PERMISSION_DEPENDENT} where 1=1 {sqlWhere} ) a where num> {offset} LIMIT {limit} ";
}
public string GetSelectTopFromBySqlServer(int limit, int start,string orderby,string orderbytag, string sqlWhere)
@@ -53,7 +53,7 @@ namespace CloudBuilder.Security.Entity
public const string DB_DESCRIPTION = "description";
public const string DB_DELEGATE_INDC = "delegate_indc";
private string ProviderName { get; set; }
private string ProviderName { get; set; }
public static SecurityPermissionEntity GetInstance(string providerName)
{
@@ -160,7 +160,7 @@ namespace CloudBuilder.Security.Entity
if (string.IsNullOrEmpty(orderbytag) || orderbytag.Trim() != "desc") orderbytag = "asc";
if (string.IsNullOrEmpty(orderby) || !DB_NAME_FIELDS.Contains(orderby)) orderby = DB_PERMISSION_NAME ;
int offset = limit * (start - 1);
return $" select {DB_NAME_FIELDS} from (select {DB_NAME_FIELDS} ,row_number() over(order by {orderby} {orderbytag}) as num from { DB_NAME_SECURITY_PERMISSION} where 1=1 {sqlWhere} ) a where num> {offset} LIMIT {offset},{limit} ";
return $" select {DB_NAME_FIELDS} from (select {DB_NAME_FIELDS} ,row_number() over(order by {orderby} {orderbytag}) as num from { DB_NAME_SECURITY_PERMISSION} where 1=1 {sqlWhere} ) a where num> {offset} LIMIT {limit} ";
}
public string GetSelectTopFromBySqlServer(int limit, int start,string orderby,string orderbytag, string sqlWhere)
@@ -44,7 +44,7 @@ namespace CloudBuilder.Security.Entity
public const string DB_PERMISSION_NAME = "permission_name";
public const string DB_FUNCTION_NAME = "function_name";
private string ProviderName { get; set; }
private string ProviderName { get; set; }
public static SecurityPermissionFunctionMapEntity GetInstance(string providerName)
{
@@ -149,7 +149,7 @@ namespace CloudBuilder.Security.Entity
if (string.IsNullOrEmpty(orderbytag) || orderbytag.Trim() != "desc") orderbytag = "asc";
if (string.IsNullOrEmpty(orderby) || !DB_NAME_FIELDS.Contains(orderby)) orderby = DB_PERMISSION_NAME ;
int offset = limit * (start - 1);
return $" select {DB_NAME_FIELDS} from (select {DB_NAME_FIELDS} ,row_number() over(order by {orderby} {orderbytag}) as num from { DB_NAME_SECURITY_PERMISSION_FUNCTION_MAP} where 1=1 {sqlWhere} ) a where num> {offset} LIMIT {offset},{limit} ";
return $" select {DB_NAME_FIELDS} from (select {DB_NAME_FIELDS} ,row_number() over(order by {orderby} {orderbytag}) as num from { DB_NAME_SECURITY_PERMISSION_FUNCTION_MAP} where 1=1 {sqlWhere} ) a where num> {offset} LIMIT {limit} ";
}
public string GetSelectTopFromBySqlServer(int limit, int start,string orderby,string orderbytag, string sqlWhere)
@@ -32,7 +32,7 @@ namespace CloudBuilder.Security.Entity
public const string DB_FUNCTION_NAME = "function_name";
public const string DB_PAGE_NAME = "page_name";
private string ProviderName { get; set; }
private string ProviderName { get; set; }
public static SecurityPermissionFunctionMapViewEntity GetInstance(string providerName)
{
@@ -130,7 +130,7 @@ namespace CloudBuilder.Security.Entity
if (string.IsNullOrEmpty(orderbytag) || orderbytag.Trim() != "desc") orderbytag = "asc";
if (string.IsNullOrEmpty(orderby) || !DB_NAME_FIELDS.Contains(orderby)) orderby = DB_PERMISSION_NAME ; int offset = limit * (start - 1);
return $" select {DB_NAME_FIELDS} from (select {DB_NAME_FIELDS} ,row_number() over(order by {orderby} {orderbytag}) as num from { DB_NAME_SECURITY_PERMISSION_FUNCTION_MAP_VIEW} where 1=1 {sqlWhere} ) a where num> {offset} LIMIT {offset},{limit} ";
return $" select {DB_NAME_FIELDS} from (select {DB_NAME_FIELDS} ,row_number() over(order by {orderby} {orderbytag}) as num from { DB_NAME_SECURITY_PERMISSION_FUNCTION_MAP_VIEW} where 1=1 {sqlWhere} ) a where num> {offset} LIMIT {limit} ";
}
public string GetSelectTopFromBySqlServer(int limit, int start,string orderby,string orderbytag, string sqlWhere)
@@ -40,7 +40,7 @@ namespace CloudBuilder.Security.Entity
public const string DB_CREATED_DATETIME = "created_datetime";
public const string DB_DEPENDENT = "dependent";
private string ProviderName { get; set; }
private string ProviderName { get; set; }
public static SecurityPermissionViewEntity GetInstance(string providerName)
{
@@ -141,7 +141,7 @@ namespace CloudBuilder.Security.Entity
if (string.IsNullOrEmpty(orderbytag) || orderbytag.Trim() != "desc") orderbytag = "asc";
if (string.IsNullOrEmpty(orderby) || !DB_NAME_FIELDS.Contains(orderby)) orderby = DB_PERMISSION_NAME ; int offset = limit * (start - 1);
return $" select {DB_NAME_FIELDS} from (select {DB_NAME_FIELDS} ,row_number() over(order by {orderby} {orderbytag}) as num from { DB_NAME_SECURITY_PERMISSION_VIEW} where 1=1 {sqlWhere} ) a where num> {offset} LIMIT {offset},{limit} ";
return $" select {DB_NAME_FIELDS} from (select {DB_NAME_FIELDS} ,row_number() over(order by {orderby} {orderbytag}) as num from { DB_NAME_SECURITY_PERMISSION_VIEW} where 1=1 {sqlWhere} ) a where num> {offset} LIMIT {limit} ";
}
public string GetSelectTopFromBySqlServer(int limit, int start,string orderby,string orderbytag, string sqlWhere)
@@ -54,7 +54,7 @@ namespace CloudBuilder.Security.Entity
public const string DB_FIELD_NAME = "field_name";
public const string DB_DESCRIPTION = "description";
private string ProviderName { get; set; }
private string ProviderName { get; set; }
public static SecurityTableDescriptionEntity GetInstance(string providerName)
{
@@ -161,7 +161,7 @@ namespace CloudBuilder.Security.Entity
if (string.IsNullOrEmpty(orderbytag) || orderbytag.Trim() != "desc") orderbytag = "asc";
if (string.IsNullOrEmpty(orderby) || !DB_NAME_FIELDS.Contains(orderby)) orderby = DB_DESCRIPTION_ID ;
int offset = limit * (start - 1);
return $" select {DB_NAME_FIELDS} from (select {DB_NAME_FIELDS} ,row_number() over(order by {orderby} {orderbytag}) as num from { DB_NAME_SECURITY_TABLE_DESCRIPTION} where 1=1 {sqlWhere} ) a where num> {offset} LIMIT {offset},{limit} ";
return $" select {DB_NAME_FIELDS} from (select {DB_NAME_FIELDS} ,row_number() over(order by {orderby} {orderbytag}) as num from { DB_NAME_SECURITY_TABLE_DESCRIPTION} where 1=1 {sqlWhere} ) a where num> {offset} LIMIT {limit} ";
}
public string GetSelectTopFromBySqlServer(int limit, int start,string orderby,string orderbytag, string sqlWhere)
@@ -44,7 +44,7 @@ namespace CloudBuilder.Security.Entity
public const string DB_USER_NAME = "user_name";
public const string DB_ACTOR_NAME = "actor_name";
private string ProviderName { get; set; }
private string ProviderName { get; set; }
public static SecurityUserActorEntity GetInstance(string providerName)
{
@@ -149,7 +149,7 @@ namespace CloudBuilder.Security.Entity
if (string.IsNullOrEmpty(orderbytag) || orderbytag.Trim() != "desc") orderbytag = "asc";
if (string.IsNullOrEmpty(orderby) || !DB_NAME_FIELDS.Contains(orderby)) orderby = DB_USER_NAME ;
int offset = limit * (start - 1);
return $" select {DB_NAME_FIELDS} from (select {DB_NAME_FIELDS} ,row_number() over(order by {orderby} {orderbytag}) as num from { DB_NAME_SECURITY_USER_ACTOR} where 1=1 {sqlWhere} ) a where num> {offset} LIMIT {offset},{limit} ";
return $" select {DB_NAME_FIELDS} from (select {DB_NAME_FIELDS} ,row_number() over(order by {orderby} {orderbytag}) as num from { DB_NAME_SECURITY_USER_ACTOR} where 1=1 {sqlWhere} ) a where num> {offset} LIMIT {limit} ";
}
public string GetSelectTopFromBySqlServer(int limit, int start,string orderby,string orderbytag, string sqlWhere)
@@ -40,7 +40,7 @@ namespace CloudBuilder.Security.Entity
public const string DB_ACTOR_NAME = "actor_name";
public const string DB_ACTOR_LOCAL_NAME = "actor_local_name";
private string ProviderName { get; set; }
private string ProviderName { get; set; }
public static SecurityUserActorViewEntity GetInstance(string providerName)
{
@@ -140,7 +140,7 @@ namespace CloudBuilder.Security.Entity
if (string.IsNullOrEmpty(orderbytag) || orderbytag.Trim() != "desc") orderbytag = "asc";
if (string.IsNullOrEmpty(orderby) || !DB_NAME_FIELDS.Contains(orderby)) orderby = DB_USER_NAME ; int offset = limit * (start - 1);
return $" select {DB_NAME_FIELDS} from (select {DB_NAME_FIELDS} ,row_number() over(order by {orderby} {orderbytag}) as num from { DB_NAME_SECURITY_USER_ACTOR_VIEW} where 1=1 {sqlWhere} ) a where num> {offset} LIMIT {offset},{limit} ";
return $" select {DB_NAME_FIELDS} from (select {DB_NAME_FIELDS} ,row_number() over(order by {orderby} {orderbytag}) as num from { DB_NAME_SECURITY_USER_ACTOR_VIEW} where 1=1 {sqlWhere} ) a where num> {offset} LIMIT {limit} ";
}
public string GetSelectTopFromBySqlServer(int limit, int start,string orderby,string orderbytag, string sqlWhere)
@@ -56,7 +56,7 @@ namespace CloudBuilder.Security.Entity
public const string DB_START_DATETIME = "start_datetime";
public const string DB_END_DATETIME = "end_datetime";
private string ProviderName { get; set; }
private string ProviderName { get; set; }
public static SecurityUserDelegatedPermissionEntity GetInstance(string providerName)
{
@@ -164,7 +164,7 @@ namespace CloudBuilder.Security.Entity
if (string.IsNullOrEmpty(orderbytag) || orderbytag.Trim() != "desc") orderbytag = "asc";
if (string.IsNullOrEmpty(orderby) || !DB_NAME_FIELDS.Contains(orderby)) orderby = DB_USER_NAME ;
int offset = limit * (start - 1);
return $" select {DB_NAME_FIELDS} from (select {DB_NAME_FIELDS} ,row_number() over(order by {orderby} {orderbytag}) as num from { DB_NAME_SECURITY_USER_DELEGATED_PERMISSION} where 1=1 {sqlWhere} ) a where num> {offset} LIMIT {offset},{limit} ";
return $" select {DB_NAME_FIELDS} from (select {DB_NAME_FIELDS} ,row_number() over(order by {orderby} {orderbytag}) as num from { DB_NAME_SECURITY_USER_DELEGATED_PERMISSION} where 1=1 {sqlWhere} ) a where num> {offset} LIMIT {limit} ";
}
public string GetSelectTopFromBySqlServer(int limit, int start,string orderby,string orderbytag, string sqlWhere)
@@ -173,7 +173,7 @@ namespace CloudBuilder.Security.Entity
public const string DB_BIOMETRIC_ENROLLED_AT = "biometric_enrolled_at";
public const string DB_BIOMETRIC_LAST_USED_AT = "biometric_last_used_at";
private string ProviderName { get; set; }
private string ProviderName { get; set; }
public static SecurityUserEntity GetInstance(string providerName)
{
@@ -310,7 +310,7 @@ namespace CloudBuilder.Security.Entity
if (string.IsNullOrEmpty(orderbytag) || orderbytag.Trim() != "desc") orderbytag = "asc";
if (string.IsNullOrEmpty(orderby) || !DB_NAME_FIELDS.Contains(orderby)) orderby = DB_USER_NAME ;
int offset = limit * (start - 1);
return $" select {DB_NAME_FIELDS} from (select {DB_NAME_FIELDS} ,row_number() over(order by {orderby} {orderbytag}) as num from { DB_NAME_SECURITY_USER} where 1=1 {sqlWhere} ) a where num> {offset} LIMIT {offset},{limit} ";
return $" select {DB_NAME_FIELDS} from (select {DB_NAME_FIELDS} ,row_number() over(order by {orderby} {orderbytag}) as num from { DB_NAME_SECURITY_USER} where 1=1 {sqlWhere} ) a where num> {offset} LIMIT {limit} ";
}
public string GetSelectTopFromBySqlServer(int limit, int start,string orderby,string orderbytag, string sqlWhere)
@@ -54,7 +54,7 @@ namespace CloudBuilder.Security.Entity
public const string DB_AGENT_USER_NAME = "agent_user_name";
public const string DB_IP_ADDRESS = "ip_address";
private string ProviderName { get; set; }
private string ProviderName { get; set; }
public static SecurityUserLoginLogEntity GetInstance(string providerName)
{
@@ -161,7 +161,7 @@ namespace CloudBuilder.Security.Entity
if (string.IsNullOrEmpty(orderbytag) || orderbytag.Trim() != "desc") orderbytag = "asc";
if (string.IsNullOrEmpty(orderby) || !DB_NAME_FIELDS.Contains(orderby)) orderby = DB_LOGIN_LOG_ID ;
int offset = limit * (start - 1);
return $" select {DB_NAME_FIELDS} from (select {DB_NAME_FIELDS} ,row_number() over(order by {orderby} {orderbytag}) as num from { DB_NAME_SECURITY_USER_LOGIN_LOG} where 1=1 {sqlWhere} ) a where num> {offset} LIMIT {offset},{limit} ";
return $" select {DB_NAME_FIELDS} from (select {DB_NAME_FIELDS} ,row_number() over(order by {orderby} {orderbytag}) as num from { DB_NAME_SECURITY_USER_LOGIN_LOG} where 1=1 {sqlWhere} ) a where num> {offset} LIMIT {limit} ";
}
public string GetSelectTopFromBySqlServer(int limit, int start,string orderby,string orderbytag, string sqlWhere)
@@ -48,7 +48,7 @@ namespace CloudBuilder.Security.Entity
public const string DB_PREFERENCE_KEY = "preference_key";
public const string DB_PREFERENCE = "preference";
private string ProviderName { get; set; }
private string ProviderName { get; set; }
public static SecurityUserPreferenceEntity GetInstance(string providerName)
{
@@ -154,7 +154,7 @@ namespace CloudBuilder.Security.Entity
if (string.IsNullOrEmpty(orderbytag) || orderbytag.Trim() != "desc") orderbytag = "asc";
if (string.IsNullOrEmpty(orderby) || !DB_NAME_FIELDS.Contains(orderby)) orderby = DB_USERNAME ;
int offset = limit * (start - 1);
return $" select {DB_NAME_FIELDS} from (select {DB_NAME_FIELDS} ,row_number() over(order by {orderby} {orderbytag}) as num from { DB_NAME_SECURITY_USER_PREFERENCE} where 1=1 {sqlWhere} ) a where num> {offset} LIMIT {offset},{limit} ";
return $" select {DB_NAME_FIELDS} from (select {DB_NAME_FIELDS} ,row_number() over(order by {orderby} {orderbytag}) as num from { DB_NAME_SECURITY_USER_PREFERENCE} where 1=1 {sqlWhere} ) a where num> {offset} LIMIT {limit} ";
}
public string GetSelectTopFromBySqlServer(int limit, int start,string orderby,string orderbytag, string sqlWhere)
@@ -44,7 +44,7 @@ namespace CloudBuilder.Security.Entity
public const string DB_ACTOR_NAME = "actor_name";
public const string DB_ACTOR_LOCAL_NAME = "actor_local_name";
private string ProviderName { get; set; }
private string ProviderName { get; set; }
public static SecurityUserViewEntity GetInstance(string providerName)
{
@@ -145,7 +145,7 @@ namespace CloudBuilder.Security.Entity
if (string.IsNullOrEmpty(orderbytag) || orderbytag.Trim() != "desc") orderbytag = "asc";
if (string.IsNullOrEmpty(orderby) || !DB_NAME_FIELDS.Contains(orderby)) orderby = DB_USER_NAME ; int offset = limit * (start - 1);
return $" select {DB_NAME_FIELDS} from (select {DB_NAME_FIELDS} ,row_number() over(order by {orderby} {orderbytag}) as num from { DB_NAME_SECURITY_USER_VIEW} where 1=1 {sqlWhere} ) a where num> {offset} LIMIT {offset},{limit} ";
return $" select {DB_NAME_FIELDS} from (select {DB_NAME_FIELDS} ,row_number() over(order by {orderby} {orderbytag}) as num from { DB_NAME_SECURITY_USER_VIEW} where 1=1 {sqlWhere} ) a where num> {offset} LIMIT {limit} ";
}
public string GetSelectTopFromBySqlServer(int limit, int start,string orderby,string orderbytag, string sqlWhere)
@@ -52,7 +52,7 @@ namespace CloudBuilder.Security.Entity
public const string DB_REFRESH_TOKEN = "refresh_token";
public const string DB_REFRESH_TOKEN_REFRESHED_TIME = "refresh_token_refreshed_time";
private string ProviderName { get; set; }
private string ProviderName { get; set; }
public static SecurityUserWebLoginEntity GetInstance(string providerName)
{
@@ -155,7 +155,7 @@ namespace CloudBuilder.Security.Entity
if (string.IsNullOrEmpty(orderbytag) || orderbytag.Trim() != "desc") orderbytag = "asc";
if (string.IsNullOrEmpty(orderby) || !DB_NAME_FIELDS.Contains(orderby)) orderby = DB_SESSION_ID ;
int offset = limit * (start - 1);
return $" select {DB_NAME_FIELDS} from (select {DB_NAME_FIELDS} ,row_number() over(order by {orderby} {orderbytag}) as num from { DB_NAME_SECURITY_USER_WEB_LOGIN} where 1=1 {sqlWhere} ) a where num> {offset} LIMIT {offset},{limit} ";
return $" select {DB_NAME_FIELDS} from (select {DB_NAME_FIELDS} ,row_number() over(order by {orderby} {orderbytag}) as num from { DB_NAME_SECURITY_USER_WEB_LOGIN} where 1=1 {sqlWhere} ) a where num> {offset} LIMIT {limit} ";
}
public string GetSelectTopFromBySqlServer(int limit, int start,string orderby,string orderbytag, string sqlWhere)
@@ -56,7 +56,7 @@ namespace CloudBuilder.Security.Entity
public const string DB_PREFERENCE = "preference";
public const string DB_DEFAULT_INDC = "default_indc";
private string ProviderName { get; set; }
private string ProviderName { get; set; }
public static SecurityUserWebPagePreferenceEntity GetInstance(string providerName)
{
@@ -164,7 +164,7 @@ namespace CloudBuilder.Security.Entity
if (string.IsNullOrEmpty(orderbytag) || orderbytag.Trim() != "desc") orderbytag = "asc";
if (string.IsNullOrEmpty(orderby) || !DB_NAME_FIELDS.Contains(orderby)) orderby = DB_USERNAME ;
int offset = limit * (start - 1);
return $" select {DB_NAME_FIELDS} from (select {DB_NAME_FIELDS} ,row_number() over(order by {orderby} {orderbytag}) as num from { DB_NAME_SECURITY_USER_WEB_PAGE_PREFERENCE} where 1=1 {sqlWhere} ) a where num> {offset} LIMIT {offset},{limit} ";
return $" select {DB_NAME_FIELDS} from (select {DB_NAME_FIELDS} ,row_number() over(order by {orderby} {orderbytag}) as num from { DB_NAME_SECURITY_USER_WEB_PAGE_PREFERENCE} where 1=1 {sqlWhere} ) a where num> {offset} LIMIT {limit} ";
}
public string GetSelectTopFromBySqlServer(int limit, int start,string orderby,string orderbytag, string sqlWhere)
@@ -44,7 +44,7 @@ namespace CloudBuilder.Security.Entity
public const string DB_PK_NAME = "pk_name";
public const string DB_PK = "pk";
private string ProviderName { get; set; }
private string ProviderName { get; set; }
public static SysTablePkeyViewEntity GetInstance(string providerName)
{
@@ -145,7 +145,7 @@ namespace CloudBuilder.Security.Entity
if (string.IsNullOrEmpty(orderbytag) || orderbytag.Trim() != "desc") orderbytag = "asc";
if (string.IsNullOrEmpty(orderby) || !DB_NAME_FIELDS.Contains(orderby)) orderby = DB_TABLE_QUALIFIER ; int offset = limit * (start - 1);
return $" select {DB_NAME_FIELDS} from (select {DB_NAME_FIELDS} ,row_number() over(order by {orderby} {orderbytag}) as num from { DB_NAME_SYS_TABLE_PKEY_VIEW} where 1=1 {sqlWhere} ) a where num> {offset} LIMIT {offset},{limit} ";
return $" select {DB_NAME_FIELDS} from (select {DB_NAME_FIELDS} ,row_number() over(order by {orderby} {orderbytag}) as num from { DB_NAME_SYS_TABLE_PKEY_VIEW} where 1=1 {sqlWhere} ) a where num> {offset} LIMIT {limit} ";
}
public string GetSelectTopFromBySqlServer(int limit, int start,string orderby,string orderbytag, string sqlWhere)
@@ -80,7 +80,7 @@ namespace CloudBuilder.Security.Entity
public const string DB_IS_IDENTITY = "is_identity";
public const string DB_COLID = "colid";
private string ProviderName { get; set; }
private string ProviderName { get; set; }
public static SysTableSchemaViewEntity GetInstance(string providerName)
{
@@ -190,7 +190,7 @@ namespace CloudBuilder.Security.Entity
if (string.IsNullOrEmpty(orderbytag) || orderbytag.Trim() != "desc") orderbytag = "asc";
if (string.IsNullOrEmpty(orderby) || !DB_NAME_FIELDS.Contains(orderby)) orderby = DB_TABLE_NAME ; int offset = limit * (start - 1);
return $" select {DB_NAME_FIELDS} from (select {DB_NAME_FIELDS} ,row_number() over(order by {orderby} {orderbytag}) as num from { DB_NAME_SYS_TABLE_SCHEMA_VIEW} where 1=1 {sqlWhere} ) a where num> {offset} LIMIT {offset},{limit} ";
return $" select {DB_NAME_FIELDS} from (select {DB_NAME_FIELDS} ,row_number() over(order by {orderby} {orderbytag}) as num from { DB_NAME_SYS_TABLE_SCHEMA_VIEW} where 1=1 {sqlWhere} ) a where num> {offset} LIMIT {limit} ";
}
public string GetSelectTopFromBySqlServer(int limit, int start,string orderby,string orderbytag, string sqlWhere)