IUntypedSqlExpression
Assembly: ServiceStack.OrmLite.dll
View Source
public interface IUntypedSqlExpression : ISqlExpression
Properties
TableAlias
View Source
string TableAlias { get; set; }
PrefixFieldWithTableName
View Source
bool PrefixFieldWithTableName { get; set; }
WhereStatementWithoutWhereString
View Source
bool WhereStatementWithoutWhereString { get; set; }
DialectProvider
View Source
IOrmLiteDialectProvider DialectProvider { get; set; }
SelectExpression
View Source
string SelectExpression { get; set; }
FromExpression
View Source
string FromExpression { get; set; }
BodyExpression
View Source
string BodyExpression { get; }
WhereExpression
View Source
string WhereExpression { get; set; }
GroupByExpression
View Source
string GroupByExpression { get; set; }
HavingExpression
View Source
string HavingExpression { get; set; }
OrderByExpression
View Source
string OrderByExpression { get; set; }
Rows
View Source
int? Rows { get; set; }
Offset
View Source
int? Offset { get; set; }
UpdateFields
View Source
List<string> UpdateFields { get; set; }
InsertFields
View Source
List<string> InsertFields { get; set; }
ModelDef
View Source
ModelDefinition ModelDef { get; }
Methods
Clone()
View Source
IUntypedSqlExpression Clone()
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Select()
View Source
IUntypedSqlExpression Select()
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Select(String)
View Source
IUntypedSqlExpression Select(string selectExpression)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
System.String | selectExpression |
UnsafeSelect(String)
View Source
IUntypedSqlExpression UnsafeSelect(string rawSelect)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
System.String | rawSelect |
Select<Table1, Table2>(Expression<Func<Table1, Table2, Object>>)
View Source
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
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
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
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
IUntypedSqlExpression SelectDistinct()
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
From(String)
View Source
IUntypedSqlExpression From(string tables)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
System.String | tables |
UnsafeFrom(String)
View Source
IUntypedSqlExpression UnsafeFrom(string rawFrom)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
System.String | rawFrom |
Where()
View Source
IUntypedSqlExpression Where()
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
UnsafeWhere(String, Object[])
View Source
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
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
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
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
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
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
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
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
IUntypedSqlExpression GroupBy()
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
GroupBy(String)
View Source
IUntypedSqlExpression GroupBy(string groupBy)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
System.String | groupBy |
Having()
View Source
IUntypedSqlExpression Having()
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Having(String, Object[])
View Source
IUntypedSqlExpression Having(string sqlFilter, params object[] filterParams)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
System.String | sqlFilter |
System.Object[] | filterParams |
OrderBy()
View Source
IUntypedSqlExpression OrderBy()
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
OrderBy(String)
View Source
IUntypedSqlExpression OrderBy(string orderBy)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
System.String | orderBy |
GetModelDefinition(FieldDefinition)
View Source
ModelDefinition GetModelDefinition(FieldDefinition fieldDef)
Returns
ServiceStack.OrmLite.ModelDefinition
Parameters
Type | Name |
---|---|
ServiceStack.OrmLite.FieldDefinition | fieldDef |
OrderByFields(FieldDefinition[])
View Source
IUntypedSqlExpression OrderByFields(params FieldDefinition[] fields)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
ServiceStack.OrmLite.FieldDefinition[] | fields |
OrderByFieldsDescending(FieldDefinition[])
View Source
IUntypedSqlExpression OrderByFieldsDescending(params FieldDefinition[] fields)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
ServiceStack.OrmLite.FieldDefinition[] | fields |
OrderByFields(String[])
View Source
IUntypedSqlExpression OrderByFields(params string[] fieldNames)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
System.String[] | fieldNames |
OrderByFieldsDescending(String[])
View Source
IUntypedSqlExpression OrderByFieldsDescending(params string[] fieldNames)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
System.String[] | fieldNames |
OrderBy<Table>(Expression<Func<Table, Object>>)
View Source
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
IUntypedSqlExpression ThenBy(string orderBy)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
System.String | orderBy |
ThenBy<Table>(Expression<Func<Table, Object>>)
View Source
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
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
IUntypedSqlExpression OrderByDescending(string orderBy)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
System.String | orderBy |
ThenByDescending(String)
View Source
IUntypedSqlExpression ThenByDescending(string orderBy)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
System.String | orderBy |
ThenByDescending<Table>(Expression<Func<Table, Object>>)
View Source
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
IUntypedSqlExpression Skip(int? skip = null)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
System.Nullable<System.Int32> | skip |
Take(Nullable<Int32>)
View Source
IUntypedSqlExpression Take(int? take = null)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
System.Nullable<System.Int32> | take |
Limit(Int32, Int32)
View Source
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
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
IUntypedSqlExpression Limit(int rows)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
System.Int32 | rows |
Limit()
View Source
IUntypedSqlExpression Limit()
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
ClearLimits()
View Source
IUntypedSqlExpression ClearLimits()
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Update(List<String>)
View Source
IUntypedSqlExpression Update(List<string> updateFields)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
List<System.String> | updateFields |
Update()
View Source
IUntypedSqlExpression Update()
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Insert(List<String>)
View Source
IUntypedSqlExpression Insert(List<string> insertFields)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
List<System.String> | insertFields |
Insert()
View Source
IUntypedSqlExpression Insert()
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
CreateParam(String, Object, ParameterDirection, Nullable<DbType>)
View Source
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
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
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
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
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
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
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
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
IUntypedSqlExpression CustomJoin(string joinString)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
System.String | joinString |
Ensure<Target>(Expression<Func<Target, Boolean>>)
View Source
IUntypedSqlExpression Ensure<Target>(Expression<Func<Target, bool>> predicate)
Returns
ServiceStack.OrmLite.IUntypedSqlExpression
Parameters
Type | Name |
---|---|
Expression<Func<<Target>,System.Boolean>> | predicate |
Type Parameters
Target
Ensure<Source, Target>(Expression<Func<Source, Target, Boolean>>)
View Source
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
Where<Target>(Expression<Func<Target, Boolean>>)
View Source
IUntypedSqlExpression Where<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
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
And<Target>(Expression<Func<Target, Boolean>>)
View Source
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
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
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
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
string SqlTable(ModelDefinition modelDef)
Returns
System.String
Parameters
Type | Name |
---|---|
ServiceStack.OrmLite.ModelDefinition | modelDef |
SqlColumn(String)
View Source
string SqlColumn(string columnName)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | columnName |
ToDeleteRowStatement()
View Source
string ToDeleteRowStatement()
Returns
System.String
ToCountStatement()
View Source
string ToCountStatement()
Returns
System.String
GetAllFields()
View Source
IList<string> GetAllFields()
Returns
IList<System.String>
FirstMatchingField(String)
View Source
Tuple<ModelDefinition, FieldDefinition> FirstMatchingField(string fieldName)
Returns
Tuple<ServiceStack.OrmLite.ModelDefinition,ServiceStack.OrmLite.FieldDefinition>
Parameters
Type | Name |
---|---|
System.String | fieldName |