ShadowSqlCoreServices 类
- 命名空间
- ShadowSql
- 程序集
- ShadowSql.Core.dll
聚合扩展方法
public static class ShadowSqlCoreServices
- 继承
-
ShadowSqlCoreServices
- 继承成员
方法
Add(IAssignView, ISqlValue)
加上
public static AssignOperation Add(this IAssignView field, ISqlValue right)
参数
field
IAssignViewright
ISqlValue
返回
Add(IAssignView, string)
加上
public static AssignOperation Add(this IAssignView field, string parameter = "")
参数
field
IAssignViewparameter
string
返回
AddColums<TTable>(TTable, params IEnumerable<IColumn>)
添加列
public static TTable AddColums<TTable>(this TTable table, params IEnumerable<IColumn> columns) where TTable : Table
参数
table
TTablecolumns
IEnumerable<IColumn>
返回
- TTable
类型参数
TTable
AddMembers<MultiTable>(MultiTable, params IEnumerable<IAliasTable>)
添加表成员
public static MultiTable AddMembers<MultiTable>(this MultiTable multiTable, params IEnumerable<IAliasTable> aliasTables) where MultiTable : MultiTableBase
参数
multiTable
MultiTablealiasTables
IEnumerable<IAliasTable>
返回
- MultiTable
类型参数
MultiTable
AddMembers<MultiTable>(MultiTable, params IEnumerable<ITable>)
添加表成员
public static MultiTable AddMembers<MultiTable>(this MultiTable multiTable, params IEnumerable<ITable> tables) where MultiTable : MultiTableBase, IMultiView
参数
multiTable
MultiTabletables
IEnumerable<ITable>
返回
- MultiTable
类型参数
MultiTable
AddMembers<MultiTable>(MultiTable, params IEnumerable<string>)
添加表成员
public static MultiTable AddMembers<MultiTable>(this MultiTable multiTable, params IEnumerable<string> tableNames) where MultiTable : MultiTableBase, IMultiView
参数
multiTable
MultiTabletableNames
IEnumerable<string>
返回
- MultiTable
类型参数
MultiTable
AddValue<TValue>(IAssignView, TValue)
加上
public static AssignOperation AddValue<TValue>(this IAssignView field, TValue value)
参数
field
IAssignViewvalue
TValue
返回
类型参数
TValue
Aggregate(ICompareField, string)
聚合
public static IAggregateField Aggregate(this ICompareField field, string aggregate)
参数
field
ICompareFieldaggregate
string
返回
Aggregate(IGroupByView, string, string)
聚合
public static IAggregateField Aggregate(this IGroupByView view, string aggregate, string field)
参数
view
IGroupByViewaggregate
stringfield
string
返回
Alias<TTable>(IMultiView, string)
定位到别名表
public static IAliasTable<TTable> Alias<TTable>(this IMultiView multiTable, string tableName) where TTable : ITable
参数
multiTable
IMultiViewtableName
string
返回
- IAliasTable<TTable>
类型参数
TTable
异常
Alias<TSelectFields>(TSelectFields, ISingleSelect, string)
子查询作为字段别名
public static TSelectFields Alias<TSelectFields>(this TSelectFields fields, ISingleSelect select, string alias) where TSelectFields : SelectFieldsBase
参数
fields
TSelectFieldsselect
ISingleSelectalias
string
返回
- TSelectFields
类型参数
TSelectFields
Alias<TSelectFields>(TSelectFields, string, string)
筛选别名
public static TSelectFields Alias<TSelectFields>(this TSelectFields fields, string statement, string alias) where TSelectFields : SelectFieldsBase
参数
返回
- TSelectFields
类型参数
TSelectFields
And(IAssignView, ISqlValue)
位与
public static AssignOperation And(this IAssignView field, ISqlValue right)
参数
field
IAssignViewright
ISqlValue
返回
And(IAssignView, string)
位与
public static AssignOperation And(this IAssignView field, string parameter = "")
参数
field
IAssignViewparameter
string
返回
And(AndLogic, EmptyLogic)
与逻辑
public static AndLogic And(this AndLogic other, EmptyLogic logic)
参数
other
AndLogiclogic
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)
参数
logic
AtomicLogicother
AndLogic
返回
And(AtomicLogic, AtomicLogic)
与逻辑
public static AndLogic And(this AtomicLogic logic, AtomicLogic other)
参数
logic
AtomicLogicother
AtomicLogic
返回
And(AtomicLogic, ComplexAndLogic)
与逻辑
public static ComplexAndLogic And(this AtomicLogic logic, ComplexAndLogic other)
参数
logic
AtomicLogicother
ComplexAndLogic
返回
And(AtomicLogic, ComplexOrLogic)
与逻辑
public static Logic And(this AtomicLogic logic, ComplexOrLogic other)
参数
logic
AtomicLogicother
ComplexOrLogic
返回
And(AtomicLogic, EmptyLogic)
与逻辑
public static AtomicLogic And(this AtomicLogic other, EmptyLogic logic)
参数
other
AtomicLogiclogic
EmptyLogic
返回
And(AtomicLogic, Logic)
与逻辑
public static Logic And(this AtomicLogic logic, Logic other)
参数
logic
AtomicLogicother
Logic
返回
And(AtomicLogic, OrLogic)
与逻辑
public static Logic And(this AtomicLogic logic, OrLogic other)
参数
logic
AtomicLogicother
OrLogic
返回
And(ComplexAndLogic, EmptyLogic)
与逻辑
public static ComplexAndLogic And(this ComplexAndLogic other, EmptyLogic logic)
参数
other
ComplexAndLogiclogic
EmptyLogic
返回
And(ComplexAndLogic, Logic)
与逻辑
public static Logic And(this ComplexAndLogic logic, Logic other)
参数
logic
ComplexAndLogicother
Logic
返回
And(ComplexOrLogic, EmptyLogic)
与逻辑
public static Logic And(this ComplexOrLogic other, EmptyLogic logic)
参数
other
ComplexOrLogiclogic
EmptyLogic
返回
And(ComplexOrLogic, Logic)
与逻辑
public static Logic And(this ComplexOrLogic logic, Logic other)
参数
logic
ComplexOrLogicother
Logic
返回
And(EmptyLogic, AndLogic)
与逻辑
public static AndLogic And(this EmptyLogic logic, AndLogic other)
参数
logic
EmptyLogicother
AndLogic
返回
And(EmptyLogic, AtomicLogic)
与逻辑
public static AtomicLogic And(this EmptyLogic logic, AtomicLogic other)
参数
logic
EmptyLogicother
AtomicLogic
返回
And(EmptyLogic, ComplexAndLogic)
与逻辑
public static ComplexAndLogic And(this EmptyLogic logic, ComplexAndLogic other)
参数
logic
EmptyLogicother
ComplexAndLogic
返回
And(EmptyLogic, ComplexOrLogic)
与逻辑
public static Logic And(this EmptyLogic logic, ComplexOrLogic other)
参数
logic
EmptyLogicother
ComplexOrLogic
返回
And(EmptyLogic, EmptyLogic)
与逻辑
public static EmptyLogic And(this EmptyLogic logic, EmptyLogic other)
参数
logic
EmptyLogicother
EmptyLogic
返回
And(EmptyLogic, OrLogic)
与逻辑
public static Logic And(this EmptyLogic logic, OrLogic other)
参数
logic
EmptyLogicother
OrLogic
返回
And(EmptyLogic, SqlAndQuery)
与逻辑
public static SqlAndQuery And(this EmptyLogic logic, SqlAndQuery other)
参数
logic
EmptyLogicother
SqlAndQuery
返回
And(Logic, Logic)
与逻辑
public static Logic And(this Logic logic, Logic other)
参数
返回
And(OrLogic, EmptyLogic)
与逻辑
public static Logic And(this OrLogic other, EmptyLogic logic)
参数
other
OrLogiclogic
EmptyLogic
返回
And(OrLogic, Logic)
与逻辑
public static Logic And(this OrLogic logic, Logic other)
参数
返回
And(SqlAndQuery, ComplexOrLogic)
与运算嵌套或逻辑
public static SqlAndQuery And(this SqlAndQuery query, ComplexOrLogic logic)
参数
query
SqlAndQuerylogic
ComplexOrLogic
返回
And(SqlAndQuery, EmptyLogic)
与逻辑
public static SqlAndQuery And(this SqlAndQuery other, EmptyLogic logic)
参数
other
SqlAndQuerylogic
EmptyLogic
返回
And(SqlAndQuery, OrLogic)
与运算嵌套或逻辑
public static SqlAndQuery And(this SqlAndQuery query, OrLogic logic)
参数
query
SqlAndQuerylogic
OrLogic
返回
AndValue<TValue>(IAssignView, TValue)
位与
public static AssignOperation AndValue<TValue>(this IAssignView field, TValue value)
参数
field
IAssignViewvalue
TValue
返回
类型参数
TValue
And<Query>(Query, AndLogic)
与运算
public static Query And<Query>(this Query query, AndLogic logic) where Query : FilterBase, IDataQuery
参数
query
Querylogic
AndLogic
返回
- Query
类型参数
Query
And<Query>(Query, AtomicLogic)
与运算
public static Query And<Query>(this Query query, AtomicLogic logic) where Query : FilterBase, IDataQuery
参数
query
Querylogic
AtomicLogic
返回
- Query
类型参数
Query
And<Query>(Query, ComplexAndLogic)
与运算
public static Query And<Query>(this Query query, ComplexAndLogic logic) where Query : FilterBase, IDataQuery
参数
query
Querylogic
ComplexAndLogic
返回
- Query
类型参数
Query
And<Query>(Query, ComplexOrLogic)
与运算
public static Query And<Query>(this Query query, ComplexOrLogic logic) where Query : FilterBase, IDataQuery
参数
query
Querylogic
ComplexOrLogic
返回
- Query
类型参数
Query
And<Query>(Query, Logic)
与运算
public static Query And<Query>(this Query query, Logic logic) where Query : FilterBase, IDataQuery
参数
query
Querylogic
Logic
返回
- Query
类型参数
Query
And<Query>(Query, OrLogic)
与运算
public static Query And<Query>(this Query query, OrLogic logic) where Query : FilterBase, IDataQuery
参数
query
Querylogic
OrLogic
返回
- Query
类型参数
Query
And<Query>(Query, Func<IGroupByView, AtomicLogic>)
与运算
public static Query And<Query>(this Query query, Func<IGroupByView, AtomicLogic> logic) where Query : GroupByBase, IDataQuery
参数
query
Querylogic
Func<IGroupByView, AtomicLogic>
返回
- Query
类型参数
Query
And<Query>(Query, Func<IGroupByView, OrLogic>)
与运算嵌套或逻辑
public static Query And<Query>(this Query query, Func<IGroupByView, OrLogic> logic) where Query : GroupByBase, IDataQuery
参数
query
Querylogic
Func<IGroupByView, OrLogic>
返回
- Query
类型参数
Query
And<Query>(Query, Func<ITableView, AtomicLogic>)
与运算
public static Query And<Query>(this Query query, Func<ITableView, AtomicLogic> logic) where Query : FilterBase, IDataQuery
参数
query
Querylogic
Func<ITableView, AtomicLogic>
返回
- Query
类型参数
Query
And<Query>(Query, Func<ITableView, OrLogic>)
与运算嵌套或逻辑
public static Query And<Query>(this Query query, Func<ITableView, OrLogic> logic) where Query : FilterBase, IDataQuery
参数
query
Querylogic
Func<ITableView, OrLogic>
返回
- Query
类型参数
Query
Apply(JoinOnSqlQuery, Func<SqlQuery, IAliasTable, IAliasTable, SqlQuery>)
应用sql查询
public static JoinOnSqlQuery Apply(this JoinOnSqlQuery query, Func<SqlQuery, IAliasTable, IAliasTable, SqlQuery> on)
参数
query
JoinOnSqlQueryon
Func<SqlQuery, IAliasTable, IAliasTable, SqlQuery>
返回
Apply<Query>(Query, Func<Logic, IGroupByView, Logic>)
应用逻辑
public static Query Apply<Query>(this Query groupBy, Func<Logic, IGroupByView, Logic> logic) where Query : GroupByBase, IDataQuery
参数
groupBy
Querylogic
Func<Logic, IGroupByView, Logic>
返回
- Query
类型参数
Query
Apply<Query>(Query, Func<Logic, ITableView, Logic>)
应用逻辑
public static Query Apply<Query>(this Query query, Func<Logic, ITableView, Logic> logic) where Query : FilterBase, IDataQuery
参数
query
Querylogic
Func<Logic, ITableView, Logic>
返回
- Query
类型参数
Query
Apply<Query>(Query, Func<Logic, Logic>)
应用逻辑
public static Query Apply<Query>(this Query query, Func<Logic, Logic> logic) where Query : FilterBase, IDataQuery
参数
返回
- Query
类型参数
Query
Apply<TGroupBy>(TGroupBy, Func<SqlQuery, IGroupByView, SqlQuery>)
按SqlQuery查询
public static TGroupBy Apply<TGroupBy>(this TGroupBy groupBy, Func<SqlQuery, IGroupByView, SqlQuery> query) where TGroupBy : GroupByBase, IDataSqlQuery
参数
groupBy
TGroupByquery
Func<SqlQuery, IGroupByView, SqlQuery>
返回
- TGroupBy
类型参数
TGroupBy
Apply<Query>(Query, Func<SqlQuery, ITableView, SqlQuery>)
应用sql查询
public static Query Apply<Query>(this Query query, Func<SqlQuery, ITableView, SqlQuery> where) where Query : IDataSqlQuery
参数
query
Querywhere
Func<SqlQuery, ITableView, SqlQuery>
返回
- Query
类型参数
Query
Apply<Query>(Query, Func<SqlQuery, SqlQuery>)
应用sql查询
public static Query Apply<Query>(this Query query, Func<SqlQuery, SqlQuery> where) where Query : IDataSqlQuery
参数
返回
- Query
类型参数
Query
Apply<TJoinOn>(TJoinOn, Func<SqlQuery, TJoinOn, SqlQuery>)
按SqlQuery查询
public static TJoinOn Apply<TJoinOn>(this TJoinOn joinOn, Func<SqlQuery, TJoinOn, SqlQuery> query) where TJoinOn : JoinOnBase, IDataSqlQuery, IJoinOn
参数
返回
- TJoinOn
类型参数
TJoinOn
Apply<TJoinOn>(TJoinOn, string, string, Func<Logic, ICompareView, ICompareView, Logic>)
按列查询
public static TJoinOn Apply<TJoinOn>(this TJoinOn joinOn, string left, string right, Func<Logic, ICompareView, ICompareView, Logic> logic) where TJoinOn : JoinOnBase, IDataQuery
参数
joinOn
TJoinOnleft
stringright
stringlogic
Func<Logic, ICompareView, ICompareView, Logic>
返回
- TJoinOn
类型参数
TJoinOn
AsExists(ITableView)
EXISTS子查询逻辑
public static ExistsLogic AsExists(this ITableView source)
参数
source
ITableView
返回
AsInnerJoin<TjoinOn>(TjoinOn)
内联
public static TjoinOn AsInnerJoin<TjoinOn>(this TjoinOn joinOn) where TjoinOn : JoinOnBase
参数
joinOn
TjoinOn
返回
- TjoinOn
类型参数
TjoinOn
AsLeftJoin<TjoinOn>(TjoinOn)
左联
public static TjoinOn AsLeftJoin<TjoinOn>(this TjoinOn joinOn) where TjoinOn : JoinOnBase
参数
joinOn
TjoinOn
返回
- TjoinOn
类型参数
TjoinOn
AsNotExists(ITableView)
NOT EXISTS子查询逻辑
public static NotExistsLogic AsNotExists(this ITableView source)
参数
source
ITableView
返回
AsOuterJoin<TjoinOn>(TjoinOn)
外联
public static TjoinOn AsOuterJoin<TjoinOn>(this TjoinOn joinOn) where TjoinOn : JoinOnBase
参数
joinOn
TjoinOn
返回
- TjoinOn
类型参数
TjoinOn
AsRightJoin<TjoinOn>(TjoinOn)
右联
public static TjoinOn AsRightJoin<TjoinOn>(this TjoinOn joinOn) where TjoinOn : JoinOnBase
参数
joinOn
TjoinOn
返回
- TjoinOn
类型参数
TjoinOn
As<TTable>(TTable, string)
别名表
public static TableAlias<TTable> As<TTable>(this TTable table, string alias) where TTable : ITable
参数
table
TTablealias
string
返回
- TableAlias<TTable>
类型参数
TTable
Asc<TCursor>(TCursor, IOrderView)
正序
public static TCursor Asc<TCursor>(this TCursor cursor, IOrderView field) where TCursor : CursorBase
参数
cursor
TCursorfield
IOrderView
返回
- TCursor
类型参数
TCursor
Asc<TCursor>(TCursor, params IEnumerable<string>)
正序
public static TCursor Asc<TCursor>(this TCursor cursor, params IEnumerable<string> fieldNames) where TCursor : CursorBase
参数
cursor
TCursorfieldNames
IEnumerable<string>
返回
- TCursor
类型参数
TCursor
Asc<TCursor>(TCursor, Func<ITableView, IOrderView>)
正序
public static TCursor Asc<TCursor>(this TCursor cursor, Func<ITableView, IOrderView> select) where TCursor : CursorBase, ICursor
参数
cursor
TCursorselect
Func<ITableView, IOrderView>
返回
- TCursor
类型参数
TCursor
Avg(ICompareField)
均值聚合
public static IAggregateField Avg(this ICompareField field)
参数
field
ICompareField
返回
Avg(IGroupByView, string)
均值聚合
public static IAggregateField Avg(this IGroupByView view, string field)
参数
view
IGroupByViewfield
string
返回
Between(IAggregateField, string, string)
在...之间逻辑
public static AtomicLogic Between(this IAggregateField field, string begin = "", string end = "")
参数
field
IAggregateFieldbegin
stringend
string
返回
Between(ICompareField, string, string)
在...之间逻辑
public static AtomicLogic Between(this ICompareField field, string begin = "", string end = "")
参数
field
ICompareFieldbegin
stringend
string
返回
BetweenValue(ICompareView, ISqlValue, ISqlValue)
在...之间逻辑
public static AtomicLogic BetweenValue(this ICompareView field, ISqlValue begin, ISqlValue end)
参数
field
ICompareViewbegin
ISqlValueend
ISqlValue
返回
BetweenValue<TValue>(ICompareView, TValue, TValue)
在...之间逻辑
public static AtomicLogic BetweenValue<TValue>(this ICompareView field, TValue begin, TValue end)
参数
field
ICompareViewbegin
TValueend
TValue
返回
类型参数
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 = "")
参数
field
IAggregateFieldcompare
CompareSymbolparameter
string
返回
Compare(IAggregateField, string, string)
比较逻辑
public static AtomicLogic Compare(this IAggregateField field, string op, string parameter = "")
参数
field
IAggregateFieldop
stringparameter
string
返回
Compare(ICompareField, string, string)
比较逻辑
public static AtomicLogic Compare(this ICompareField field, string op, string parameter = "")
参数
field
ICompareFieldop
stringparameter
string
返回
Compare(ICompareView, CompareSymbol, ISqlValue)
比较逻辑
public static AtomicLogic Compare(this ICompareView field, CompareSymbol compare, ISqlValue right)
参数
field
ICompareViewcompare
CompareSymbolright
ISqlValue
返回
Compare(ICompareView, string, ISqlValue)
比较逻辑
public static AtomicLogic Compare(this ICompareView field, string op, ISqlValue right)
参数
field
ICompareViewop
stringright
ISqlValue
返回
CompareValue<TValue>(ICompareView, CompareSymbol, TValue)
比较逻辑
public static AtomicLogic CompareValue<TValue>(this ICompareView field, CompareSymbol compare, TValue value)
参数
field
ICompareViewcompare
CompareSymbolvalue
TValue
返回
类型参数
TValue
CompareValue<TValue>(ICompareView, string, TValue)
比较逻辑
public static AtomicLogic CompareValue<TValue>(this ICompareView field, string op, TValue value)
参数
field
ICompareViewop
stringvalue
TValue
返回
类型参数
TValue
ConcatPrefix(ISqlEngine, ISqlEntity, StringBuilder, params IEnumerable<string>)
前缀拼接
public static void ConcatPrefix(this ISqlEngine engine, ISqlEntity entity, StringBuilder builder, params IEnumerable<string> suffix)
参数
engine
ISqlEngineentity
ISqlEntitybuilder
StringBuildersuffix
IEnumerable<string>
Copy(JoinFragment)
复制sql片段组合
public static JoinFragment Copy(this JoinFragment source)
参数
source
JoinFragment
返回
Copy(Table, string)
复制表
public static Table Copy(this Table source, string newName = "")
参数
返回
Copy(AndLogic)
复制与逻辑
public static AndLogic Copy(this AndLogic source)
参数
source
AndLogic
返回
Copy(ComplexAndLogic)
复制复合与逻辑
public static ComplexAndLogic Copy(this ComplexAndLogic source)
参数
source
ComplexAndLogic
返回
Copy(ComplexOrLogic)
复制复合或逻辑
public static ComplexOrLogic Copy(this ComplexOrLogic source)
参数
source
ComplexOrLogic
返回
Copy(OrLogic)
复制或逻辑
public static OrLogic Copy(this OrLogic source)
参数
source
OrLogic
返回
Copy(SqlAndQuery)
复制And查询
public static SqlAndQuery Copy(this SqlAndQuery source)
参数
source
SqlAndQuery
返回
Copy(SqlOrQuery)
复制Or查询
public static SqlOrQuery Copy(this SqlOrQuery source)
参数
source
SqlOrQuery
返回
Count(IGroupByView)
计数
public static CountFieldInfo Count(this IGroupByView view)
参数
view
IGroupByView
返回
CountSql(ISqlEngine, ITableView, int)
拼写计数sql
public static string CountSql(this ISqlEngine engine, ITableView view, int capacity = 128)
参数
engine
ISqlEngineview
ITableViewcapacity
int
返回
CreateMember<MultiTable, TTable>(MultiTable, TTable)
构造表成员
public static TableAlias<TTable> CreateMember<MultiTable, TTable>(this MultiTable multiTable, TTable table) where MultiTable : MultiTableBase, IMultiView where TTable : ITable
参数
multiTable
MultiTabletable
TTable
返回
- TableAlias<TTable>
类型参数
MultiTable
TTable
DefineColums<TTable>(TTable, params IEnumerable<string>)
定义列
public static TTable DefineColums<TTable>(this TTable table, params IEnumerable<string> columns) where TTable : Table
参数
table
TTablecolumns
IEnumerable<string>
返回
- TTable
类型参数
TTable
Delete<TDelete>(TDelete, IAliasTable)
指定被删除的表
public static TDelete Delete<TDelete>(this TDelete delete, IAliasTable table) where TDelete : MultiTableDelete
参数
delete
TDeletetable
IAliasTable
返回
- TDelete
类型参数
TDelete
Delete<TDelete>(TDelete, string)
指定被删除的表
public static TDelete Delete<TDelete>(this TDelete delete, string tableName) where TDelete : MultiTableDelete
参数
delete
TDeletetableName
string
返回
- TDelete
类型参数
TDelete
Desc(IOrderAsc)
倒序
public static IOrderDesc Desc(this IOrderAsc field)
参数
field
IOrderAsc
返回
Desc<TCursor>(TCursor, IOrderAsc)
倒序
public static TCursor Desc<TCursor>(this TCursor cursor, IOrderAsc field) where TCursor : CursorBase
参数
cursor
TCursorfield
IOrderAsc
返回
- TCursor
类型参数
TCursor
Desc<TCursor>(TCursor, params IEnumerable<string>)
倒序
public static TCursor Desc<TCursor>(this TCursor cursor, params IEnumerable<string> fieldNames) where TCursor : CursorBase
参数
cursor
TCursorfieldNames
IEnumerable<string>
返回
- TCursor
类型参数
TCursor
Desc<TCursor>(TCursor, Func<ITableView, IOrderAsc>)
倒序
public static TCursor Desc<TCursor>(this TCursor cursor, Func<ITableView, IOrderAsc> select) where TCursor : CursorBase, ICursor
参数
cursor
TCursorselect
Func<ITableView, IOrderAsc>
返回
- TCursor
类型参数
TCursor
DistinctCount(ICompareField)
字段去重统计
public static DistinctCountFieldInfo DistinctCount(this ICompareField field)
参数
field
ICompareField
返回
DistinctCount(IGroupByView, string)
计数聚合
public static DistinctCountFieldInfo DistinctCount(this IGroupByView view, string field)
参数
view
IGroupByViewfield
string
返回
Div(IAssignView, ISqlValue)
除去
public static AssignOperation Div(this IAssignView field, ISqlValue right)
参数
field
IAssignViewright
ISqlValue
返回
Div(IAssignView, string)
除去
public static AssignOperation Div(this IAssignView field, string parameter = "")
参数
field
IAssignViewparameter
string
返回
DivValue<TValue>(IAssignView, TValue)
除去
public static AssignOperation DivValue<TValue>(this IAssignView field, TValue value)
参数
field
IAssignViewvalue
TValue
返回
类型参数
TValue
Equal(IAggregateField, string)
相等逻辑
public static AtomicLogic Equal(this IAggregateField field, string parameter = "")
参数
field
IAggregateFieldparameter
string
返回
Equal(ICompareField, string)
相等逻辑
public static AtomicLogic Equal(this ICompareField field, string parameter = "")
参数
field
ICompareFieldparameter
string
返回
Equal(ICompareView, ISqlValue)
相等逻辑
public static AtomicLogic Equal(this ICompareView field, ISqlValue right)
参数
field
ICompareViewright
ISqlValue
返回
EqualTo(IAssignView, ISqlValue)
等于
public static AssignOperation EqualTo(this IAssignView field, ISqlValue right)
参数
field
IAssignViewright
ISqlValue
返回
EqualTo(IAssignView, string)
等于
public static AssignOperation EqualTo(this IAssignView field, string parameter = "")
参数
field
IAssignViewparameter
string
返回
EqualToValue<TValue>(IAssignView, TValue)
等于
public static AssignOperation EqualToValue<TValue>(this IAssignView field, TValue value)
参数
field
IAssignViewvalue
TValue
返回
类型参数
TValue
EqualValue<TValue>(ICompareView, TValue)
相等逻辑
public static AtomicLogic EqualValue<TValue>(this ICompareView field, TValue value)
参数
field
ICompareViewvalue
TValue
返回
类型参数
TValue
Exists<Query>(Query, ITableView)
EXISTS子查询逻辑
public static Query Exists<Query>(this Query query, ITableView source) where Query : IDataSqlQuery
参数
query
Querysource
ITableView
返回
- Query
类型参数
Query
Field(ITableView, string)
定位到字段(宽松不校验)
public static IField Field(this ITableView view, string fieldName)
参数
view
ITableViewfieldName
string
返回
异常
Fields(ITableView, params IEnumerable<string>)
选择列
public static IEnumerable<IField> Fields(this ITableView table, params IEnumerable<string> columnNames)
参数
table
ITableViewcolumnNames
IEnumerable<string>
返回
From(IMultiView, string)
定位到表
public static IAliasTable From(this IMultiView multiTable, string tableName)
参数
multiTable
IMultiViewtableName
string
返回
异常
From<TAliasTable>(IMultiView, string)
定位到成员别名表
public static TAliasTable From<TAliasTable>(this IMultiView multiTable, string tableName) where TAliasTable : IAliasTable
参数
multiTable
IMultiViewtableName
string
返回
- TAliasTable
类型参数
TAliasTable
异常
GetAssignField<TTable>(IAliasTable<TTable>, string)
获取被修改字段
public static IAssignView? GetAssignField<TTable>(this IAliasTable<TTable> aliasTable, string fieldName) where TTable : IUpdateTable
参数
aliasTable
IAliasTable<TTable>fieldName
string
返回
类型参数
TTable
异常
Greater(IAggregateField, string)
大于逻辑
public static AtomicLogic Greater(this IAggregateField field, string parameter = "")
参数
field
IAggregateFieldparameter
string
返回
Greater(ICompareField, string)
大于逻辑
public static AtomicLogic Greater(this ICompareField field, string parameter = "")
参数
field
ICompareFieldparameter
string
返回
Greater(ICompareView, ISqlValue)
大于逻辑
public static AtomicLogic Greater(this ICompareView field, ISqlValue right)
参数
field
ICompareViewright
ISqlValue
返回
GreaterEqual(IAggregateField, string)
大于等于逻辑
public static AtomicLogic GreaterEqual(this IAggregateField field, string parameter = "")
参数
field
IAggregateFieldparameter
string
返回
GreaterEqual(ICompareField, string)
大于等于逻辑
public static AtomicLogic GreaterEqual(this ICompareField field, string parameter = "")
参数
field
ICompareFieldparameter
string
返回
GreaterEqual(ICompareView, ISqlValue)
大于等于逻辑
public static AtomicLogic GreaterEqual(this ICompareView field, ISqlValue right)
参数
field
ICompareViewright
ISqlValue
返回
GreaterEqualValue<TValue>(ICompareView, TValue)
大于等于逻辑
public static AtomicLogic GreaterEqualValue<TValue>(this ICompareView field, TValue value)
参数
field
ICompareViewvalue
TValue
返回
类型参数
TValue
GreaterValue<TValue>(ICompareView, TValue)
大于逻辑
public static AtomicLogic GreaterValue<TValue>(this ICompareView field, TValue value)
参数
field
ICompareViewvalue
TValue
返回
类型参数
TValue
GroupByPrefix(ISqlEngine, StringBuilder)
GROUP BY前缀
public static void GroupByPrefix(this ISqlEngine engine, StringBuilder sql)
参数
engine
ISqlEnginesql
StringBuilder
HavingAggregate<TGroupBy>(TGroupBy, string, string, Func<IAggregateField, AtomicLogic>)
按列名聚合
public static TGroupBy HavingAggregate<TGroupBy>(this TGroupBy groupBy, string aggregate, string columnName, Func<IAggregateField, AtomicLogic> query) where TGroupBy : GroupByBase, IDataSqlQuery
参数
groupBy
TGroupByaggregate
stringcolumnName
stringquery
Func<IAggregateField, AtomicLogic>
返回
- TGroupBy
类型参数
TGroupBy
HavingPrefix(ISqlEngine, StringBuilder)
HAVING前缀
public static void HavingPrefix(this ISqlEngine engine, StringBuilder sql)
参数
engine
ISqlEnginesql
StringBuilder
Having<TGroupBy>(TGroupBy, AtomicLogic)
按逻辑查询
public static TGroupBy Having<TGroupBy>(this TGroupBy groupBy, AtomicLogic logic) where TGroupBy : GroupByBase, IDataSqlQuery
参数
groupBy
TGroupBylogic
AtomicLogic
返回
- TGroupBy
类型参数
TGroupBy
Having<TGroupBy>(TGroupBy, params IEnumerable<string>)
按原始sql查询
public static TGroupBy Having<TGroupBy>(this TGroupBy groupBy, params IEnumerable<string> conditions) where TGroupBy : GroupByBase, IDataSqlQuery
参数
groupBy
TGroupByconditions
IEnumerable<string>
返回
- TGroupBy
类型参数
TGroupBy
Having<TGroupBy>(TGroupBy, Func<IGroupByView, AtomicLogic>)
Where
public static TGroupBy Having<TGroupBy>(this TGroupBy groupBy, Func<IGroupByView, AtomicLogic> query) where TGroupBy : GroupByBase, IDataSqlQuery
参数
groupBy
TGroupByquery
Func<IGroupByView, AtomicLogic>
返回
- TGroupBy
类型参数
TGroupBy
IgnoreInsert<TTable>(TTable, params IEnumerable<IColumn>)
忽略插入的列
public static TTable IgnoreInsert<TTable>(this TTable table, params IEnumerable<IColumn> columns) where TTable : Table
参数
table
TTablecolumns
IEnumerable<IColumn>
返回
- TTable
类型参数
TTable
IgnoreInsert<TTable>(TTable, params IEnumerable<string>)
忽略插入的列
public static TTable IgnoreInsert<TTable>(this TTable table, params IEnumerable<string> columns) where TTable : Table
参数
table
TTablecolumns
IEnumerable<string>
返回
- TTable
类型参数
TTable
IgnoreUpdate<TTable>(TTable, params IEnumerable<IColumn>)
忽略修改的列
public static TTable IgnoreUpdate<TTable>(this TTable table, params IEnumerable<IColumn> columns) where TTable : Table
参数
table
TTablecolumns
IEnumerable<IColumn>
返回
- TTable
类型参数
TTable
IgnoreUpdate<TTable>(TTable, params IEnumerable<string>)
忽略修改的列
public static TTable IgnoreUpdate<TTable>(this TTable table, params IEnumerable<string> columns) where TTable : Table
参数
table
TTablecolumns
IEnumerable<string>
返回
- TTable
类型参数
TTable
In(IAggregateField, string)
包含逻辑
public static AtomicLogic In(this IAggregateField field, string parameter = "")
参数
field
IAggregateFieldparameter
string
返回
In(ICompareField, string)
包含逻辑
public static AtomicLogic In(this ICompareField field, string parameter = "")
参数
field
ICompareFieldparameter
string
返回
In(ICompareView, ISingleSelect)
IN子查询逻辑
public static SubInLogic In(this ICompareView field, ISingleSelect select)
参数
field
ICompareViewselect
ISingleSelect
返回
InValue<TValue>(ICompareView, params IEnumerable<TValue>)
包含逻辑
public static AtomicLogic InValue<TValue>(this ICompareView field, params IEnumerable<TValue> values)
参数
field
ICompareViewvalues
IEnumerable<TValue>
返回
类型参数
TValue
In<Query>(Query, ICompareView, ISingleSelect)
IN子查询逻辑
public static Query In<Query>(this Query query, ICompareView field, ISingleSelect select) where Query : IDataSqlQuery
参数
query
Queryfield
ICompareViewselect
ISingleSelect
返回
- Query
类型参数
Query
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
参数
insert
TInsertcolumn
IColumn
返回
- TInsert
类型参数
TInsert
InsertColumns<TInsert>(TInsert, params IEnumerable<IColumn>)
按指定列插入
public static TInsert InsertColumns<TInsert>(this TInsert insert, params IEnumerable<IColumn> columns) where TInsert : SingleInsertBase, ISingleInsert
参数
insert
TInsertcolumns
IEnumerable<IColumn>
返回
- TInsert
类型参数
TInsert
InsertSelfColumns<TInsert>(TInsert)
按自己的列插入
public static TInsert InsertSelfColumns<TInsert>(this TInsert insert) where TInsert : SingleInsertBase, ISingleInsert
参数
insert
TInsert
返回
- TInsert
类型参数
TInsert
InsertValue<TValue>(IColumn, TValue)
插入单值
public static InsertValue InsertValue<TValue>(this IColumn column, TValue value)
参数
column
IColumnvalue
TValue
返回
类型参数
TValue
InsertValues<TValue>(IColumn, params IEnumerable<TValue>)
插入多值
public static InsertValues InsertValues<TValue>(this IColumn column, params IEnumerable<TValue> values)
参数
column
IColumnvalues
IEnumerable<TValue>
返回
类型参数
TValue
Insert<TInsert>(TInsert, IInsertValue)
设置插入值
public static TInsert Insert<TInsert>(this TInsert insert, IInsertValue value) where TInsert : SingleInsertBase, ISingleInsert
参数
insert
TInsertvalue
IInsertValue
返回
- TInsert
类型参数
TInsert
Insert<TInsert>(TInsert, IInsertValues)
设置插入值
public static TInsert Insert<TInsert>(this TInsert insert, IInsertValues value) where TInsert : MultiInsertBase, IMultiInsert
参数
insert
TInsertvalue
IInsertValues
返回
- TInsert
类型参数
TInsert
Insert<TInsert>(TInsert, params IEnumerable<IColumn>)
设置列
public static TInsert Insert<TInsert>(this TInsert insert, params IEnumerable<IColumn> columns) where TInsert : SelectInsertBase, ISelectInsert
参数
insert
TInsertcolumns
IEnumerable<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
参数
insert
TInsertcolumnNames
IEnumerable<string>
返回
- TInsert
类型参数
TInsert
IsNull(ICompareView)
是否为空逻辑
public static AtomicLogic IsNull(this ICompareView field)
参数
field
ICompareView
返回
JoinOnPrefix(ISqlEngine, StringBuilder)
联表ON前缀
public static void JoinOnPrefix(this ISqlEngine engine, StringBuilder sql)
参数
engine
ISqlEnginesql
StringBuilder
LeftTableJoin(JoinOnQuery, IAliasTable)
用左表联新表
public static JoinOnQuery LeftTableJoin(this JoinOnQuery joinOn, IAliasTable table)
参数
joinOn
JoinOnQuerytable
IAliasTable
返回
LeftTableJoin(JoinOnQuery, ITable)
用左表联新表
public static JoinOnQuery LeftTableJoin(this JoinOnQuery joinOn, ITable table)
参数
joinOn
JoinOnQuerytable
ITable
返回
LeftTableJoin(JoinOnQuery, string)
用左表联新表
public static JoinOnQuery LeftTableJoin(this JoinOnQuery joinOn, string tableName)
参数
joinOn
JoinOnQuerytableName
string
返回
LeftTableJoin(JoinOnSqlQuery, IAliasTable)
用左表联新表
public static JoinOnSqlQuery LeftTableJoin(this JoinOnSqlQuery joinOn, IAliasTable table)
参数
joinOn
JoinOnSqlQuerytable
IAliasTable
返回
LeftTableJoin(JoinOnSqlQuery, ITable)
用左表联新表
public static JoinOnSqlQuery LeftTableJoin(this JoinOnSqlQuery joinOn, ITable table)
参数
joinOn
JoinOnSqlQuerytable
ITable
返回
LeftTableJoin(JoinOnSqlQuery, string)
用左表联新表
public static JoinOnSqlQuery LeftTableJoin(this JoinOnSqlQuery joinOn, string tableName)
参数
joinOn
JoinOnSqlQuerytableName
string
返回
Less(IAggregateField, string)
小于逻辑
public static AtomicLogic Less(this IAggregateField field, string parameter = "")
参数
field
IAggregateFieldparameter
string
返回
Less(ICompareField, string)
小于逻辑
public static AtomicLogic Less(this ICompareField field, string parameter = "")
参数
field
ICompareFieldparameter
string
返回
Less(ICompareView, ISqlValue)
小于逻辑
public static AtomicLogic Less(this ICompareView field, ISqlValue right)
参数
field
ICompareViewright
ISqlValue
返回
LessEqual(IAggregateField, string)
小于等于逻辑
public static AtomicLogic LessEqual(this IAggregateField field, string parameter = "")
参数
field
IAggregateFieldparameter
string
返回
LessEqual(ICompareField, string)
小于等于逻辑
public static AtomicLogic LessEqual(this ICompareField field, string parameter = "")
参数
field
ICompareFieldparameter
string
返回
LessEqual(ICompareView, ISqlValue)
小于等于逻辑
public static AtomicLogic LessEqual(this ICompareView field, ISqlValue right)
参数
field
ICompareViewright
ISqlValue
返回
LessEqualValue<TValue>(ICompareView, TValue)
小于等于逻辑
public static AtomicLogic LessEqualValue<TValue>(this ICompareView field, TValue value)
参数
field
ICompareViewvalue
TValue
返回
类型参数
TValue
LessValue<TValue>(ICompareView, TValue)
小于逻辑
public static AtomicLogic LessValue<TValue>(this ICompareView field, TValue value)
参数
field
ICompareViewvalue
TValue
返回
类型参数
TValue
Like(IAggregateField, string)
Like匹配逻辑
public static AtomicLogic Like(this IAggregateField field, string parameter = "")
参数
field
IAggregateFieldparameter
string
返回
Like(ICompareField, string)
Like匹配逻辑
public static AtomicLogic Like(this ICompareField field, string parameter = "")
参数
field
ICompareFieldparameter
string
返回
LikeValue(ICompareView, string)
Like匹配逻辑
public static AtomicLogic LikeValue(this ICompareView field, string value)
参数
field
ICompareViewvalue
string
返回
Max(ICompareField)
最大值聚合
public static IAggregateField Max(this ICompareField field)
参数
field
ICompareField
返回
Max(IGroupByView, string)
最大值聚合
public static IAggregateField Max(this IGroupByView view, string field)
参数
view
IGroupByViewfield
string
返回
Min(ICompareField)
最小值聚合
public static IAggregateField Min(this ICompareField field)
参数
field
ICompareField
返回
Min(IGroupByView, string)
最小值聚合
public static IAggregateField Min(this IGroupByView view, string field)
参数
view
IGroupByViewfield
string
返回
Mod(IAssignView, ISqlValue)
取模
public static AssignOperation Mod(this IAssignView field, ISqlValue right)
参数
field
IAssignViewright
ISqlValue
返回
Mod(IAssignView, string)
取模
public static AssignOperation Mod(this IAssignView field, string parameter = "")
参数
field
IAssignViewparameter
string
返回
ModValue<TValue>(IAssignView, TValue)
取模
public static AssignOperation ModValue<TValue>(this IAssignView field, TValue value)
参数
field
IAssignViewvalue
TValue
返回
类型参数
TValue
Mul(IAssignView, ISqlValue)
乘上
public static AssignOperation Mul(this IAssignView field, ISqlValue right)
参数
field
IAssignViewright
ISqlValue
返回
Mul(IAssignView, string)
乘上
public static AssignOperation Mul(this IAssignView field, string parameter = "")
参数
field
IAssignViewparameter
string
返回
MulValue<TValue>(IAssignView, TValue)
乘上
public static AssignOperation MulValue<TValue>(this IAssignView field, TValue value)
参数
field
IAssignViewvalue
TValue
返回
类型参数
TValue
Not(AndLogic)
not And为not每个子项的Or
public static OrLogic Not(this AndLogic and)
参数
and
AndLogic
返回
Not(ComplexAndLogic)
not And为not每个子项的Or
public static ComplexOrLogic Not(this ComplexAndLogic and)
参数
and
ComplexAndLogic
返回
Not(ComplexOrLogic)
not And为not每个子项的Or
public static ComplexAndLogic Not(this ComplexOrLogic or)
参数
返回
Not(Logic)
反逻辑
public static Logic Not(this Logic logic)
参数
logic
Logic
返回
Not(OrLogic)
not Or为not每个子项的And
public static AndLogic Not(this OrLogic source)
参数
source
OrLogic
返回
NotBetween(IAggregateField, string, string)
不在...之间逻辑
public static AtomicLogic NotBetween(this IAggregateField field, string begin = "", string end = "")
参数
field
IAggregateFieldbegin
stringend
string
返回
NotBetween(ICompareField, string, string)
不在...之间逻辑
public static AtomicLogic NotBetween(this ICompareField field, string begin = "", string end = "")
参数
field
ICompareFieldbegin
stringend
string
返回
NotBetweenValue(ICompareView, ISqlValue, ISqlValue)
不在...之间逻辑
public static AtomicLogic NotBetweenValue(this ICompareView field, ISqlValue begin, ISqlValue end)
参数
field
ICompareViewbegin
ISqlValueend
ISqlValue
返回
NotBetweenValue<TValue>(ICompareView, TValue, TValue)
不在...之间逻辑
public static AtomicLogic NotBetweenValue<TValue>(this ICompareView field, TValue begin, TValue end)
参数
field
ICompareViewbegin
TValueend
TValue
返回
类型参数
TValue
NotEqual(IAggregateField, string)
不相等逻辑
public static AtomicLogic NotEqual(this IAggregateField field, string parameter = "")
参数
field
IAggregateFieldparameter
string
返回
NotEqual(ICompareField, string)
不相等逻辑
public static AtomicLogic NotEqual(this ICompareField field, string parameter = "")
参数
field
ICompareFieldparameter
string
返回
NotEqual(ICompareView, ISqlValue)
不相等逻辑
public static AtomicLogic NotEqual(this ICompareView field, ISqlValue right)
参数
field
ICompareViewright
ISqlValue
返回
NotEqualValue<TValue>(ICompareView, TValue)
不相等逻辑
public static AtomicLogic NotEqualValue<TValue>(this ICompareView field, TValue value)
参数
field
ICompareViewvalue
TValue
返回
类型参数
TValue
NotExists<Query>(Query, ITableView)
NOT EXISTS子查询逻辑
public static Query NotExists<Query>(this Query query, ITableView source) where Query : IDataSqlQuery
参数
query
Querysource
ITableView
返回
- Query
类型参数
Query
NotIn(IAggregateField, string)
不包含逻辑
public static AtomicLogic NotIn(this IAggregateField field, string parameter = "")
参数
field
IAggregateFieldparameter
string
返回
NotIn(ICompareField, string)
不包含逻辑
public static AtomicLogic NotIn(this ICompareField field, string parameter = "")
参数
field
ICompareFieldparameter
string
返回
NotIn(ICompareView, ISingleSelect)
NOT IN子查询逻辑
public static SubNotInLogic NotIn(this ICompareView field, ISingleSelect select)
参数
field
ICompareViewselect
ISingleSelect
返回
NotInValue<TValue>(ICompareView, params IEnumerable<TValue>)
不包含逻辑
public static AtomicLogic NotInValue<TValue>(this ICompareView field, params IEnumerable<TValue> values)
参数
field
ICompareViewvalues
IEnumerable<TValue>
返回
类型参数
TValue
NotIn<Query>(Query, ICompareView, ISingleSelect)
NOT IN子查询逻辑
public static Query NotIn<Query>(this Query query, ICompareView field, ISingleSelect select) where Query : IDataSqlQuery
参数
query
Queryfield
ICompareViewselect
ISingleSelect
返回
- Query
类型参数
Query
NotLike(IAggregateField, string)
否定Like匹配逻辑
public static AtomicLogic NotLike(this IAggregateField field, string parameter = "")
参数
field
IAggregateFieldparameter
string
返回
NotLike(ICompareField, string)
否定Like匹配逻辑
public static AtomicLogic NotLike(this ICompareField field, string parameter = "")
参数
field
ICompareFieldparameter
string
返回
NotLikeValue(ICompareView, string)
否定Like匹配逻辑
public static AtomicLogic NotLikeValue(this ICompareView field, string value)
参数
field
ICompareViewvalue
string
返回
NotNull(ICompareView)
是否不为空逻辑
public static AtomicLogic NotNull(this ICompareView field)
参数
field
ICompareView
返回
OnColumn<TJoinOn>(TJoinOn, string, string)
对列进行联表查询
public static TJoinOn OnColumn<TJoinOn>(this TJoinOn joinOn, string leftColumn, string rightColumn) where TJoinOn : JoinOnBase, IJoinOn, IDataSqlQuery
参数
返回
- TJoinOn
类型参数
TJoinOn
OnColumn<TJoinOn>(TJoinOn, string, string, string)
对列进行联表查询
public static TJoinOn OnColumn<TJoinOn>(this TJoinOn joinOn, string leftColumn, string op, string rightColumn) where TJoinOn : JoinOnBase, IJoinOn, IDataSqlQuery
参数
返回
- TJoinOn
类型参数
TJoinOn
On<TJoinOn>(TJoinOn, IColumn, CompareSymbol, IColumn)
按列联表
public static TJoinOn On<TJoinOn>(this TJoinOn joinOn, IColumn left, CompareSymbol compare, IColumn right) where TJoinOn : JoinOnBase, IJoinOn, IDataSqlQuery
参数
joinOn
TJoinOnleft
IColumncompare
CompareSymbolright
IColumn
返回
- TJoinOn
类型参数
TJoinOn
On<TJoinOn>(TJoinOn, IColumn, IColumn)
按列联表
public static TJoinOn On<TJoinOn>(this TJoinOn joinOn, IColumn left, IColumn right) where TJoinOn : JoinOnBase, IJoinOn, IDataSqlQuery
参数
返回
- TJoinOn
类型参数
TJoinOn
On<TJoinOn>(TJoinOn, IPrefixField, CompareSymbol, IPrefixField)
按列联表
public static TJoinOn On<TJoinOn>(this TJoinOn joinOn, IPrefixField left, CompareSymbol compare, IPrefixField right) where TJoinOn : JoinOnBase, IJoinOn, IDataSqlQuery
参数
joinOn
TJoinOnleft
IPrefixFieldcompare
CompareSymbolright
IPrefixField
返回
- TJoinOn
类型参数
TJoinOn
On<TJoinOn>(TJoinOn, IPrefixField, IPrefixField)
按列联表
public static TJoinOn On<TJoinOn>(this TJoinOn joinOn, IPrefixField left, IPrefixField right) where TJoinOn : JoinOnBase, IJoinOn, IDataSqlQuery
参数
joinOn
TJoinOnleft
IPrefixFieldright
IPrefixField
返回
- TJoinOn
类型参数
TJoinOn
On<TjoinOn>(TjoinOn, AtomicLogic)
按逻辑查询
public static TjoinOn On<TjoinOn>(this TjoinOn joinOn, AtomicLogic logic) where TjoinOn : JoinOnBase, IDataSqlQuery
参数
joinOn
TjoinOnlogic
AtomicLogic
返回
- TjoinOn
类型参数
TjoinOn
On<TJoinOn>(TJoinOn, params IEnumerable<string>)
按原始sql查询
public static TJoinOn On<TJoinOn>(this TJoinOn joinOn, params IEnumerable<string> conditions) where TJoinOn : JoinOnBase, IDataSqlQuery
参数
joinOn
TJoinOnconditions
IEnumerable<string>
返回
- TJoinOn
类型参数
TJoinOn
On<TjoinOn>(TjoinOn, Func<IAliasTable, IAliasTable, AtomicLogic>)
On
public static TjoinOn On<TjoinOn>(this TjoinOn joinOn, Func<IAliasTable, IAliasTable, AtomicLogic> query) where TjoinOn : JoinOnBase, IJoinOn, IDataSqlQuery
参数
joinOn
TjoinOnquery
Func<IAliasTable, IAliasTable, AtomicLogic>
返回
- TjoinOn
类型参数
TjoinOn
On<TjoinOn>(TjoinOn, Func<IJoinOn, AtomicLogic>)
On
public static TjoinOn On<TjoinOn>(this TjoinOn joinOn, Func<IJoinOn, AtomicLogic> query) where TjoinOn : JoinOnBase, IJoinOn, IDataSqlQuery
参数
joinOn
TjoinOnquery
Func<IJoinOn, AtomicLogic>
返回
- TjoinOn
类型参数
TjoinOn
Or(IAssignView, ISqlValue)
位或
public static AssignOperation Or(this IAssignView field, ISqlValue right)
参数
field
IAssignViewright
ISqlValue
返回
Or(IAssignView, string)
位或
public static AssignOperation Or(this IAssignView field, string parameter = "")
参数
field
IAssignViewparameter
string
返回
Or(AndLogic, EmptyLogic)
或逻辑
public static Logic Or(this AndLogic other, EmptyLogic logic)
参数
other
AndLogiclogic
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)
参数
logic
AtomicLogicother
AndLogic
返回
Or(AtomicLogic, AtomicLogic)
或逻辑
public static OrLogic Or(this AtomicLogic logic, AtomicLogic other)
参数
logic
AtomicLogicother
AtomicLogic
返回
Or(AtomicLogic, ComplexAndLogic)
或逻辑
public static Logic Or(this AtomicLogic logic, ComplexAndLogic other)
参数
logic
AtomicLogicother
ComplexAndLogic
返回
Or(AtomicLogic, ComplexOrLogic)
或逻辑
public static ComplexOrLogic Or(this AtomicLogic logic, ComplexOrLogic other)
参数
logic
AtomicLogicother
ComplexOrLogic
返回
Or(AtomicLogic, EmptyLogic)
或逻辑
public static AtomicLogic Or(this AtomicLogic other, EmptyLogic logic)
参数
other
AtomicLogiclogic
EmptyLogic
返回
Or(AtomicLogic, Logic)
或逻辑
public static Logic Or(this AtomicLogic logic, Logic other)
参数
logic
AtomicLogicother
Logic
返回
Or(AtomicLogic, OrLogic)
或逻辑
public static OrLogic Or(this AtomicLogic logic, OrLogic other)
参数
logic
AtomicLogicother
OrLogic
返回
Or(ComplexAndLogic, EmptyLogic)
或逻辑
public static Logic Or(this ComplexAndLogic other, EmptyLogic logic)
参数
other
ComplexAndLogiclogic
EmptyLogic
返回
Or(ComplexAndLogic, Logic)
或逻辑
public static Logic Or(this ComplexAndLogic logic, Logic other)
参数
logic
ComplexAndLogicother
Logic
返回
Or(ComplexOrLogic, EmptyLogic)
或逻辑
public static ComplexOrLogic Or(this ComplexOrLogic other, EmptyLogic logic)
参数
other
ComplexOrLogiclogic
EmptyLogic
返回
Or(ComplexOrLogic, Logic)
或逻辑
public static Logic Or(this ComplexOrLogic logic, Logic other)
参数
logic
ComplexOrLogicother
Logic
返回
Or(EmptyLogic, AndLogic)
或逻辑
public static Logic Or(this EmptyLogic logic, AndLogic other)
参数
logic
EmptyLogicother
AndLogic
返回
Or(EmptyLogic, AtomicLogic)
或逻辑
public static AtomicLogic Or(this EmptyLogic logic, AtomicLogic other)
参数
logic
EmptyLogicother
AtomicLogic
返回
Or(EmptyLogic, ComplexAndLogic)
或逻辑
public static Logic Or(this EmptyLogic logic, ComplexAndLogic other)
参数
logic
EmptyLogicother
ComplexAndLogic
返回
Or(EmptyLogic, ComplexOrLogic)
或逻辑
public static ComplexOrLogic Or(this EmptyLogic logic, ComplexOrLogic other)
参数
logic
EmptyLogicother
ComplexOrLogic
返回
Or(EmptyLogic, EmptyLogic)
或逻辑
public static EmptyLogic Or(this EmptyLogic logic, EmptyLogic other)
参数
logic
EmptyLogicother
EmptyLogic
返回
Or(EmptyLogic, OrLogic)
或逻辑
public static OrLogic Or(this EmptyLogic logic, OrLogic other)
参数
logic
EmptyLogicother
OrLogic
返回
Or(Logic, Logic)
或逻辑
public static Logic Or(this Logic logic, Logic other)
参数
返回
Or(OrLogic, EmptyLogic)
或逻辑
public static OrLogic Or(this OrLogic other, EmptyLogic logic)
参数
other
OrLogiclogic
EmptyLogic
返回
Or(OrLogic, Logic)
或逻辑
public static Logic Or(this OrLogic logic, Logic other)
参数
返回
Or(SqlOrQuery, AndLogic)
或运算嵌套与逻辑
public static SqlOrQuery Or(this SqlOrQuery query, AndLogic logic)
参数
query
SqlOrQuerylogic
AndLogic
返回
Or(SqlOrQuery, ComplexAndLogic)
或运算嵌套与逻辑
public static SqlOrQuery Or(this SqlOrQuery query, ComplexAndLogic logic)
参数
query
SqlOrQuerylogic
ComplexAndLogic
返回
OrValue<TValue>(IAssignView, TValue)
位或
public static AssignOperation OrValue<TValue>(this IAssignView field, TValue value)
参数
field
IAssignViewvalue
TValue
返回
类型参数
TValue
Or<Query>(Query, AndLogic)
或运算
public static Query Or<Query>(this Query query, AndLogic logic) where Query : FilterBase, IDataQuery
参数
query
Querylogic
AndLogic
返回
- Query
类型参数
Query
Or<Query>(Query, AtomicLogic)
或运算
public static Query Or<Query>(this Query query, AtomicLogic logic) where Query : FilterBase, IDataQuery
参数
query
Querylogic
AtomicLogic
返回
- Query
类型参数
Query
Or<Query>(Query, ComplexAndLogic)
或运算
public static Query Or<Query>(this Query query, ComplexAndLogic logic) where Query : FilterBase, IDataQuery
参数
query
Querylogic
ComplexAndLogic
返回
- Query
类型参数
Query
Or<Query>(Query, ComplexOrLogic)
或运算
public static Query Or<Query>(this Query query, ComplexOrLogic logic) where Query : FilterBase, IDataQuery
参数
query
Querylogic
ComplexOrLogic
返回
- Query
类型参数
Query
Or<Query>(Query, Logic)
或运算
public static Query Or<Query>(this Query query, Logic logic) where Query : FilterBase, IDataQuery
参数
query
Querylogic
Logic
返回
- Query
类型参数
Query
Or<Query>(Query, OrLogic)
或运算
public static Query Or<Query>(this Query query, OrLogic logic) where Query : FilterBase, IDataQuery
参数
query
Querylogic
OrLogic
返回
- Query
类型参数
Query
Or<Query>(Query, Func<IGroupByView, AndLogic>)
或运算嵌套与逻辑
public static Query Or<Query>(this Query query, Func<IGroupByView, AndLogic> logic) where Query : GroupByBase, IDataQuery
参数
query
Querylogic
Func<IGroupByView, AndLogic>
返回
- Query
类型参数
Query
Or<Query>(Query, Func<IGroupByView, AtomicLogic>)
或运算
public static Query Or<Query>(this Query query, Func<IGroupByView, AtomicLogic> logic) where Query : GroupByBase, IDataQuery
参数
query
Querylogic
Func<IGroupByView, AtomicLogic>
返回
- Query
类型参数
Query
Or<Query>(Query, Func<ITableView, AndLogic>)
或运算嵌套与逻辑
public static Query Or<Query>(this Query query, Func<ITableView, AndLogic> logic) where Query : FilterBase, IDataQuery
参数
query
Querylogic
Func<ITableView, AndLogic>
返回
- Query
类型参数
Query
Or<Query>(Query, Func<ITableView, AtomicLogic>)
或运算
public static Query Or<Query>(this Query query, Func<ITableView, AtomicLogic> logic) where Query : FilterBase, IDataQuery
参数
query
Querylogic
Func<ITableView, AtomicLogic>
返回
- Query
类型参数
Query
OrderBy<TCursor>(TCursor, string)
添加排序
public static TCursor OrderBy<TCursor>(this TCursor cursor, string orderBy) where TCursor : CursorBase
参数
cursor
TCursororderBy
string
返回
- TCursor
类型参数
TCursor
Prefix(IAliasTable, IColumn)
增加前缀
public static IPrefixField Prefix(this IAliasTable table, IColumn column)
参数
table
IAliasTablecolumn
IColumn
返回
异常
Prefix(IAliasTable, string)
定位到前缀字段
public static IPrefixField Prefix(this IAliasTable table, string columnName)
参数
table
IAliasTablecolumnName
string
返回
异常
Prefix(IColumn, IAliasTable)
增加前缀
public static IPrefixField Prefix(this IColumn column, IAliasTable table)
参数
column
IColumntable
IAliasTable
返回
Prefix(IColumn, string)
增加前缀
public static PrefixField Prefix(this IColumn column, string tableName)
参数
返回
Prefix(IJoinOn, IColumn)
增加前缀
public static IPrefixField Prefix(this IJoinOn join, IColumn column)
参数
返回
异常
Prefix(IJoinOn, string)
增加前缀
public static IPrefixField Prefix(this IJoinOn join, string columnName)
参数
返回
异常
Prefix<TTable>(IAliasTable<TTable>, Func<TTable, IColumn>)
选择列
public static IPrefixField Prefix<TTable>(this IAliasTable<TTable> table, Func<TTable, IColumn> query) where TTable : ITable
参数
table
IAliasTable<TTable>query
Func<TTable, IColumn>
返回
类型参数
TTable
RightTableJoin(JoinOnQuery, IAliasTable)
用右表联新表
public static JoinOnQuery RightTableJoin(this JoinOnQuery joinOn, IAliasTable table)
参数
joinOn
JoinOnQuerytable
IAliasTable
返回
RightTableJoin(JoinOnQuery, ITable)
用右表联新表
public static JoinOnQuery RightTableJoin(this JoinOnQuery joinOn, ITable table)
参数
joinOn
JoinOnQuerytable
ITable
返回
RightTableJoin(JoinOnQuery, string)
用右表联新表
public static JoinOnQuery RightTableJoin(this JoinOnQuery joinOn, string tableName)
参数
joinOn
JoinOnQuerytableName
string
返回
RightTableJoin(JoinOnSqlQuery, IAliasTable)
用右表联新表
public static JoinOnSqlQuery RightTableJoin(this JoinOnSqlQuery joinOn, IAliasTable table)
参数
joinOn
JoinOnSqlQuerytable
IAliasTable
返回
RightTableJoin(JoinOnSqlQuery, ITable)
用右表联新表
public static JoinOnSqlQuery RightTableJoin(this JoinOnSqlQuery joinOn, ITable table)
参数
joinOn
JoinOnSqlQuerytable
ITable
返回
RightTableJoin(JoinOnSqlQuery, string)
用右表联新表
public static JoinOnSqlQuery RightTableJoin(this JoinOnSqlQuery joinOn, string tableName)
参数
joinOn
JoinOnSqlQuerytableName
string
返回
Select<TSelectFields>(TSelectFields, ISingleSelect)
子查询作为字段
public static TSelectFields Select<TSelectFields>(this TSelectFields fields, ISingleSelect select) where TSelectFields : SelectFieldsBase
参数
fields
TSelectFieldsselect
ISingleSelect
返回
- TSelectFields
类型参数
TSelectFields
Select<TSelectFields>(TSelectFields, params IEnumerable<IFieldView>)
筛选列
public static TSelectFields Select<TSelectFields>(this TSelectFields select, params IEnumerable<IFieldView> fields) where TSelectFields : SelectFieldsBase
参数
select
TSelectFieldsfields
IEnumerable<IFieldView>
返回
- TSelectFields
类型参数
TSelectFields
Select<TSelectFields>(TSelectFields, params IEnumerable<string>)
筛选列
public static TSelectFields Select<TSelectFields>(this TSelectFields select, params IEnumerable<string> columns) where TSelectFields : SelectFieldsBase
参数
select
TSelectFieldscolumns
IEnumerable<string>
返回
- TSelectFields
类型参数
TSelectFields
SetEqualToValue<TUpdate, TValue>(TUpdate, string, TValue)
赋值
public static TUpdate SetEqualToValue<TUpdate, TValue>(this TUpdate update, string columnName, TValue value) where TUpdate : UpdateBase, IUpdate
参数
update
TUpdatecolumnName
stringvalue
TValue
返回
- TUpdate
类型参数
TUpdate
TValue
SetEqualTo<TUpdate>(TUpdate, string, string)
赋参数
public static TUpdate SetEqualTo<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
参数
update
TUpdatefields
IEnumerable<IAssignView>
返回
- TUpdate
类型参数
TUpdate
SetRaw<TUpdate>(TUpdate, string)
赋值原生sql
public static TUpdate SetRaw<TUpdate>(this TUpdate update, string assignSql) where TUpdate : UpdateBase, IUpdate
参数
update
TUpdateassignSql
string
返回
- TUpdate
类型参数
TUpdate
SetSelfFields<TUpdate>(TUpdate)
按自己的列修改
public static TUpdate SetSelfFields<TUpdate>(this TUpdate update) where TUpdate : UpdateBase, IUpdate
参数
update
TUpdate
返回
- TUpdate
类型参数
TUpdate
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
类型参数
TUpdate
TValue
Set<TUpdate>(TUpdate, IAssignInfo)
赋值操作
public static TUpdate Set<TUpdate>(this TUpdate update, IAssignInfo operation) where TUpdate : UpdateBase, IUpdate
参数
update
TUpdateoperation
IAssignInfo
返回
- TUpdate
类型参数
TUpdate
Set<TUpdate>(TUpdate, IAssignView, string)
按字段修改
public static TUpdate Set<TUpdate>(this TUpdate update, IAssignView field, string op = "=") where TUpdate : UpdateBase, IUpdate
参数
update
TUpdatefield
IAssignViewop
string
返回
- 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
Skip<TCursor>(TCursor, int)
游标跳过数量
public static TCursor Skip<TCursor>(this TCursor cursor, int offset) where TCursor : CursorBase
参数
cursor
TCursoroffset
int
返回
- TCursor
类型参数
TCursor
Sql(ISqlEngine, ISqlEntity, int)
拼写sql
public static string Sql(this ISqlEngine engine, ISqlEntity entity, int capacity = 16)
参数
engine
ISqlEngineentity
ISqlEntitycapacity
int
返回
Sql(ISqlEngine, ISqlFragment, int)
拼写sql
public static string Sql(this ISqlEngine engine, ISqlFragment fragment, int capacity = 128)
参数
engine
ISqlEnginefragment
ISqlFragmentcapacity
int
返回
Strict(ITableView, string)
定位到字段(严格校验)
public static IField Strict(this ITableView view, string fieldName)
参数
view
ITableViewfieldName
string
返回
异常
Sub(IAssignView, ISqlValue)
减去
public static AssignOperation Sub(this IAssignView field, ISqlValue right)
参数
field
IAssignViewright
ISqlValue
返回
Sub(IAssignView, string)
减去
public static AssignOperation Sub(this IAssignView field, string parameter = "")
参数
field
IAssignViewparameter
string
返回
SubValue<TValue>(IAssignView, TValue)
减去
public static AssignOperation SubValue<TValue>(this IAssignView field, TValue value)
参数
field
IAssignViewvalue
TValue
返回
类型参数
TValue
Sum(ICompareField)
最大值聚合
public static IAggregateField Sum(this ICompareField field)
参数
field
ICompareField
返回
Sum(IGroupByView, string)
最大值聚合
public static IAggregateField Sum(this IGroupByView view, string field)
参数
view
IGroupByViewfield
string
返回
TableCompare(IMultiView, string, string)
获取指定表比较字段
public static ICompareField TableCompare(this IMultiView multi, string tableName, string fieldName)
参数
multi
IMultiViewtableName
stringfieldName
string
返回
Take<TCursor>(TCursor, int)
游标获取数量
public static TCursor Take<TCursor>(this TCursor cursor, int limit) where TCursor : CursorBase
参数
cursor
TCursorlimit
int
返回
- TCursor
类型参数
TCursor
ToAnd<Query>(Query)
切换为And
public static Query ToAnd<Query>(this Query query) where Query : IDataSqlQuery
参数
query
Query
返回
- Query
类型参数
Query
ToDelete(IAliasTable, ISqlLogic)
删除
public static AliasTableDelete ToDelete(this IAliasTable table, ISqlLogic where)
参数
table
IAliasTablewhere
ISqlLogic
返回
ToDelete(IMultiView)
删除
public static MultiTableDelete ToDelete(this IMultiView view)
参数
view
IMultiView
返回
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
ToField(ISingleSelect)
子查询作为字段
public static SingleField ToField(this ISingleSelect select)
参数
select
ISingleSelect
返回
ToField(ISingleSelect, string)
子查询作为字段别名
public static SingleFieldAlias ToField(this ISingleSelect select, string alias)
参数
select
ISingleSelectalias
string
返回
ToOr<Query>(Query)
切换为Or
public static Query ToOr<Query>(this Query query) where Query : IDataSqlQuery
参数
query
Query
返回
- Query
类型参数
Query
ToTruncate(ITable)
清空表
public static TruncateTable ToTruncate(this ITable table)
参数
table
ITable
返回
Update<TMultiUpdate>(TMultiUpdate, IAliasTable<IUpdateTable>)
指定被修改的表
public static TMultiUpdate Update<TMultiUpdate>(this TMultiUpdate update, IAliasTable<IUpdateTable> table) where TMultiUpdate : MultiTableUpdate
参数
update
TMultiUpdatetable
IAliasTable<IUpdateTable>
返回
- TMultiUpdate
类型参数
TMultiUpdate
Update<TMultiUpdate>(TMultiUpdate, string)
指定被修改的表
public static MultiTableUpdate Update<TMultiUpdate>(this TMultiUpdate update, string tableName) where TMultiUpdate : MultiTableUpdate
参数
update
TMultiUpdatetableName
string
返回
类型参数
TMultiUpdate
WherePrefix(ISqlEngine, StringBuilder)
WHERE前缀
public static void WherePrefix(this ISqlEngine engine, StringBuilder sql)
参数
engine
ISqlEnginesql
StringBuilder
Where<Query>(Query, AtomicLogic)
按逻辑查询
public static Query Where<Query>(this Query query, AtomicLogic logic) where Query : IDataSqlQuery, IWhere
参数
query
Querylogic
AtomicLogic
返回
- Query
类型参数
Query
Where<Query>(Query, params IEnumerable<string>)
按原始sql查询
public static Query Where<Query>(this Query query, params IEnumerable<string> conditions) where Query : IDataSqlQuery, IWhere
参数
query
Queryconditions
IEnumerable<string>
返回
- Query
类型参数
Query
Where<Query>(Query, Func<ITableView, AtomicLogic>)
按逻辑查询
public static Query Where<Query>(this Query query, Func<ITableView, AtomicLogic> logic) where Query : IDataSqlQuery, IWhere
参数
query
Querylogic
Func<ITableView, AtomicLogic>
返回
- Query
类型参数
Query
WriteInsertColumnName(ISqlEngine, StringBuilder, IColumn)
拼写插入列名(避免出现列名前缀可能导致错误)
public static void WriteInsertColumnName(this ISqlEngine engine, StringBuilder sql, IColumn column)
参数
engine
ISqlEnginesql
StringBuildercolumn
IColumn
Xor(IAssignView, ISqlValue)
位异或
public static AssignOperation Xor(this IAssignView field, ISqlValue right)
参数
field
IAssignViewright
ISqlValue
返回
Xor(IAssignView, string)
位异或
public static AssignOperation Xor(this IAssignView field, string parameter = "")
参数
field
IAssignViewparameter
string
返回
XorValue<TValue>(IAssignView, TValue)
位异或
public static AssignOperation XorValue<TValue>(this IAssignView field, TValue value)
参数
field
IAssignViewvalue
TValue
返回
类型参数
TValue