old_flsystem/类库/SqlSugar/ExpressionsToSql/DbMethods/IDbMethods.cs

65 lines
2.8 KiB
C#
Raw Normal View History

2022-09-20 03:10:29 +00:00
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
namespace SqlSugar
{
public interface IDbMethods
{
string IIF(MethodCallExpressionModel model);
string HasNumber(MethodCallExpressionModel model);
string HasValue(MethodCallExpressionModel model);
string IsNullOrEmpty(MethodCallExpressionModel model);
string ToLower(MethodCallExpressionModel model);
string ToUpper(MethodCallExpressionModel model);
string Trim(MethodCallExpressionModel model);
string Contains(MethodCallExpressionModel model);
string ContainsArray(MethodCallExpressionModel model);
string Equals(MethodCallExpressionModel model);
string DateIsSameDay(MethodCallExpressionModel model);
string DateIsSameByType(MethodCallExpressionModel model);
string DateAddByType(MethodCallExpressionModel model);
string DateValue(MethodCallExpressionModel model);
string DateAddDay(MethodCallExpressionModel model);
string Between(MethodCallExpressionModel model);
string StartsWith(MethodCallExpressionModel model);
string EndsWith(MethodCallExpressionModel model);
string ToInt32(MethodCallExpressionModel model);
string ToInt64(MethodCallExpressionModel model);
string ToString(MethodCallExpressionModel model);
string ToGuid(MethodCallExpressionModel model);
string ToDouble(MethodCallExpressionModel model);
string ToBool(MethodCallExpressionModel model);
string CaseWhen(List<KeyValuePair<string,string>> sqls);
string Substring(MethodCallExpressionModel model);
string ToDate(MethodCallExpressionModel model);
string ToTime(MethodCallExpressionModel model);
string ToDecimal(MethodCallExpressionModel model);
string Length(MethodCallExpressionModel model);
string Replace(MethodCallExpressionModel model);
string AggregateSum(MethodCallExpressionModel model);
string AggregateAvg(MethodCallExpressionModel model);
string AggregateMin(MethodCallExpressionModel model);
string AggregateMax(MethodCallExpressionModel model);
string AggregateCount(MethodCallExpressionModel model);
string MappingColumn(MethodCallExpressionModel model);
string IsNull(MethodCallExpressionModel model);
string GetSelfAndAutoFill(string shortName,bool isSingle);
string True();
string False();
string GuidNew();
string MergeString(params string[] strings);
string EqualTrue(string value);
string Pack(string sql);
string Null();
string GetDate();
string GetRandom();
}
}