ShadowSqlCoreServices 类
- 命名空间
- ShadowSql
- 程序集
- ShadowSql.Core.dll
与逻辑扩展方法
public static class ShadowSqlCoreServices
- 继承
-
objectShadowSqlCoreServices
方法
Add(ICompareView, ICompareView)
加
public static ArithmeticView Add(this ICompareView left, ICompareView right)
参数
leftICompareView左
rightICompareView右
返回
AddAssign(IAssignView, ICompareView)
加上
public static AssignOperation AddAssign(this IAssignView field, ICompareView right)
参数
fieldIAssignView字段
rightICompareView右
返回
AddAssign(IAssignView, string)
加上
public static AssignOperation AddAssign(this IAssignView field, string parameter = "")
参数
fieldIAssignView字段
parameterstring参数
返回
AddColums<TTable>(TTable, params IEnumerable<IColumn>)
添加列
public static TTable AddColums<TTable>(this TTable table, params IEnumerable<IColumn> columns) where TTable : Table
参数
tableTTable表
columnsIEnumerable<IColumn>列
返回
- TTable
类型参数
TTable
AddValue<TValue>(IAssignView, TValue)
加上
public static AssignOperation AddValue<TValue>(this IAssignView field, TValue value)
参数
fieldIAssignView字段
valueTValue值
返回
类型参数
TValue
And(ICompareView, ICompareView)
位与
public static ArithmeticView And(this ICompareView left, ICompareView right)
参数
leftICompareView左
rightICompareView右
返回
And(AndLogic, EmptyLogic)
与逻辑
public static AndLogic And(this AndLogic other, EmptyLogic _)
参数
otherAndLogic_EmptyLogic空逻辑
返回
And(AndLogic, Logic)
与逻辑
public static Logic And(this AndLogic logic, Logic other)
参数
返回
And(AtomicLogic, AndLogic)
与逻辑
public static AndLogic And(this AtomicLogic logic, AndLogic other)
参数
logicAtomicLogic查询逻辑
otherAndLogic
返回
And(AtomicLogic, AtomicLogic)
与逻辑
public static AndLogic And(this AtomicLogic logic, AtomicLogic other)
参数
logicAtomicLogic查询逻辑
otherAtomicLogic
返回
And(AtomicLogic, ComplexAndLogic)
与逻辑
public static ComplexAndLogic And(this AtomicLogic logic, ComplexAndLogic other)
参数
logicAtomicLogic查询逻辑
otherComplexAndLogic
返回
And(AtomicLogic, ComplexOrLogic)
与逻辑
public static Logic And(this AtomicLogic logic, ComplexOrLogic other)
参数
logicAtomicLogic查询逻辑
otherComplexOrLogic
返回
And(AtomicLogic, EmptyLogic)
与逻辑
public static AtomicLogic And(this AtomicLogic other, EmptyLogic _)
参数
otherAtomicLogic_EmptyLogic空逻辑
返回
And(AtomicLogic, Logic)
与逻辑
public static Logic And(this AtomicLogic logic, Logic other)
参数
logicAtomicLogic查询逻辑
otherLogic
返回
And(AtomicLogic, OrLogic)
与逻辑
public static Logic And(this AtomicLogic logic, OrLogic other)
参数
logicAtomicLogic查询逻辑
otherOrLogic
返回
And(ComplexAndLogic, Logic)
与逻辑
public static Logic And(this ComplexAndLogic logic, Logic other)
参数
logicComplexAndLogic查询逻辑
otherLogic
返回
And(ComplexOrLogic, Logic)
与逻辑
public static Logic And(this ComplexOrLogic logic, Logic other)
参数
logicComplexOrLogic查询逻辑
otherLogic
返回
And(EmptyLogic, AndLogic)
与逻辑
public static AndLogic And(this EmptyLogic _, AndLogic other)
参数
_EmptyLogic空逻辑
otherAndLogic
返回
And(EmptyLogic, AtomicLogic)
与逻辑
public static AtomicLogic And(this EmptyLogic _, AtomicLogic other)
参数
_EmptyLogic空逻辑
otherAtomicLogic
返回
And(EmptyLogic, EmptyLogic)
与逻辑
public static EmptyLogic And(this EmptyLogic logic, EmptyLogic _)
参数
logicEmptyLogic查询逻辑
_EmptyLogic空逻辑
返回
And(EmptyLogic, OrLogic)
与逻辑
public static Logic And(this EmptyLogic _, OrLogic other)
参数
_EmptyLogic空逻辑
otherOrLogic
返回
And(Logic, Logic)
与逻辑
public static Logic And(this Logic logic, Logic other)
参数
返回
And(OrLogic, EmptyLogic)
与逻辑
public static Logic And(this OrLogic other, EmptyLogic _)
参数
otherOrLogic_EmptyLogic空逻辑
返回
And(OrLogic, Logic)
与逻辑
public static Logic And(this OrLogic logic, Logic other)
参数
返回
AndAssign(IAssignView, ICompareView)
位与
public static AssignOperation AndAssign(this IAssignView field, ICompareView right)
参数
fieldIAssignView字段
rightICompareView右
返回
AndAssign(IAssignView, string)
位与
public static AssignOperation AndAssign(this IAssignView field, string parameter = "")
参数
fieldIAssignView字段
parameterstring参数
返回
AndValue<TValue>(IAssignView, TValue)
位与
public static AssignOperation AndValue<TValue>(this IAssignView field, TValue value)
参数
fieldIAssignView字段
valueTValue值
返回
类型参数
TValue
Assign(IAssignView, ICompareView)
等于
public static AssignOperation Assign(this IAssignView field, ICompareView right)
参数
fieldIAssignView字段
rightICompareView右
返回
Assign(IAssignView, string)
等于
public static AssignOperation Assign(this IAssignView field, string parameter = "")
参数
fieldIAssignView字段
parameterstring参数
返回
AssignValue<TValue>(IAssignView, TValue)
等于
public static AssignOperation AssignValue<TValue>(this IAssignView field, TValue value)
参数
fieldIAssignView字段
valueTValue值
返回
类型参数
TValue
Between(IAggregateField, string, string)
在...之间逻辑
public static AtomicLogic Between(this IAggregateField field, string begin = "", string end = "")
参数
fieldIAggregateField字段
beginstring范围开始
endstring范围结束
返回
Between(ICompareField, string, string)
在...之间逻辑
public static AtomicLogic Between(this ICompareField field, string begin = "", string end = "")
参数
fieldICompareField字段
beginstring范围开始
endstring范围结束
返回
BetweenValue(ICompareView, ICompareView, ICompareView)
在...之间逻辑
public static AtomicLogic BetweenValue(this ICompareView field, ICompareView begin, ICompareView end)
参数
fieldICompareView字段
beginICompareView范围开始
endICompareView范围结束
返回
BetweenValue<TValue>(ICompareView, TValue, TValue)
在...之间逻辑
public static AtomicLogic BetweenValue<TValue>(this ICompareView field, TValue begin, TValue end)
参数
fieldICompareView字段
beginTValue范围开始
endTValue范围结束
返回
类型参数
TValue
Column(ITable, string)
定位到列
public static IColumn Column(this ITable table, string columnName)
参数
返回
异常
Compare(IAggregateField, CompareSymbol, string)
比较逻辑
public static AtomicLogic Compare(this IAggregateField field, CompareSymbol compare, string parameter = "")
参数
fieldIAggregateField字段
compareCompareSymbolparameterstring参数
返回
Compare(IAggregateField, string, string)
比较逻辑
public static AtomicLogic Compare(this IAggregateField field, string op, string parameter = "")
参数
fieldIAggregateField字段
opstring操作
parameterstring参数
返回
Compare(ICompareField, string, string)
比较逻辑
public static AtomicLogic Compare(this ICompareField field, string op, string parameter = "")
参数
fieldICompareField字段
opstring操作
parameterstring参数
返回
Compare(ICompareView, CompareSymbol, ICompareView)
比较逻辑
public static AtomicLogic Compare(this ICompareView field, CompareSymbol compare, ICompareView right)
参数
fieldICompareView字段
compareCompareSymbolrightICompareView右
返回
Compare(ICompareView, string, ICompareView)
比较逻辑
public static AtomicLogic Compare(this ICompareView field, string op, ICompareView right)
参数
fieldICompareView字段
opstring操作
rightICompareView右
返回
CompareValue<TValue>(ICompareView, CompareSymbol, TValue)
比较逻辑
public static AtomicLogic CompareValue<TValue>(this ICompareView field, CompareSymbol compare, TValue value)
参数
fieldICompareView字段
compareCompareSymbolvalueTValue值
返回
类型参数
TValue
CompareValue<TValue>(ICompareView, string, TValue)
比较逻辑
public static AtomicLogic CompareValue<TValue>(this ICompareView field, string op, TValue value)
参数
fieldICompareView字段
opstring操作
valueTValue值
返回
类型参数
TValue
ConcatPrefix(ISqlEngine, ISqlEntity, StringBuilder, params IEnumerable<string>)
前缀拼接
public static void ConcatPrefix(this ISqlEngine engine, ISqlEntity entity, StringBuilder builder, params IEnumerable<string> suffix)
参数
engineISqlEngine数据库引擎
entityISqlEntitybuilderStringBuildersuffixIEnumerable<string>
Copy(Table, string)
复制表
public static Table Copy(this Table table, string newName = "")
参数
返回
Copy(AndLogic)
复制与逻辑
public static AndLogic Copy(this AndLogic source)
参数
sourceAndLogic
返回
Copy(OrLogic)
复制或逻辑
public static OrLogic Copy(this OrLogic source)
参数
sourceOrLogic
返回
CountSql(ISqlEngine, ITableView, int)
拼写计数sql
public static string CountSql(this ISqlEngine engine, ITableView view, int capacity = 128)
参数
engineISqlEngine数据库引擎
viewITableViewcapacityint
返回
DefineColums<TTable>(TTable, params IEnumerable<string>)
定义列
public static TTable DefineColums<TTable>(this TTable table, params IEnumerable<string> columns) where TTable : Table
参数
tableTTable表
columnsIEnumerable<string>列
返回
- TTable
类型参数
TTable
Div(ICompareView, ICompareView)
除
public static ArithmeticView Div(this ICompareView left, ICompareView right)
参数
leftICompareView左
rightICompareView右
返回
DivAssign(IAssignView, ICompareView)
除去
public static AssignOperation DivAssign(this IAssignView field, ICompareView right)
参数
fieldIAssignView字段
rightICompareView右
返回
DivAssign(IAssignView, string)
除去
public static AssignOperation DivAssign(this IAssignView field, string parameter = "")
参数
fieldIAssignView字段
parameterstring参数
返回
DivValue<TValue>(IAssignView, TValue)
除去
public static AssignOperation DivValue<TValue>(this IAssignView field, TValue value)
参数
fieldIAssignView字段
valueTValue值
返回
类型参数
TValue
Equal(IAggregateField, string)
相等逻辑
public static AtomicLogic Equal(this IAggregateField field, string parameter = "")
参数
fieldIAggregateField字段
parameterstring参数
返回
Equal(ICompareField, string)
相等逻辑
public static AtomicLogic Equal(this ICompareField field, string parameter = "")
参数
fieldICompareField字段
parameterstring参数
返回
Equal(ICompareView, ICompareView)
相等逻辑
public static AtomicLogic Equal(this ICompareView field, ICompareView right)
参数
fieldICompareView字段
rightICompareView右
返回
EqualValue<TValue>(ICompareView, TValue)
相等逻辑
public static AtomicLogic EqualValue<TValue>(this ICompareView field, TValue value)
参数
fieldICompareView字段
valueTValue值
返回
类型参数
TValue
Field(ITableView, string)
定位到字段(宽松不校验)
public static IField Field(this ITableView view, string fieldName)
参数
viewITableViewfieldNamestring字段名
返回
异常
Fields(ITableView, params IEnumerable<string>)
选择列
public static IEnumerable<IField> Fields(this ITableView table, params IEnumerable<string> columnNames)
参数
tableITableView表
columnNamesIEnumerable<string>列名
返回
Greater(IAggregateField, string)
大于逻辑
public static AtomicLogic Greater(this IAggregateField field, string parameter = "")
参数
fieldIAggregateField字段
parameterstring参数
返回
Greater(ICompareField, string)
大于逻辑
public static AtomicLogic Greater(this ICompareField field, string parameter = "")
参数
fieldICompareField字段
parameterstring参数
返回
Greater(ICompareView, ICompareView)
大于逻辑
public static AtomicLogic Greater(this ICompareView field, ICompareView right)
参数
fieldICompareView字段
rightICompareView右
返回
GreaterEqual(IAggregateField, string)
大于等于逻辑
public static AtomicLogic GreaterEqual(this IAggregateField field, string parameter = "")
参数
fieldIAggregateField字段
parameterstring参数
返回
GreaterEqual(ICompareField, string)
大于等于逻辑
public static AtomicLogic GreaterEqual(this ICompareField field, string parameter = "")
参数
fieldICompareField字段
parameterstring参数
返回
GreaterEqual(ICompareView, ICompareView)
大于等于逻辑
public static AtomicLogic GreaterEqual(this ICompareView field, ICompareView right)
参数
fieldICompareView字段
rightICompareView右
返回
GreaterEqualValue<TValue>(ICompareView, TValue)
大于等于逻辑
public static AtomicLogic GreaterEqualValue<TValue>(this ICompareView field, TValue value)
参数
fieldICompareView字段
valueTValue值
返回
类型参数
TValue
GreaterValue<TValue>(ICompareView, TValue)
大于逻辑
public static AtomicLogic GreaterValue<TValue>(this ICompareView field, TValue value)
参数
fieldICompareView字段
valueTValue值
返回
类型参数
TValue
GroupByPrefix(ISqlEngine, StringBuilder)
GROUP BY前缀
public static void GroupByPrefix(this ISqlEngine engine, StringBuilder sql)
参数
engineISqlEngine数据库引擎
sqlStringBuildersql
HavingPrefix(ISqlEngine, StringBuilder)
HAVING前缀
public static void HavingPrefix(this ISqlEngine engine, StringBuilder sql)
参数
engineISqlEngine数据库引擎
sqlStringBuildersql
IgnoreInsert<TTable>(TTable, params IEnumerable<IColumn>)
忽略插入的列
public static TTable IgnoreInsert<TTable>(this TTable table, params IEnumerable<IColumn> columns) where TTable : Table
参数
tableTTable表
columnsIEnumerable<IColumn>列
返回
- TTable
类型参数
TTable
IgnoreInsert<TTable>(TTable, params IEnumerable<string>)
忽略插入的列
public static TTable IgnoreInsert<TTable>(this TTable table, params IEnumerable<string> columns) where TTable : Table
参数
tableTTable表
columnsIEnumerable<string>列
返回
- TTable
类型参数
TTable
IgnoreUpdate<TTable>(TTable, params IEnumerable<IColumn>)
忽略修改的列
public static TTable IgnoreUpdate<TTable>(this TTable table, params IEnumerable<IColumn> columns) where TTable : Table
参数
tableTTable表
columnsIEnumerable<IColumn>列
返回
- TTable
类型参数
TTable
IgnoreUpdate<TTable>(TTable, params IEnumerable<string>)
忽略修改的列
public static TTable IgnoreUpdate<TTable>(this TTable table, params IEnumerable<string> columns) where TTable : Table
参数
tableTTable表
columnsIEnumerable<string>列
返回
- TTable
类型参数
TTable
In(IAggregateField, string)
包含逻辑
public static AtomicLogic In(this IAggregateField field, string parameter = "")
参数
fieldIAggregateField字段
parameterstring参数
返回
In(ICompareField, string)
包含逻辑
public static AtomicLogic In(this ICompareField field, string parameter = "")
参数
fieldICompareField字段
parameterstring参数
返回
InValue<TValue>(ICompareView, params IEnumerable<TValue>)
包含逻辑
public static AtomicLogic InValue<TValue>(this ICompareView field, params IEnumerable<TValue> values)
参数
fieldICompareView字段
valuesIEnumerable<TValue>值
返回
类型参数
TValue
Insert(IColumn, string)
插入参数
public static InsertValue Insert(this IColumn column, string parameterName = "")
参数
返回
InsertColumn<TInsert>(TInsert, IColumn)
按指定列插入
public static TInsert InsertColumn<TInsert>(this TInsert insert, IColumn column) where TInsert : SingleInsertBase, ISingleInsert
参数
insertTInsertcolumnIColumn列
返回
- TInsert
类型参数
TInsert
InsertColumns<TInsert>(TInsert, params IEnumerable<IColumn>)
按指定列插入
public static TInsert InsertColumns<TInsert>(this TInsert insert, params IEnumerable<IColumn> columns) where TInsert : SingleInsertBase, ISingleInsert
参数
insertTInsertcolumnsIEnumerable<IColumn>列
返回
- TInsert
类型参数
TInsert
InsertSelfColumns<TInsert>(TInsert)
按自己的列插入
public static TInsert InsertSelfColumns<TInsert>(this TInsert insert) where TInsert : SingleInsertBase, ISingleInsert
参数
insertTInsert
返回
- TInsert
类型参数
TInsert
InsertValue<TValue>(IColumn, TValue)
插入单值
public static InsertValue InsertValue<TValue>(this IColumn column, TValue value)
参数
columnIColumn列
valueTValue值
返回
类型参数
TValue
InsertValues<TValue>(IColumn, params IEnumerable<TValue>)
插入多值
public static InsertValues InsertValues<TValue>(this IColumn column, params IEnumerable<TValue> values)
参数
columnIColumn列
valuesIEnumerable<TValue>值
返回
类型参数
TValue
Insert<TInsert>(TInsert, IInsertValue)
设置插入值
public static TInsert Insert<TInsert>(this TInsert insert, IInsertValue value) where TInsert : SingleInsertBase, ISingleInsert
参数
insertTInsertvalueIInsertValue值
返回
- TInsert
类型参数
TInsert
Insert<TInsert>(TInsert, IInsertValues)
设置插入值
public static TInsert Insert<TInsert>(this TInsert insert, IInsertValues value) where TInsert : MultiInsertBase, IMultiInsert
参数
insertTInsertvalueIInsertValues值
返回
- TInsert
类型参数
TInsert
Insert<TInsert>(TInsert, params IEnumerable<IColumn>)
设置列
public static TInsert Insert<TInsert>(this TInsert insert, params IEnumerable<IColumn> columns) where TInsert : SelectInsertBase, ISelectInsert
参数
insertTInsertcolumnsIEnumerable<IColumn>列
返回
- TInsert
类型参数
TInsert
Insert<TInsert>(TInsert, params IEnumerable<string>)
设置列
public static TInsert Insert<TInsert>(this TInsert insert, params IEnumerable<string> columnNames) where TInsert : SelectInsertBase, ISelectInsert
参数
insertTInsertcolumnNamesIEnumerable<string>列名
返回
- TInsert
类型参数
TInsert
IsNull(ICompareView)
是否为空逻辑
public static AtomicLogic IsNull(this ICompareView field)
参数
fieldICompareView字段
返回
JoinOnPrefix(ISqlEngine, StringBuilder)
联表ON前缀
public static void JoinOnPrefix(this ISqlEngine engine, StringBuilder sql)
参数
engineISqlEngine数据库引擎
sqlStringBuildersql
Less(IAggregateField, string)
小于逻辑
public static AtomicLogic Less(this IAggregateField field, string parameter = "")
参数
fieldIAggregateField字段
parameterstring参数
返回
Less(ICompareField, string)
小于逻辑
public static AtomicLogic Less(this ICompareField field, string parameter = "")
参数
fieldICompareField字段
parameterstring参数
返回
Less(ICompareView, ICompareView)
小于逻辑
public static AtomicLogic Less(this ICompareView field, ICompareView right)
参数
fieldICompareView字段
rightICompareView右
返回
LessEqual(IAggregateField, string)
小于等于逻辑
public static AtomicLogic LessEqual(this IAggregateField field, string parameter = "")
参数
fieldIAggregateField字段
parameterstring参数
返回
LessEqual(ICompareField, string)
小于等于逻辑
public static AtomicLogic LessEqual(this ICompareField field, string parameter = "")
参数
fieldICompareField字段
parameterstring参数
返回
LessEqual(ICompareView, ICompareView)
小于等于逻辑
public static AtomicLogic LessEqual(this ICompareView field, ICompareView right)
参数
fieldICompareView字段
rightICompareView右
返回
LessEqualValue<TValue>(ICompareView, TValue)
小于等于逻辑
public static AtomicLogic LessEqualValue<TValue>(this ICompareView field, TValue value)
参数
fieldICompareView字段
valueTValue值
返回
类型参数
TValue
LessValue<TValue>(ICompareView, TValue)
小于逻辑
public static AtomicLogic LessValue<TValue>(this ICompareView field, TValue value)
参数
fieldICompareView字段
valueTValue值
返回
类型参数
TValue
Like(IAggregateField, string)
Like匹配逻辑
public static AtomicLogic Like(this IAggregateField field, string parameter = "")
参数
fieldIAggregateField字段
parameterstring参数
返回
Like(ICompareField, string)
Like匹配逻辑
public static AtomicLogic Like(this ICompareField field, string parameter = "")
参数
fieldICompareField字段
parameterstring参数
返回
LikeValue(ICompareView, string)
Like匹配逻辑
public static AtomicLogic LikeValue(this ICompareView field, string value)
参数
fieldICompareView字段
valuestring值
返回
Mod(ICompareView, ICompareView)
取模
public static ArithmeticView Mod(this ICompareView left, ICompareView right)
参数
leftICompareView左
rightICompareView右
返回
ModAssign(IAssignView, ICompareView)
取模
public static AssignOperation ModAssign(this IAssignView field, ICompareView right)
参数
fieldIAssignView字段
rightICompareView右
返回
ModAssign(IAssignView, string)
取模
public static AssignOperation ModAssign(this IAssignView field, string parameter = "")
参数
fieldIAssignView字段
parameterstring参数
返回
ModValue<TValue>(IAssignView, TValue)
取模
public static AssignOperation ModValue<TValue>(this IAssignView field, TValue value)
参数
fieldIAssignView字段
valueTValue值
返回
类型参数
TValue
Mul(ICompareView, ICompareView)
乘
public static ArithmeticView Mul(this ICompareView left, ICompareView right)
参数
leftICompareView左
rightICompareView右
返回
MulAssign(IAssignView, ICompareView)
乘上
public static AssignOperation MulAssign(this IAssignView field, ICompareView right)
参数
fieldIAssignView字段
rightICompareView右
返回
MulAssign(IAssignView, string)
乘上
public static AssignOperation MulAssign(this IAssignView field, string parameter = "")
参数
fieldIAssignView字段
parameterstring参数
返回
MulValue<TValue>(IAssignView, TValue)
乘上
public static AssignOperation MulValue<TValue>(this IAssignView field, TValue value)
参数
fieldIAssignView字段
valueTValue值
返回
类型参数
TValue
Not(AndLogic)
not And为not每个子项的Or
public static OrLogic Not(this AndLogic and)
参数
andAndLogic
返回
Not(Logic)
反逻辑
public static Logic Not(this Logic logic)
参数
logicLogic
返回
Not(OrLogic)
not Or为not每个子项的And
public static AndLogic Not(this OrLogic or)
参数
orOrLogic
返回
NotBetween(IAggregateField, string, string)
不在...之间逻辑
public static AtomicLogic NotBetween(this IAggregateField field, string begin = "", string end = "")
参数
fieldIAggregateField字段
beginstring范围开始
endstring范围结束
返回
NotBetween(ICompareField, string, string)
不在...之间逻辑
public static AtomicLogic NotBetween(this ICompareField field, string begin = "", string end = "")
参数
fieldICompareField字段
beginstring范围开始
endstring范围结束
返回
NotBetweenValue(ICompareView, ICompareView, ICompareView)
不在...之间逻辑
public static AtomicLogic NotBetweenValue(this ICompareView field, ICompareView begin, ICompareView end)
参数
fieldICompareView字段
beginICompareView范围开始
endICompareView范围结束
返回
NotBetweenValue<TValue>(ICompareView, TValue, TValue)
不在...之间逻辑
public static AtomicLogic NotBetweenValue<TValue>(this ICompareView field, TValue begin, TValue end)
参数
fieldICompareView字段
beginTValue范围开始
endTValue范围结束
返回
类型参数
TValue
NotEqual(IAggregateField, string)
不相等逻辑
public static AtomicLogic NotEqual(this IAggregateField field, string parameter = "")
参数
fieldIAggregateField字段
parameterstring参数
返回
NotEqual(ICompareField, string)
不相等逻辑
public static AtomicLogic NotEqual(this ICompareField field, string parameter = "")
参数
fieldICompareField字段
parameterstring参数
返回
NotEqual(ICompareView, ICompareView)
不相等逻辑
public static AtomicLogic NotEqual(this ICompareView field, ICompareView right)
参数
fieldICompareView字段
rightICompareView右
返回
NotEqualValue<TValue>(ICompareView, TValue)
不相等逻辑
public static AtomicLogic NotEqualValue<TValue>(this ICompareView field, TValue value)
参数
fieldICompareView字段
valueTValue值
返回
类型参数
TValue
NotIn(IAggregateField, string)
不包含逻辑
public static AtomicLogic NotIn(this IAggregateField field, string parameter = "")
参数
fieldIAggregateField字段
parameterstring参数
返回
NotIn(ICompareField, string)
不包含逻辑
public static AtomicLogic NotIn(this ICompareField field, string parameter = "")
参数
fieldICompareField字段
parameterstring参数
返回
NotInValue<TValue>(ICompareView, params IEnumerable<TValue>)
不包含逻辑
public static AtomicLogic NotInValue<TValue>(this ICompareView field, params IEnumerable<TValue> values)
参数
fieldICompareView字段
valuesIEnumerable<TValue>值
返回
类型参数
TValue
NotLike(IAggregateField, string)
否定Like匹配逻辑
public static AtomicLogic NotLike(this IAggregateField field, string parameter = "")
参数
fieldIAggregateField字段
parameterstring参数
返回
NotLike(ICompareField, string)
否定Like匹配逻辑
public static AtomicLogic NotLike(this ICompareField field, string parameter = "")
参数
fieldICompareField字段
parameterstring参数
返回
NotLikeValue(ICompareView, string)
否定Like匹配逻辑
public static AtomicLogic NotLikeValue(this ICompareView field, string value)
参数
fieldICompareView字段
valuestring值
返回
NotNull(ICompareView)
是否不为空逻辑
public static AtomicLogic NotNull(this ICompareView field)
参数
fieldICompareView字段
返回
Or(ICompareView, ICompareView)
位或
public static ArithmeticView Or(this ICompareView left, ICompareView right)
参数
leftICompareView左
rightICompareView右
返回
Or(AndLogic, EmptyLogic)
或逻辑
public static Logic Or(this AndLogic other, EmptyLogic _)
参数
otherAndLogic_EmptyLogic空逻辑
返回
Or(AndLogic, Logic)
或逻辑
public static Logic Or(this AndLogic logic, Logic other)
参数
返回
Or(AtomicLogic, AndLogic)
或逻辑
public static Logic Or(this AtomicLogic logic, AndLogic other)
参数
logicAtomicLogic查询逻辑
otherAndLogic
返回
Or(AtomicLogic, AtomicLogic)
或逻辑
public static OrLogic Or(this AtomicLogic logic, AtomicLogic other)
参数
logicAtomicLogic查询逻辑
otherAtomicLogic
返回
Or(AtomicLogic, ComplexAndLogic)
或逻辑
public static Logic Or(this AtomicLogic logic, ComplexAndLogic other)
参数
logicAtomicLogic查询逻辑
otherComplexAndLogic
返回
Or(AtomicLogic, ComplexOrLogic)
或逻辑
public static ComplexOrLogic Or(this AtomicLogic logic, ComplexOrLogic other)
参数
logicAtomicLogic查询逻辑
otherComplexOrLogic
返回
Or(AtomicLogic, EmptyLogic)
或逻辑
public static AtomicLogic Or(this AtomicLogic other, EmptyLogic _)
参数
otherAtomicLogic_EmptyLogic空逻辑
返回
Or(AtomicLogic, Logic)
或逻辑
public static Logic Or(this AtomicLogic logic, Logic other)
参数
logicAtomicLogic查询逻辑
otherLogic
返回
Or(AtomicLogic, OrLogic)
或逻辑
public static OrLogic Or(this AtomicLogic logic, OrLogic other)
参数
logicAtomicLogic查询逻辑
otherOrLogic
返回
Or(ComplexAndLogic, Logic)
或逻辑
public static Logic Or(this ComplexAndLogic logic, Logic other)
参数
logicComplexAndLogic查询逻辑
otherLogic
返回
Or(ComplexOrLogic, Logic)
或逻辑
public static Logic Or(this ComplexOrLogic logic, Logic other)
参数
logicComplexOrLogic查询逻辑
otherLogic
返回
Or(EmptyLogic, AndLogic)
或逻辑
public static Logic Or(this EmptyLogic _, AndLogic other)
参数
_EmptyLogic空逻辑
otherAndLogic
返回
Or(EmptyLogic, AtomicLogic)
或逻辑
public static AtomicLogic Or(this EmptyLogic _, AtomicLogic other)
参数
_EmptyLogic空逻辑
otherAtomicLogic
返回
Or(EmptyLogic, EmptyLogic)
或逻辑
public static EmptyLogic Or(this EmptyLogic logic, EmptyLogic _)
参数
logicEmptyLogic查询逻辑
_EmptyLogic
返回
Or(EmptyLogic, OrLogic)
或逻辑
public static OrLogic Or(this EmptyLogic _, OrLogic other)
参数
_EmptyLogic空逻辑
otherOrLogic
返回
Or(Logic, Logic)
或逻辑
public static Logic Or(this Logic logic, Logic other)
参数
返回
Or(OrLogic, EmptyLogic)
或逻辑
public static OrLogic Or(this OrLogic other, EmptyLogic _)
参数
otherOrLogic_EmptyLogic空逻辑
返回
Or(OrLogic, Logic)
或逻辑
public static Logic Or(this OrLogic logic, Logic other)
参数
返回
OrAssign(IAssignView, ICompareView)
位或
public static AssignOperation OrAssign(this IAssignView field, ICompareView right)
参数
fieldIAssignView字段
rightICompareView右
返回
OrAssign(IAssignView, string)
位或
public static AssignOperation OrAssign(this IAssignView field, string parameter = "")
参数
fieldIAssignView字段
parameterstring参数
返回
OrValue<TValue>(IAssignView, TValue)
位或
public static AssignOperation OrValue<TValue>(this IAssignView field, TValue value)
参数
fieldIAssignView字段
valueTValue值
返回
类型参数
TValue
SelectSelfColumns<TSelectFields>(TSelectFields)
筛选自身所有字段
public static TSelectFields SelectSelfColumns<TSelectFields>(this TSelectFields fields) where TSelectFields : SelectFieldsBase
参数
fieldsTSelectFields字段
返回
- TSelectFields
类型参数
TSelectFields
Select<TSelectFields>(TSelectFields, params IEnumerable<IFieldView>)
筛选列
public static TSelectFields Select<TSelectFields>(this TSelectFields select, params IEnumerable<IFieldView> fields) where TSelectFields : SelectFieldsBase
参数
selectTSelectFields筛选
fieldsIEnumerable<IFieldView>字段
返回
- TSelectFields
类型参数
TSelectFields
Select<TSelectFields>(TSelectFields, params IEnumerable<string>)
筛选列
public static TSelectFields Select<TSelectFields>(this TSelectFields select, params IEnumerable<string> columns) where TSelectFields : SelectFieldsBase
参数
selectTSelectFields筛选
columnsIEnumerable<string>列
返回
- TSelectFields
类型参数
TSelectFields
SetAssign<TUpdate>(TUpdate, string, string)
赋参数
public static TUpdate SetAssign<TUpdate>(this TUpdate update, string columnName, string parameter = "") where TUpdate : UpdateBase, IUpdate
参数
返回
- TUpdate
类型参数
TUpdate
SetFields<TUpdate>(TUpdate, params IEnumerable<IAssignView>)
按字段修改
public static TUpdate SetFields<TUpdate>(this TUpdate update, params IEnumerable<IAssignView> fields) where TUpdate : UpdateBase, IUpdate
参数
updateTUpdatefieldsIEnumerable<IAssignView>字段
返回
- TUpdate
类型参数
TUpdate
SetSelfFields<TUpdate>(TUpdate)
按自己的列修改
public static TUpdate SetSelfFields<TUpdate>(this TUpdate update) where TUpdate : UpdateBase, IUpdate
参数
updateTUpdate
返回
- TUpdate
类型参数
TUpdate
SetValue<TUpdate, TValue>(TUpdate, string, TValue)
赋值
public static TUpdate SetValue<TUpdate, TValue>(this TUpdate update, string columnName, TValue value) where TUpdate : UpdateBase, IUpdate
参数
updateTUpdatecolumnNamestring列名
valueTValue值
返回
- TUpdate
类型参数
TUpdateTValue
SetValue<TUpdate, TValue>(TUpdate, string, TValue, string)
赋值
public static TUpdate SetValue<TUpdate, TValue>(this TUpdate update, string columnName, TValue value, string op) where TUpdate : UpdateBase, IUpdate
参数
返回
- TUpdate
类型参数
TUpdateTValue
Set<TUpdate>(TUpdate, IAssignInfo)
赋值操作
public static TUpdate Set<TUpdate>(this TUpdate update, IAssignInfo operation) where TUpdate : UpdateBase, IUpdate
参数
updateTUpdateoperationIAssignInfo操作
返回
- TUpdate
类型参数
TUpdate
Set<TUpdate>(TUpdate, IAssignView, string)
按字段修改
public static TUpdate Set<TUpdate>(this TUpdate update, IAssignView field, string op = "=") where TUpdate : UpdateBase, IUpdate
参数
updateTUpdatefieldIAssignView字段
opstring操作
返回
- TUpdate
类型参数
TUpdate
Set<TUpdate>(TUpdate, string, string, string)
赋参数
public static TUpdate Set<TUpdate>(this TUpdate update, string columnName, string op = "=", string parameter = "") where TUpdate : UpdateBase, IUpdate
参数
返回
- TUpdate
类型参数
TUpdate
Sql(ISqlEngine, ISqlEntity, int)
拼写sql
public static string Sql(this ISqlEngine engine, ISqlEntity entity, int capacity = 16)
参数
engineISqlEngine数据库引擎
entityISqlEntitycapacityint
返回
Sql(ISqlEngine, ISqlFragment, int)
拼写sql
public static string Sql(this ISqlEngine engine, ISqlFragment fragment, int capacity = 128)
参数
engineISqlEngine数据库引擎
fragmentISqlFragmentcapacityint
返回
Strict(ITableView, string)
定位到字段(严格校验)
public static IField Strict(this ITableView view, string fieldName)
参数
viewITableViewfieldNamestring字段名
返回
异常
Sub(ICompareView, ICompareView)
减
public static ArithmeticView Sub(this ICompareView left, ICompareView right)
参数
leftICompareView左
rightICompareView右
返回
SubAssign(IAssignView, ICompareView)
减去
public static AssignOperation SubAssign(this IAssignView field, ICompareView right)
参数
fieldIAssignView字段
rightICompareView右
返回
SubAssign(IAssignView, string)
减去
public static AssignOperation SubAssign(this IAssignView field, string parameter = "")
参数
fieldIAssignView字段
parameterstring参数
返回
SubValue<TValue>(IAssignView, TValue)
减去
public static AssignOperation SubValue<TValue>(this IAssignView field, TValue value)
参数
fieldIAssignView字段
valueTValue值
返回
类型参数
TValue
ToDelete(ITable, ISqlLogic)
删除
public static TableDelete ToDelete(this ITable table, ISqlLogic where)
参数
返回
ToDelete<TTable>(TTable, Func<TTable, ISqlLogic>)
删除
public static TableDelete ToDelete<TTable>(this TTable table, Func<TTable, ISqlLogic> query) where TTable : ITable
参数
返回
类型参数
TTable
ToTruncate(ITable)
清空表
public static TruncateTable ToTruncate(this ITable table)
参数
tableITable表
返回
WherePrefix(ISqlEngine, StringBuilder)
WHERE前缀
public static void WherePrefix(this ISqlEngine engine, StringBuilder sql)
参数
engineISqlEngine数据库引擎
sqlStringBuildersql
WriteInsertColumnName(ISqlEngine, StringBuilder, IColumn)
拼写插入列名(避免出现列名前缀可能导致错误)
public static void WriteInsertColumnName(this ISqlEngine engine, StringBuilder sql, IColumn column)
参数
engineISqlEngine数据库引擎
sqlStringBuildersql
columnIColumn列
Xor(ICompareView, ICompareView)
异或
public static ArithmeticView Xor(this ICompareView left, ICompareView right)
参数
leftICompareView左
rightICompareView右
返回
XorAssign(IAssignView, ICompareView)
位异或
public static AssignOperation XorAssign(this IAssignView field, ICompareView right)
参数
fieldIAssignView字段
rightICompareView右
返回
XorAssign(IAssignView, string)
位异或
public static AssignOperation XorAssign(this IAssignView field, string parameter = "")
参数
fieldIAssignView字段
parameterstring参数
返回
XorValue<TValue>(IAssignView, TValue)
位异或
public static AssignOperation XorValue<TValue>(this IAssignView field, TValue value)
参数
fieldIAssignView字段
valueTValue值
返回
类型参数
TValue