diff --git a/CloudBuilder/CloudBuilder.Security/Entity/CloudBuilderSecurityRegistEntity.auto.cs b/CloudBuilder/CloudBuilder.Security/Entity/CloudBuilderSecurityRegistEntity.auto.cs index 6e197a5..767fdfc 100644 --- a/CloudBuilder/CloudBuilder.Security/Entity/CloudBuilderSecurityRegistEntity.auto.cs +++ b/CloudBuilder/CloudBuilder.Security/Entity/CloudBuilderSecurityRegistEntity.auto.cs @@ -149,6 +149,37 @@ builder.Entity(eb => { eb.HasNoKey(); }); +builder.Entity(eb => { eb.HasNoKey(); }); + + +builder.Entity(eb => { eb.HasNoKey(); }); + +builder.Entity(eb => { eb.HasNoKey(); }); + +builder.Entity(eb => { eb.HasNoKey(); }); + + +builder.Entity(eb => { eb.HasNoKey(); }); + + +builder.Entity(eb => { eb.HasNoKey(); }); + + + +builder.Entity(eb => { eb.HasNoKey(); }); + +builder.Entity(eb => { eb.HasNoKey(); }); + +builder.Entity(eb => { eb.HasNoKey(); }); + + +builder.Entity(eb => { eb.HasNoKey(); }); + +builder.Entity(eb => { eb.HasNoKey(); }); + + + + builder.Entity(eb => { eb.HasNoKey(); }); diff --git a/CloudBuilder/CloudBuilder.Security/Entity/LocaleEntity.auto.cs b/CloudBuilder/CloudBuilder.Security/Entity/LocaleEntity.auto.cs index be01662..cbf0776 100644 --- a/CloudBuilder/CloudBuilder.Security/Entity/LocaleEntity.auto.cs +++ b/CloudBuilder/CloudBuilder.Security/Entity/LocaleEntity.auto.cs @@ -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) diff --git a/CloudBuilder/CloudBuilder.Security/Entity/SecurityActorEntity.auto.cs b/CloudBuilder/CloudBuilder.Security/Entity/SecurityActorEntity.auto.cs index 511679d..a448815 100644 --- a/CloudBuilder/CloudBuilder.Security/Entity/SecurityActorEntity.auto.cs +++ b/CloudBuilder/CloudBuilder.Security/Entity/SecurityActorEntity.auto.cs @@ -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) diff --git a/CloudBuilder/CloudBuilder.Security/Entity/SecurityActorGroupEntity.auto.cs b/CloudBuilder/CloudBuilder.Security/Entity/SecurityActorGroupEntity.auto.cs index f4e9d70..1d989d4 100644 --- a/CloudBuilder/CloudBuilder.Security/Entity/SecurityActorGroupEntity.auto.cs +++ b/CloudBuilder/CloudBuilder.Security/Entity/SecurityActorGroupEntity.auto.cs @@ -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) diff --git a/CloudBuilder/CloudBuilder.Security/Entity/SecurityActorGroupViewEntity.auto.cs b/CloudBuilder/CloudBuilder.Security/Entity/SecurityActorGroupViewEntity.auto.cs index 0529a85..44a0ccd 100644 --- a/CloudBuilder/CloudBuilder.Security/Entity/SecurityActorGroupViewEntity.auto.cs +++ b/CloudBuilder/CloudBuilder.Security/Entity/SecurityActorGroupViewEntity.auto.cs @@ -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) diff --git a/CloudBuilder/CloudBuilder.Security/Entity/SecurityFunctionEntity.auto.cs b/CloudBuilder/CloudBuilder.Security/Entity/SecurityFunctionEntity.auto.cs index c0d775d..994b751 100644 --- a/CloudBuilder/CloudBuilder.Security/Entity/SecurityFunctionEntity.auto.cs +++ b/CloudBuilder/CloudBuilder.Security/Entity/SecurityFunctionEntity.auto.cs @@ -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) diff --git a/CloudBuilder/CloudBuilder.Security/Entity/SecurityFunctionMapEntity.auto.cs b/CloudBuilder/CloudBuilder.Security/Entity/SecurityFunctionMapEntity.auto.cs index 380a495..2c55b97 100644 --- a/CloudBuilder/CloudBuilder.Security/Entity/SecurityFunctionMapEntity.auto.cs +++ b/CloudBuilder/CloudBuilder.Security/Entity/SecurityFunctionMapEntity.auto.cs @@ -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) diff --git a/CloudBuilder/CloudBuilder.Security/Entity/SecurityFunctionMapViewEntity.auto.cs b/CloudBuilder/CloudBuilder.Security/Entity/SecurityFunctionMapViewEntity.auto.cs index e2ce342..a09369b 100644 --- a/CloudBuilder/CloudBuilder.Security/Entity/SecurityFunctionMapViewEntity.auto.cs +++ b/CloudBuilder/CloudBuilder.Security/Entity/SecurityFunctionMapViewEntity.auto.cs @@ -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) diff --git a/CloudBuilder/CloudBuilder.Security/Entity/SecurityGeneratorNumberEntity.auto.cs b/CloudBuilder/CloudBuilder.Security/Entity/SecurityGeneratorNumberEntity.auto.cs index 6bbda62..04c7987 100644 --- a/CloudBuilder/CloudBuilder.Security/Entity/SecurityGeneratorNumberEntity.auto.cs +++ b/CloudBuilder/CloudBuilder.Security/Entity/SecurityGeneratorNumberEntity.auto.cs @@ -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) diff --git a/CloudBuilder/CloudBuilder.Security/Entity/SecurityGroupEntity.auto.cs b/CloudBuilder/CloudBuilder.Security/Entity/SecurityGroupEntity.auto.cs index 6b1aec1..8356d8b 100644 --- a/CloudBuilder/CloudBuilder.Security/Entity/SecurityGroupEntity.auto.cs +++ b/CloudBuilder/CloudBuilder.Security/Entity/SecurityGroupEntity.auto.cs @@ -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) diff --git a/CloudBuilder/CloudBuilder.Security/Entity/SecurityGroupPermissionDependentEntity.auto.cs b/CloudBuilder/CloudBuilder.Security/Entity/SecurityGroupPermissionDependentEntity.auto.cs index 3822fa1..74ead0f 100644 --- a/CloudBuilder/CloudBuilder.Security/Entity/SecurityGroupPermissionDependentEntity.auto.cs +++ b/CloudBuilder/CloudBuilder.Security/Entity/SecurityGroupPermissionDependentEntity.auto.cs @@ -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) diff --git a/CloudBuilder/CloudBuilder.Security/Entity/SecurityGroupPermissionDependentViewEntity.auto.cs b/CloudBuilder/CloudBuilder.Security/Entity/SecurityGroupPermissionDependentViewEntity.auto.cs index d99463d..4c22226 100644 --- a/CloudBuilder/CloudBuilder.Security/Entity/SecurityGroupPermissionDependentViewEntity.auto.cs +++ b/CloudBuilder/CloudBuilder.Security/Entity/SecurityGroupPermissionDependentViewEntity.auto.cs @@ -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) diff --git a/CloudBuilder/CloudBuilder.Security/Entity/SecurityGroupPermissionEntity.auto.cs b/CloudBuilder/CloudBuilder.Security/Entity/SecurityGroupPermissionEntity.auto.cs index 0ba2bd8..9d46851 100644 --- a/CloudBuilder/CloudBuilder.Security/Entity/SecurityGroupPermissionEntity.auto.cs +++ b/CloudBuilder/CloudBuilder.Security/Entity/SecurityGroupPermissionEntity.auto.cs @@ -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) diff --git a/CloudBuilder/CloudBuilder.Security/Entity/SecurityGroupPermissionViewEntity.auto.cs b/CloudBuilder/CloudBuilder.Security/Entity/SecurityGroupPermissionViewEntity.auto.cs index 49c57e2..3f58427 100644 --- a/CloudBuilder/CloudBuilder.Security/Entity/SecurityGroupPermissionViewEntity.auto.cs +++ b/CloudBuilder/CloudBuilder.Security/Entity/SecurityGroupPermissionViewEntity.auto.cs @@ -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) diff --git a/CloudBuilder/CloudBuilder.Security/Entity/SecurityInitializerTickViewEntity.auto.cs b/CloudBuilder/CloudBuilder.Security/Entity/SecurityInitializerTickViewEntity.auto.cs index 16f93ed..81131d8 100644 --- a/CloudBuilder/CloudBuilder.Security/Entity/SecurityInitializerTickViewEntity.auto.cs +++ b/CloudBuilder/CloudBuilder.Security/Entity/SecurityInitializerTickViewEntity.auto.cs @@ -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) diff --git a/CloudBuilder/CloudBuilder.Security/Entity/SecurityLockEntity.auto.cs b/CloudBuilder/CloudBuilder.Security/Entity/SecurityLockEntity.auto.cs index 0d691b6..145eced 100644 --- a/CloudBuilder/CloudBuilder.Security/Entity/SecurityLockEntity.auto.cs +++ b/CloudBuilder/CloudBuilder.Security/Entity/SecurityLockEntity.auto.cs @@ -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) diff --git a/CloudBuilder/CloudBuilder.Security/Entity/SecurityMasterEntity.auto.cs b/CloudBuilder/CloudBuilder.Security/Entity/SecurityMasterEntity.auto.cs index 5063a8f..dc40f80 100644 --- a/CloudBuilder/CloudBuilder.Security/Entity/SecurityMasterEntity.auto.cs +++ b/CloudBuilder/CloudBuilder.Security/Entity/SecurityMasterEntity.auto.cs @@ -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) diff --git a/CloudBuilder/CloudBuilder.Security/Entity/SecurityPermissionDependentEntity.auto.cs b/CloudBuilder/CloudBuilder.Security/Entity/SecurityPermissionDependentEntity.auto.cs index 0faf1ed..73db07f 100644 --- a/CloudBuilder/CloudBuilder.Security/Entity/SecurityPermissionDependentEntity.auto.cs +++ b/CloudBuilder/CloudBuilder.Security/Entity/SecurityPermissionDependentEntity.auto.cs @@ -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) diff --git a/CloudBuilder/CloudBuilder.Security/Entity/SecurityPermissionEntity.auto.cs b/CloudBuilder/CloudBuilder.Security/Entity/SecurityPermissionEntity.auto.cs index 89607c3..2e63319 100644 --- a/CloudBuilder/CloudBuilder.Security/Entity/SecurityPermissionEntity.auto.cs +++ b/CloudBuilder/CloudBuilder.Security/Entity/SecurityPermissionEntity.auto.cs @@ -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) diff --git a/CloudBuilder/CloudBuilder.Security/Entity/SecurityPermissionFunctionMapEntity.auto.cs b/CloudBuilder/CloudBuilder.Security/Entity/SecurityPermissionFunctionMapEntity.auto.cs index 9e46e51..8a6bfac 100644 --- a/CloudBuilder/CloudBuilder.Security/Entity/SecurityPermissionFunctionMapEntity.auto.cs +++ b/CloudBuilder/CloudBuilder.Security/Entity/SecurityPermissionFunctionMapEntity.auto.cs @@ -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) diff --git a/CloudBuilder/CloudBuilder.Security/Entity/SecurityPermissionFunctionMapViewEntity.auto.cs b/CloudBuilder/CloudBuilder.Security/Entity/SecurityPermissionFunctionMapViewEntity.auto.cs index 1e4fbe4..3dc7671 100644 --- a/CloudBuilder/CloudBuilder.Security/Entity/SecurityPermissionFunctionMapViewEntity.auto.cs +++ b/CloudBuilder/CloudBuilder.Security/Entity/SecurityPermissionFunctionMapViewEntity.auto.cs @@ -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) diff --git a/CloudBuilder/CloudBuilder.Security/Entity/SecurityPermissionViewEntity.auto.cs b/CloudBuilder/CloudBuilder.Security/Entity/SecurityPermissionViewEntity.auto.cs index 917a5ee..cf538c9 100644 --- a/CloudBuilder/CloudBuilder.Security/Entity/SecurityPermissionViewEntity.auto.cs +++ b/CloudBuilder/CloudBuilder.Security/Entity/SecurityPermissionViewEntity.auto.cs @@ -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) diff --git a/CloudBuilder/CloudBuilder.Security/Entity/SecurityTableDescriptionEntity.auto.cs b/CloudBuilder/CloudBuilder.Security/Entity/SecurityTableDescriptionEntity.auto.cs index 99b96c6..a9cf74f 100644 --- a/CloudBuilder/CloudBuilder.Security/Entity/SecurityTableDescriptionEntity.auto.cs +++ b/CloudBuilder/CloudBuilder.Security/Entity/SecurityTableDescriptionEntity.auto.cs @@ -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) diff --git a/CloudBuilder/CloudBuilder.Security/Entity/SecurityUserActorEntity.auto.cs b/CloudBuilder/CloudBuilder.Security/Entity/SecurityUserActorEntity.auto.cs index 96ff205..4e23242 100644 --- a/CloudBuilder/CloudBuilder.Security/Entity/SecurityUserActorEntity.auto.cs +++ b/CloudBuilder/CloudBuilder.Security/Entity/SecurityUserActorEntity.auto.cs @@ -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) diff --git a/CloudBuilder/CloudBuilder.Security/Entity/SecurityUserActorViewEntity.auto.cs b/CloudBuilder/CloudBuilder.Security/Entity/SecurityUserActorViewEntity.auto.cs index e57895d..2f7b4f1 100644 --- a/CloudBuilder/CloudBuilder.Security/Entity/SecurityUserActorViewEntity.auto.cs +++ b/CloudBuilder/CloudBuilder.Security/Entity/SecurityUserActorViewEntity.auto.cs @@ -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) diff --git a/CloudBuilder/CloudBuilder.Security/Entity/SecurityUserDelegatedPermissionEntity.auto.cs b/CloudBuilder/CloudBuilder.Security/Entity/SecurityUserDelegatedPermissionEntity.auto.cs index bab6047..6e576d0 100644 --- a/CloudBuilder/CloudBuilder.Security/Entity/SecurityUserDelegatedPermissionEntity.auto.cs +++ b/CloudBuilder/CloudBuilder.Security/Entity/SecurityUserDelegatedPermissionEntity.auto.cs @@ -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) diff --git a/CloudBuilder/CloudBuilder.Security/Entity/SecurityUserEntity.auto.cs b/CloudBuilder/CloudBuilder.Security/Entity/SecurityUserEntity.auto.cs index 89546ab..afc6339 100644 --- a/CloudBuilder/CloudBuilder.Security/Entity/SecurityUserEntity.auto.cs +++ b/CloudBuilder/CloudBuilder.Security/Entity/SecurityUserEntity.auto.cs @@ -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) diff --git a/CloudBuilder/CloudBuilder.Security/Entity/SecurityUserLoginLogEntity.auto.cs b/CloudBuilder/CloudBuilder.Security/Entity/SecurityUserLoginLogEntity.auto.cs index f15daf3..d6938e0 100644 --- a/CloudBuilder/CloudBuilder.Security/Entity/SecurityUserLoginLogEntity.auto.cs +++ b/CloudBuilder/CloudBuilder.Security/Entity/SecurityUserLoginLogEntity.auto.cs @@ -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) diff --git a/CloudBuilder/CloudBuilder.Security/Entity/SecurityUserPreferenceEntity.auto.cs b/CloudBuilder/CloudBuilder.Security/Entity/SecurityUserPreferenceEntity.auto.cs index 434d2d8..64b779a 100644 --- a/CloudBuilder/CloudBuilder.Security/Entity/SecurityUserPreferenceEntity.auto.cs +++ b/CloudBuilder/CloudBuilder.Security/Entity/SecurityUserPreferenceEntity.auto.cs @@ -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) diff --git a/CloudBuilder/CloudBuilder.Security/Entity/SecurityUserViewEntity.auto.cs b/CloudBuilder/CloudBuilder.Security/Entity/SecurityUserViewEntity.auto.cs index 6bb05af..63d055d 100644 --- a/CloudBuilder/CloudBuilder.Security/Entity/SecurityUserViewEntity.auto.cs +++ b/CloudBuilder/CloudBuilder.Security/Entity/SecurityUserViewEntity.auto.cs @@ -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) diff --git a/CloudBuilder/CloudBuilder.Security/Entity/SecurityUserWebLoginEntity.auto.cs b/CloudBuilder/CloudBuilder.Security/Entity/SecurityUserWebLoginEntity.auto.cs index 9bc8236..56a2b18 100644 --- a/CloudBuilder/CloudBuilder.Security/Entity/SecurityUserWebLoginEntity.auto.cs +++ b/CloudBuilder/CloudBuilder.Security/Entity/SecurityUserWebLoginEntity.auto.cs @@ -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) diff --git a/CloudBuilder/CloudBuilder.Security/Entity/SecurityUserWebPagePreferenceEntity.auto.cs b/CloudBuilder/CloudBuilder.Security/Entity/SecurityUserWebPagePreferenceEntity.auto.cs index 048b93a..81fb009 100644 --- a/CloudBuilder/CloudBuilder.Security/Entity/SecurityUserWebPagePreferenceEntity.auto.cs +++ b/CloudBuilder/CloudBuilder.Security/Entity/SecurityUserWebPagePreferenceEntity.auto.cs @@ -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) diff --git a/CloudBuilder/CloudBuilder.Security/Entity/SysTablePkeyViewEntity.auto.cs b/CloudBuilder/CloudBuilder.Security/Entity/SysTablePkeyViewEntity.auto.cs index 77adf3e..1615650 100644 --- a/CloudBuilder/CloudBuilder.Security/Entity/SysTablePkeyViewEntity.auto.cs +++ b/CloudBuilder/CloudBuilder.Security/Entity/SysTablePkeyViewEntity.auto.cs @@ -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) diff --git a/CloudBuilder/CloudBuilder.Security/Entity/SysTableSchemaViewEntity.auto.cs b/CloudBuilder/CloudBuilder.Security/Entity/SysTableSchemaViewEntity.auto.cs index 5590787..44b89bf 100644 --- a/CloudBuilder/CloudBuilder.Security/Entity/SysTableSchemaViewEntity.auto.cs +++ b/CloudBuilder/CloudBuilder.Security/Entity/SysTableSchemaViewEntity.auto.cs @@ -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) diff --git a/WebVue/src/components/basic/Search.vue b/WebVue/src/components/basic/Search.vue index a4d0746..e7f42b3 100644 --- a/WebVue/src/components/basic/Search.vue +++ b/WebVue/src/components/basic/Search.vue @@ -1,64 +1,130 @@