private
This commit is contained in:
1 parent
3c66041378
commit
4b92ee5fab
1 file changed
+2
-2
@@ -101,7 +101,7 @@ namespace @namespaceObject.Namespace@{<text>.Entity</text>}
|
||||
</text>
|
||||
}
|
||||
|
||||
public string ProviderName { get; set; }
|
||||
private string ProviderName { get; set; }
|
||||
|
||||
public static @sysTableSchemas[0].TableName.StringToProerty()Entity GetInstance(string providerName)
|
||||
{
|
||||
@@ -227,7 +227,7 @@ namespace @namespaceObject.Namespace@{<text>.Entity</text>}
|
||||
<text> if (string.IsNullOrEmpty(orderby) || !DB_NAME_FIELDS.Contains(orderby)) orderby = DB_@sysTableSchemas[0].FieldName.ToUpper() ; </text>
|
||||
}
|
||||
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_@sysTableSchemas[0].TableName.ToUpper()} 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_@sysTableSchemas[0].TableName.ToUpper()} where 1=1 {sqlWhere} ) a where num> {offset} LIMIT {limit} ";
|
||||
}
|
||||
|
||||
public string GetSelectTopFromBySqlServer(int limit, int start,string orderby,string orderbytag, string sqlWhere)
|
||||
|
||||
Reference in new issue
Block a user