Synchronization code

This commit is contained in:
sunkaixuan 2023-04-23 11:39:06 +08:00
parent 38aa7174f1
commit 456337b6ee
2 changed files with 8 additions and 0 deletions

View File

@ -104,6 +104,10 @@ namespace SqlSugar
}
public class KdbndpMethod : DefaultDbMethod, IDbMethods
{
public override string CharIndex(MethodCallExpressionModel model)
{
return string.Format(" (strpos ({1},{0})-1)", model.Args[0].MemberName, model.Args[1].MemberName);
}
public override string TrueValue()
{
return "true";

View File

@ -133,6 +133,10 @@ namespace SqlSugar
}
public class PostgreSQLMethod : DefaultDbMethod, IDbMethods
{
public override string CharIndex(MethodCallExpressionModel model)
{
return string.Format(" (strpos ({1},{0})-1)", model.Args[0].MemberName, model.Args[1].MemberName);
}
public override string TrueValue()
{
return "true";