Skip to main content

AutoQueryExtensions

Assembly: ServiceStack.Server.dll
View Source
Declaration
public static class AutoQueryExtensions : object

Methods

Init(QueryDbFieldAttribute)

View Source
Declaration
public static QueryDbFieldAttribute Init(this QueryDbFieldAttribute query)
Returns

ServiceStack.QueryDbFieldAttribute

Parameters
TypeName
ServiceStack.QueryDbFieldAttributequery

Combine(QueryDbFieldAttribute, QueryDbFieldAttribute)

View Source
Declaration
public static QueryDbFieldAttribute Combine(this QueryDbFieldAttribute field, QueryDbFieldAttribute convention)
Returns

ServiceStack.QueryDbFieldAttribute

Parameters
TypeName
ServiceStack.QueryDbFieldAttributefield
ServiceStack.QueryDbFieldAttributeconvention

CreateQuery<From>(IAutoQueryDb, IQueryDb<From>, IRequest)

View Source
Declaration
public static SqlExpression<From> CreateQuery<From>(this IAutoQueryDb autoQuery, IQueryDb<From> model, IRequest request)
Returns

ServiceStack.OrmLite.SqlExpression<T>

Parameters
TypeName
ServiceStack.IAutoQueryDbautoQuery
ServiceStack.IQueryDb<From>model
ServiceStack.Web.IRequestrequest
Type Parameters
  • From

CreateQuery<From>(IAutoQueryDb, IQueryDb<From>, IRequest, IDbConnection)

View Source
Declaration
public static SqlExpression<From> CreateQuery<From>(this IAutoQueryDb autoQuery, IQueryDb<From> model, IRequest request, IDbConnection db)
Returns

ServiceStack.OrmLite.SqlExpression<T>

Parameters
TypeName
ServiceStack.IAutoQueryDbautoQuery
ServiceStack.IQueryDb<From>model
ServiceStack.Web.IRequestrequest
IDbConnectiondb
Type Parameters
  • From

CreateQuery<From, Into>(IAutoQueryDb, IQueryDb<From, Into>, IRequest)

View Source
Declaration
public static SqlExpression<From> CreateQuery<From, Into>(this IAutoQueryDb autoQuery, IQueryDb<From, Into> model, IRequest request)
Returns

ServiceStack.OrmLite.SqlExpression<T>

Parameters
TypeName
ServiceStack.IAutoQueryDbautoQuery
ServiceStack.IQueryDb<From>model
ServiceStack.Web.IRequestrequest
Type Parameters
  • From
  • Into

CreateQuery<From, Into>(IAutoQueryDb, IQueryDb<From, Into>, IRequest, IDbConnection)

View Source
Declaration
public static SqlExpression<From> CreateQuery<From, Into>(this IAutoQueryDb autoQuery, IQueryDb<From, Into> model, IRequest request, IDbConnection db)
Returns

ServiceStack.OrmLite.SqlExpression<T>

Parameters
TypeName
ServiceStack.IAutoQueryDbautoQuery
ServiceStack.IQueryDb<From>model
ServiceStack.Web.IRequestrequest
IDbConnectiondb
Type Parameters
  • From
  • Into

GetDb<From>(IAutoQueryDb, IQueryDb<From>, IRequest)

View Source
Declaration
public static IDbConnection GetDb<From>(this IAutoQueryDb autoQuery, IQueryDb<From> dto, IRequest req = null)
Returns

IDbConnection

Parameters
TypeName
ServiceStack.IAutoQueryDbautoQuery
ServiceStack.IQueryDb<From>dto
ServiceStack.Web.IRequestreq
Type Parameters
  • From

GetDb<From, Into>(IAutoQueryDb, IQueryDb<From, Into>, IRequest)

View Source
Declaration
public static IDbConnection GetDb<From, Into>(this IAutoQueryDb autoQuery, IQueryDb<From, Into> dto, IRequest req = null)
Returns

IDbConnection

Parameters
TypeName
ServiceStack.IAutoQueryDbautoQuery
ServiceStack.IQueryDb<From>dto
ServiceStack.Web.IRequestreq
Type Parameters
  • From
  • Into