UntypedSqlExpressionProxy<T>
Assembly: ServiceStack.OrmLite.dll
View Source
public class UntypedSqlExpressionProxy<T> : object, IUntypedSqlExpression, ISqlExpression
Properties
TableAlias
View Source
public string TableAlias { get; set; }
PrefixFieldWithTableName
View Source
public bool PrefixFieldWithTableName { get; set; }
WhereStatementWithoutWhereString
View Source
public bool WhereStatementWithoutWhereString { get; set; }
DialectProvider
View Source
public IOrmLiteDialectProvider DialectProvider { get; set; }
Params
View Source
public List<IDbDataParameter> Params { get; set; }
SelectExpression
View Source
public string SelectExpression { get; set; }
FromExpression
View Source
public string FromExpression { get; set; }
BodyExpression
View Source
public string BodyExpression { get; }
WhereExpression
View Source
public string WhereExpression { get; set; }
GroupByExpression
View Source
public string GroupByExpression { get; set; }
HavingExpression
View Source
public string HavingExpression { get; set; }
OrderByExpression
View Source
public string OrderByExpression { get; set; }
Rows
View Source
public int? Rows { get; set; }
Offset
View Source
public int? Offset { get; set; }
UpdateFields
View Source
public List<string> UpdateFields { get; set; }
InsertFields
View Source
public List<string> InsertFields { get; set; }
ModelDef
View Source
public ModelDefinition ModelDef { get; }
Methods
Clone()
View Source
public IUntypedSqlExpression Clone()
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Select()
View Source
public IUntypedSqlExpression Select()
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Select(String)
View Source
public IUntypedSqlExpression Select(string selectExpression)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
System.String | selectExpression |
UnsafeSelect(String)
View Source
public IUntypedSqlExpression UnsafeSelect(string rawSelect)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
System.String | rawSelect |
Select<Table1, Table2>(Expression<Func<Table1, Table2, Object>>)
View Source
public IUntypedSqlExpression Select<Table1, Table2>(Expression<Func<Table1, Table2, object>> fields)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
Expression<Func<<Table1>,<Table2>,System.Object>> | fields |
Type Parameters
Table1
Table2
Select<Table1, Table2, Table3>(Expression<Func<Table1, Table2, Table3, Object>>)
View Source
public IUntypedSqlExpression Select<Table1, Table2, Table3>(Expression<Func<Table1, Table2, Table3, object>> fields)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
Expression<Func<<Table1>,<Table2>,<Table3>,System.Object>> | fields |
Type Parameters
Table1
Table2
Table3
SelectDistinct<Table1, Table2>(Expression<Func<Table1, Table2, Object>>)
View Source
public IUntypedSqlExpression SelectDistinct<Table1, Table2>(Expression<Func<Table1, Table2, object>> fields)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
Expression<Func<<Table1>,<Table2>,System.Object>> | fields |
Type Parameters
Table1
Table2
SelectDistinct<Table1, Table2, Table3>(Expression<Func<Table1, Table2, Table3, Object>>)
View Source
public IUntypedSqlExpression SelectDistinct<Table1, Table2, Table3>(Expression<Func<Table1, Table2, Table3, object>> fields)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
Expression<Func<<Table1>,<Table2>,<Table3>,System.Object>> | fields |
Type Parameters
Table1
Table2
Table3
SelectDistinct()
View Source
public IUntypedSqlExpression SelectDistinct()
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
From(String)
View Source
public IUntypedSqlExpression From(string tables)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
System.String | tables |
UnsafeFrom(String)
View Source
public IUntypedSqlExpression UnsafeFrom(string rawFrom)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
System.String | rawFrom |
Where()
View Source
public IUntypedSqlExpression Where()
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
UnsafeWhere(String, Object[])
View Source
public IUntypedSqlExpression UnsafeWhere(string rawSql, params object[] filterParams)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
System.String | rawSql |
System.Object[] | filterParams |
Ensure(String, Object[])
View Source
public IUntypedSqlExpression Ensure(string sqlFilter, params object[] filterParams)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
System.String | sqlFilter |
System.Object[] | filterParams |
Where(String, Object[])
View Source
public IUntypedSqlExpression Where(string sqlFilter, params object[] filterParams)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
System.String | sqlFilter |
System.Object[] | filterParams |
UnsafeAnd(String, Object[])
View Source
public IUntypedSqlExpression UnsafeAnd(string rawSql, params object[] filterParams)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
System.String | rawSql |
System.Object[] | filterParams |
And(String, Object[])
View Source
public IUntypedSqlExpression And(string sqlFilter, params object[] filterParams)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
System.String | sqlFilter |
System.Object[] | filterParams |
UnsafeOr(String, Object[])
View Source
public IUntypedSqlExpression UnsafeOr(string rawSql, params object[] filterParams)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
System.String | rawSql |
System.Object[] | filterParams |
Or(String, Object[])
View Source
public IUntypedSqlExpression Or(string sqlFilter, params object[] filterParams)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
System.String | sqlFilter |
System.Object[] | filterParams |
AddCondition(String, String, Object[])
View Source
public IUntypedSqlExpression AddCondition(string condition, string sqlFilter, params object[] filterParams)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
System.String | condition |
System.String | sqlFilter |
System.Object[] | filterParams |
GroupBy()
View Source
public IUntypedSqlExpression GroupBy()
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
GroupBy(String)
View Source
public IUntypedSqlExpression GroupBy(string groupBy)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
System.String | groupBy |
Having()
View Source
public IUntypedSqlExpression Having()
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Having(String, Object[])
View Source
public IUntypedSqlExpression Having(string sqlFilter, params object[] filterParams)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
System.String | sqlFilter |
System.Object[] | filterParams |
OrderBy()
View Source
public IUntypedSqlExpression OrderBy()
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
OrderBy(String)
View Source
public IUntypedSqlExpression OrderBy(string orderBy)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
System.String | orderBy |
GetModelDefinition(FieldDefinition)
View Source
public ModelDefinition GetModelDefinition(FieldDefinition fieldDef)
Returns
ServiceStack.OrmLite.ModelDefinition
Parameters
Type | Name |
---|---|
ServiceStack.OrmLite.FieldDefinition | fieldDef |
OrderByFields(FieldDefinition[])
View Source
public IUntypedSqlExpression OrderByFields(params FieldDefinition[] fields)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
ServiceStack.OrmLite.FieldDefinition[] | fields |
OrderByFieldsDescending(FieldDefinition[])
View Source
public IUntypedSqlExpression OrderByFieldsDescending(params FieldDefinition[] fields)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
ServiceStack.OrmLite.FieldDefinition[] | fields |
OrderByFields(String[])
View Source
public IUntypedSqlExpression OrderByFields(params string[] fieldNames)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
System.String[] | fieldNames |
OrderByFieldsDescending(String[])
View Source
public IUntypedSqlExpression OrderByFieldsDescending(params string[] fieldNames)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
System.String[] | fieldNames |
OrderBy<Table>(Expression<Func<Table, Object>>)
View Source
public IUntypedSqlExpression OrderBy<Table>(Expression<Func<Table, object>> keySelector)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
Expression<Func<<Table>,System.Object>> | keySelector |
Type Parameters
Table
ThenBy(String)
View Source
public IUntypedSqlExpression ThenBy(string orderBy)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
System.String | orderBy |
ThenBy<Table>(Expression<Func<Table, Object>>)
View Source
public IUntypedSqlExpression ThenBy<Table>(Expression<Func<Table, object>> keySelector)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
Expression<Func<<Table>,System.Object>> | keySelector |
Type Parameters
Table
OrderByDescending<Table>(Expression<Func<Table, Object>>)
View Source
public IUntypedSqlExpression OrderByDescending<Table>(Expression<Func<Table, object>> keySelector)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
Expression<Func<<Table>,System.Object>> | keySelector |
Type Parameters
Table
OrderByDescending(String)
View Source
public IUntypedSqlExpression OrderByDescending(string orderBy)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
System.String | orderBy |
ThenByDescending(String)
View Source
public IUntypedSqlExpression ThenByDescending(string orderBy)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
System.String | orderBy |
ThenByDescending<Table>(Expression<Func<Table, Object>>)
View Source
public IUntypedSqlExpression ThenByDescending<Table>(Expression<Func<Table, object>> keySelector)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
Expression<Func<<Table>,System.Object>> | keySelector |
Type Parameters
Table
Skip(Nullable<Int32>)
View Source
public IUntypedSqlExpression Skip(int? skip = null)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
System.Nullable<System.Int32> | skip |
Take(Nullable<Int32>)
View Source
public IUntypedSqlExpression Take(int? take = null)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
System.Nullable<System.Int32> | take |
Limit(Int32, Int32)
View Source
public IUntypedSqlExpression Limit(int skip, int rows)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
System.Int32 | skip |
System.Int32 | rows |
Limit(Nullable<Int32>, Nullable<Int32>)
View Source
public IUntypedSqlExpression Limit(int? skip, int? rows)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
System.Nullable<System.Int32> | skip |
System.Nullable<System.Int32> | rows |
Limit(Int32)
View Source
public IUntypedSqlExpression Limit(int rows)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
System.Int32 | rows |
Limit()
View Source
public IUntypedSqlExpression Limit()
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
ClearLimits()
View Source
public IUntypedSqlExpression ClearLimits()
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Update(List<String>)
View Source
public IUntypedSqlExpression Update(List<string> updateFields)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
List<System.String> | updateFields |
Update()
View Source
public IUntypedSqlExpression Update()
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Insert(List<String>)
View Source
public IUntypedSqlExpression Insert(List<string> insertFields)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
List<System.String> | insertFields |
Insert()
View Source
public IUntypedSqlExpression Insert()
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
CreateParam(String, Object, ParameterDirection, Nullable<DbType>)
View Source
public IDbDataParameter CreateParam(string name, object value = null, ParameterDirection direction = null, DbType? dbType = null)
Returns
IDbDataParameter
Parameters
Type | Name |
---|---|
System.String | name |
System.Object | value |
ParameterDirection | direction |
System.Nullable<DbType> | dbType |
Join<Source, Target>(Expression<Func<Source, Target, Boolean>>)
View Source
public IUntypedSqlExpression Join<Source, Target>(Expression<Func<Source, Target, bool>> joinExpr = null)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
Expression<Func<<Source>,<Target>,System.Boolean>> | joinExpr |
Type Parameters
Source
Target
Join(Type, Type, Expression)
View Source
public IUntypedSqlExpression Join(Type sourceType, Type targetType, Expression joinExpr = null)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
Type | sourceType |
Type | targetType |
Expression | joinExpr |
LeftJoin<Source, Target>(Expression<Func<Source, Target, Boolean>>)
View Source
public IUntypedSqlExpression LeftJoin<Source, Target>(Expression<Func<Source, Target, bool>> joinExpr = null)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
Expression<Func<<Source>,<Target>,System.Boolean>> | joinExpr |
Type Parameters
Source
Target
LeftJoin(Type, Type, Expression)
View Source
public IUntypedSqlExpression LeftJoin(Type sourceType, Type targetType, Expression joinExpr = null)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
Type | sourceType |
Type | targetType |
Expression | joinExpr |
RightJoin<Source, Target>(Expression<Func<Source, Target, Boolean>>)
View Source
public IUntypedSqlExpression RightJoin<Source, Target>(Expression<Func<Source, Target, bool>> joinExpr = null)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
Expression<Func<<Source>,<Target>,System.Boolean>> | joinExpr |
Type Parameters
Source
Target
FullJoin<Source, Target>(Expression<Func<Source, Target, Boolean>>)
View Source
public IUntypedSqlExpression FullJoin<Source, Target>(Expression<Func<Source, Target, bool>> joinExpr = null)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
Expression<Func<<Source>,<Target>,System.Boolean>> | joinExpr |
Type Parameters
Source
Target
CrossJoin<Source, Target>(Expression<Func<Source, Target, Boolean>>)
View Source
public IUntypedSqlExpression CrossJoin<Source, Target>(Expression<Func<Source, Target, bool>> joinExpr = null)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
Expression<Func<<Source>,<Target>,System.Boolean>> | joinExpr |
Type Parameters
Source
Target
CustomJoin(String)
View Source
public IUntypedSqlExpression CustomJoin(string joinString)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
System.String | joinString |
Where<Target>(Expression<Func<Target, Boolean>>)
View Source
public IUntypedSqlExpression Where<Target>(Expression<Func<Target, bool>> predicate)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
Expression<Func<<Target>,System.Boolean>> | predicate |
Type Parameters
Target
Ensure<Target>(Expression<Func<Target, Boolean>>)
View Source
public IUntypedSqlExpression Ensure<Target>(Expression<Func<Target, bool>> predicate)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
Expression<Func<<Target>,System.Boolean>> | predicate |
Type Parameters
Target
Where<Source, Target>(Expression<Func<Source, Target, Boolean>>)
View Source
public IUntypedSqlExpression Where<Source, Target>(Expression<Func<Source, Target, bool>> predicate)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
Expression<Func<<Source>,<Target>,System.Boolean>> | predicate |
Type Parameters
Source
Target
Ensure<Source, Target>(Expression<Func<Source, Target, Boolean>>)
View Source
public IUntypedSqlExpression Ensure<Source, Target>(Expression<Func<Source, Target, bool>> predicate)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
Expression<Func<<Source>,<Target>,System.Boolean>> | predicate |
Type Parameters
Source
Target
And<Target>(Expression<Func<Target, Boolean>>)
View Source
public IUntypedSqlExpression And<Target>(Expression<Func<Target, bool>> predicate)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
Expression<Func<<Target>,System.Boolean>> | predicate |
Type Parameters
Target
And<Source, Target>(Expression<Func<Source, Target, Boolean>>)
View Source
public IUntypedSqlExpression And<Source, Target>(Expression<Func<Source, Target, bool>> predicate)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
Expression<Func<<Source>,<Target>,System.Boolean>> | predicate |
Type Parameters
Source
Target
Or<Target>(Expression<Func<Target, Boolean>>)
View Source
public IUntypedSqlExpression Or<Target>(Expression<Func<Target, bool>> predicate)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
Expression<Func<<Target>,System.Boolean>> | predicate |
Type Parameters
Target
Or<Source, Target>(Expression<Func<Source, Target, Boolean>>)
View Source
public IUntypedSqlExpression Or<Source, Target>(Expression<Func<Source, Target, bool>> predicate)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
Expression<Func<<Source>,<Target>,System.Boolean>> | predicate |
Type Parameters
Source
Target
SqlTable(ModelDefinition)
View Source
public string SqlTable(ModelDefinition modelDef)
Returns
System.String
Parameters
Type | Name |
---|---|
ServiceStack.OrmLite.ModelDefinition | modelDef |
SqlColumn(String)
View Source
public string SqlColumn(string columnName)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | columnName |
ToDeleteRowStatement()
View Source
public string ToDeleteRowStatement()
Returns
System.String
ToSelectStatement()
View Source
public string ToSelectStatement()
Returns
System.String
ToSelectStatement(QueryType)
View Source
public string ToSelectStatement(QueryType forType)
Returns
System.String
Parameters
Type | Name |
---|---|
ServiceStack.OrmLite.QueryType | forType |
ToCountStatement()
View Source
public string ToCountStatement()
Returns
System.String
GetAllFields()
View Source
public IList<string> GetAllFields()
Returns
IList<System.String>
FirstMatchingField(String)
View Source
public Tuple<ModelDefinition, FieldDefinition> FirstMatchingField(string fieldName)
Returns
Tuple<ServiceStack.OrmLite.ModelDefinition,ServiceStack.OrmLite.FieldDefinition>
Parameters
Type | Name |
---|---|
System.String | fieldName |
SelectInto<TModel>()
View Source
public string SelectInto<TModel>()
Returns
System.String
Type Parameters
TModel
SelectInto<TModel>(QueryType)
View Source
public string SelectInto<TModel>(QueryType queryType)
Returns
System.String
Parameters
Type | Name |
---|---|
ServiceStack.OrmLite.QueryType | queryType |
Type Parameters
TModel