Skip to main content

IAutoCrudDb

AutoQuery CRUD RDBMS APIs

Assembly: ServiceStack.Server.dll
View Source
Declaration
public interface IAutoCrudDb

Methods

Create<Table>(ICreateDb<Table>, IRequest, IDbConnection)

Inserts new entry into Table

View Source
Declaration
object Create<Table>(ICreateDb<Table> dto, IRequest req, IDbConnection db = null)
Returns

System.Object

Parameters
TypeName
ServiceStack.ICreateDb<Table>dto
ServiceStack.Web.IRequestreq
IDbConnectiondb
Type Parameters
  • Table

CreateAsync<Table>(ICreateDb<Table>, IRequest, IDbConnection)

Inserts new entry into Table Async

View Source
Declaration
Task<object> CreateAsync<Table>(ICreateDb<Table> dto, IRequest req, IDbConnection db = null)
Returns

Task<System.Object>

Parameters
TypeName
ServiceStack.ICreateDb<Table>dto
ServiceStack.Web.IRequestreq
IDbConnectiondb
Type Parameters
  • Table

Update<Table>(IUpdateDb<Table>, IRequest, IDbConnection)

Updates entry into Table

View Source
Declaration
object Update<Table>(IUpdateDb<Table> dto, IRequest req, IDbConnection db = null)
Returns

System.Object

Parameters
TypeName
ServiceStack.IUpdateDb<Table>dto
ServiceStack.Web.IRequestreq
IDbConnectiondb
Type Parameters
  • Table

UpdateAsync<Table>(IUpdateDb<Table>, IRequest, IDbConnection)

Updates entry into Table Async

View Source
Declaration
Task<object> UpdateAsync<Table>(IUpdateDb<Table> dto, IRequest req, IDbConnection db = null)
Returns

Task<System.Object>

Parameters
TypeName
ServiceStack.IUpdateDb<Table>dto
ServiceStack.Web.IRequestreq
IDbConnectiondb
Type Parameters
  • Table

Patch<Table>(IPatchDb<Table>, IRequest, IDbConnection)

Partially Updates entry into Table

View Source
Declaration
object Patch<Table>(IPatchDb<Table> dto, IRequest req, IDbConnection db = null)
Returns

System.Object

Parameters
TypeName
ServiceStack.IPatchDb<Table>dto
ServiceStack.Web.IRequestreq
IDbConnectiondb
Type Parameters
  • Table

PatchAsync<Table>(IPatchDb<Table>, IRequest, IDbConnection)

Partially Updates entry into Table Async

View Source
Declaration
Task<object> PatchAsync<Table>(IPatchDb<Table> dto, IRequest req, IDbConnection db = null)
Returns

Task<System.Object>

Parameters
TypeName
ServiceStack.IPatchDb<Table>dto
ServiceStack.Web.IRequestreq
IDbConnectiondb
Type Parameters
  • Table

Delete<Table>(IDeleteDb<Table>, IRequest, IDbConnection)

Deletes entry from Table

View Source
Declaration
object Delete<Table>(IDeleteDb<Table> dto, IRequest req, IDbConnection db = null)
Returns

System.Object

Parameters
TypeName
ServiceStack.IDeleteDb<Table>dto
ServiceStack.Web.IRequestreq
IDbConnectiondb
Type Parameters
  • Table

DeleteAsync<Table>(IDeleteDb<Table>, IRequest, IDbConnection)

Deletes entry from Table Async

View Source
Declaration
Task<object> DeleteAsync<Table>(IDeleteDb<Table> dto, IRequest req, IDbConnection db = null)
Returns

Task<System.Object>

Parameters
TypeName
ServiceStack.IDeleteDb<Table>dto
ServiceStack.Web.IRequestreq
IDbConnectiondb
Type Parameters
  • Table

Save<Table>(ISaveDb<Table>, IRequest, IDbConnection)

Inserts or Updates entry into Table

View Source
Declaration
object Save<Table>(ISaveDb<Table> dto, IRequest req, IDbConnection db = null)
Returns

System.Object

Parameters
TypeName
ServiceStack.ISaveDb<Table>dto
ServiceStack.Web.IRequestreq
IDbConnectiondb
Type Parameters
  • Table

SaveAsync<Table>(ISaveDb<Table>, IRequest, IDbConnection)

Inserts or Updates entry into Table Async

View Source
Declaration
Task<object> SaveAsync<Table>(ISaveDb<Table> dto, IRequest req, IDbConnection db = null)
Returns

Task<System.Object>

Parameters
TypeName
ServiceStack.ISaveDb<Table>dto
ServiceStack.Web.IRequestreq
IDbConnectiondb
Type Parameters
  • Table

PartialUpdate<Table>(Object, IRequest, IDbConnection)

Partially Update non-null properties of DTO

View Source
Declaration
object PartialUpdate<Table>(object dto, IRequest req, IDbConnection db = null)
Returns

System.Object

Parameters
TypeName
System.Objectdto
ServiceStack.Web.IRequestreq
IDbConnectiondb
Type Parameters
  • Table

PartialUpdateAsync<Table>(Object, IRequest, IDbConnection)

Partially Update non-null properties of DTO Async

View Source
Declaration
Task<object> PartialUpdateAsync<Table>(object dto, IRequest req, IDbConnection db = null)
Returns

Task<System.Object>

Parameters
TypeName
System.Objectdto
ServiceStack.Web.IRequestreq
IDbConnectiondb
Type Parameters
  • Table