Browse Source

Optimizing error hints

pull/12/MERGE
sunkaixuan 7 years ago
parent
commit
cd77614213
  1. 1
      Src/Asp.Net/SqlSugar/ExpressionsToSql/ResolveItems/MethodCallExpressionResolve.cs
  2. 2
      Src/Asp.Net/SqlSugar/SqlSugar.nuspec

1
Src/Asp.Net/SqlSugar/ExpressionsToSql/ResolveItems/MethodCallExpressionResolve.cs

@ -351,6 +351,7 @@ namespace SqlSugar
case "ToTime":
return this.Context.DbMehtods.ToTime(model);
case "ToString":
Check.Exception(model.Args.Count > 1, "ToString (Format) is not supported, Use ToString().If time formatting can be used it.Date.Year+\"-\"+it.Data.Month+\"-\"+it.Date.Day ");
return this.Context.DbMehtods.ToString(model);
case "ToDecimal":
return this.Context.DbMehtods.ToDecimal(model);

2
Src/Asp.Net/SqlSugar/SqlSugar.nuspec

@ -2,7 +2,7 @@
<package >
<metadata>
<id>sqlSugar</id>
<version>4.5</version>
<version>4.5.0.1</version>
<title>SqlSugar Best ORM Fastest ORM Simple Easy ORM</title>
<authors>sun kaixuan</authors>
<owners>landa</owners>

Loading…
Cancel
Save