CrudContext
Assembly: ServiceStack.Server.dll
View Source
Declaration
public class CrudContext : object
Properties
AppHost
View Source
Declaration
public ServiceStackHost AppHost { get; }
Request
View Source
Declaration
public IRequest Request { get; }
Db
View Source
Declaration
public IDbConnection Db { get; }
Events
View Source
Declaration
public ICrudEvents Events { get; }
Operation
View Source
Declaration
public string Operation { get; set; }
Dto
View Source
Declaration
public object Dto { get; }
ModelType
View Source
Declaration
public Type ModelType { get; }
RequestType
View Source
Declaration
public Type RequestType { get; }
ResponseType
View Source
Declaration
public Type ResponseType { get; }
ModelDef
View Source
Declaration
public ModelDefinition ModelDef { get; }
IdProp
View Source
Declaration
public PropertyAccessor IdProp { get; }
ResultProp
View Source
Declaration
public PropertyAccessor ResultProp { get; }
CountProp
View Source
Declaration
public PropertyAccessor CountProp { get; }
RowVersionProp
View Source
Declaration
public PropertyAccessor RowVersionProp { get; }
Id
View Source
Declaration
public object Id { get; set; }
Response
View Source
Declaration
public object Response { get; set; }
RowsUpdated
View Source
Declaration
public long? RowsUpdated { get; set; }
NamedConnection
View Source
Declaration
public string NamedConnection { get; set; }
Methods
Create<Table>(IRequest, IDbConnection, Object, String)
View Source
Declaration
public static CrudContext Create<Table>(IRequest request, IDbConnection db, object dto, string operation)
Returns
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | request |
IDbConnection | db |
System.Object | dto |
System.String | operation |
Type Parameters
Table
Create(Type, IRequest, IDbConnection, Object, String)
View Source
Declaration
public static CrudContext Create(Type tableType, IRequest request, IDbConnection db, object dto, string operation)
Returns
Parameters
Type | Name |
---|---|
Type | tableType |
ServiceStack.Web.IRequest | request |
IDbConnection | db |
System.Object | dto |
System.String | operation |