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;
}
public override ISugarQueryable<T> PartitionBy(string groupFileds)
{
this.GroupBy(groupFileds);
return this;
}
//public override ISugarQueryable<T> PartitionBy(string groupFileds)
//{
// this.GroupBy(groupFileds);
// return this;
//}
}
public class DmQueryable<T, T2> : QueryableProvider<T, T2>
{

View File

@ -19,6 +19,11 @@ namespace SqlSugar
}
public override string ToSqlString()
{
if (PartitionByValue.HasValue())
{
return base.ToSqlString();
}
//Support MySql Model
if (this.Context.CurrentConnectionConfig.MoreSettings?.DatabaseModel == DbType.MySql)
{