Update 达梦

This commit is contained in:
sunkaixuan 2024-10-23 16:55:39 +08:00
parent 50de929f89
commit cb29fe4faf
2 changed files with 11 additions and 6 deletions

View File

@ -13,11 +13,11 @@ namespace SqlSugar
return this; return this;
} }
public override ISugarQueryable<T> PartitionBy(string groupFileds) //public override ISugarQueryable<T> PartitionBy(string groupFileds)
{ //{
this.GroupBy(groupFileds); // this.GroupBy(groupFileds);
return this; // return this;
} //}
} }
public class DmQueryable<T, T2> : QueryableProvider<T, T2> public class DmQueryable<T, T2> : QueryableProvider<T, T2>
{ {

View File

@ -13,12 +13,17 @@ namespace SqlSugar
public override string SqlTemplate public override string SqlTemplate
{ {
get get
{ {
return "SELECT {0}{" + UtilConstants.ReplaceKey + "} FROM {1}{2}{3}{4}"; return "SELECT {0}{" + UtilConstants.ReplaceKey + "} FROM {1}{2}{3}{4}";
} }
} }
public override string ToSqlString() public override string ToSqlString()
{ {
if (PartitionByValue.HasValue())
{
return base.ToSqlString();
}
//Support MySql Model //Support MySql Model
if (this.Context.CurrentConnectionConfig.MoreSettings?.DatabaseModel == DbType.MySql) if (this.Context.CurrentConnectionConfig.MoreSettings?.DatabaseModel == DbType.MySql)
{ {