FSharp.ORM


Db

Namespace: FSharp.ORM

Implements FSharp.ORM.IDb.

Constructors

ConstructorDescription
new(config)
Signature: config:IDbConfig -> Db

Initializes a Db instance.

Instance members

Instance memberDescription
Call(procedure)
Signature: procedure:'T -> unit
Modifiers: abstract
Type parameters: 'T

Calls the stored procedure.

DbConfig
Signature: IDbConfig
Modifiers: abstract

Gets the databse configuration.

Delete(entity, opt)
Signature: (entity:'T * opt:DeleteOpt) -> unit
Modifiers: abstract
Type parameters: 'T

Deletes the entity.

Delete(entity)
Signature: entity:'T -> unit
Modifiers: abstract
Type parameters: 'T

Deletes the entity.

Execute(sql, condition)
Signature: (sql:string * condition:obj) -> int
Modifiers: abstract

Executes the arbitrary SQL.

Execute(sql)
Signature: sql:string -> int
Modifiers: abstract

Executes the arbitrary SQL.

ExecuteReader(handler, sql, condition)
Signature: (handler:Func<DbDataReader,'T> * sql:string * condition:obj) -> 'T
Modifiers: abstract
Type parameters: 'T

Executes the SQL and handles the reader.

ExecuteReader(handler, sql)
Signature: (handler:Func<DbDataReader,'T> * sql:string) -> 'T
Modifiers: abstract
Type parameters: 'T

Executes the SQL and handles the reader.

Find(id)
Signature: id:obj -> 'T
Modifiers: abstract
Type parameters: 'T

Finds the entity.

FindWithVersion(id, version)
Signature: (id:obj * version:obj) -> 'T
Modifiers: abstract
Type parameters: 'T

Finds the entity with the version.

Insert(entity, opt)
Signature: (entity:'T * opt:InsertOpt) -> unit
Modifiers: abstract
Type parameters: 'T

Inserts the entity.

Insert(entity)
Signature: entity:'T -> unit
Modifiers: abstract
Type parameters: 'T

Inserts the entity.

InsertOrUpdate(entity)
Signature: entity:'T -> unit
Modifiers: abstract
Type parameters: 'T

Inserts the entity, or updates if it already exists.

Paginate(sql, offset, limit, condition)
Signature: (sql:string * offset:int64 * limit:int64 * condition:obj) -> IList<'T>
Modifiers: abstract
Type parameters: 'T

Paginates the rows.

Paginate(sql, offset, limit)
Signature: (sql:string * offset:int64 * limit:int64) -> IList<'T>
Modifiers: abstract
Type parameters: 'T

Paginates the rows.

PaginateAndCount(...)
Signature: (sql:string * offset:int64 * limit:int64 * condition:obj) -> IList<'T> * int64
Modifiers: abstract
Type parameters: 'T

Paginates the rows, and counts rows without the offset and the limit.

PaginateAndCount(sql, offset, limit)
Signature: (sql:string * offset:int64 * limit:int64) -> IList<'T> * int64
Modifiers: abstract
Type parameters: 'T

Paginates the rows, and counts rows without the offset and the limit.

PaginateOnDemand(...)
Signature: (sql:string * offset:int64 * limit:int64 * condition:obj) -> seq<'T>
Modifiers: abstract
Type parameters: 'T

Paginates the rows on demand.

PaginateOnDemand(sql, offset, limit)
Signature: (sql:string * offset:int64 * limit:int64) -> seq<'T>
Modifiers: abstract
Type parameters: 'T

Paginates the rows on demand.

Query(sql, condition)
Signature: (sql:string * condition:obj) -> IList<'T>
Modifiers: abstract
Type parameters: 'T

Queries the rows.

Query(sql)
Signature: sql:string -> IList<'T>
Modifiers: abstract
Type parameters: 'T

Queries the rows.

Queryable()
Signature: unit -> IQueryable<'T>
Modifiers: abstract
Type parameters: 'T

Creates an IQueryable on 'T

QueryableDelete(query)
Signature: query:IQueryable<'T> -> unit
Modifiers: abstract
Type parameters: 'T

Deletes all values returned by query.

QueryableDirectSql(query parametters)
Signature: query:seq<Sql> -> parametters:seq<Parameter> -> IQueryable<'T>
Modifiers: abstract
Type parameters: 'T

Creates an IQueryable on 'T that executes specified query when enumerated.

QueryOnDemand(sql, condition)
Signature: (sql:string * condition:obj) -> seq<'T>
Modifiers: abstract
Type parameters: 'T

Queries the rows on demand.

QueryOnDemand(sql)
Signature: sql:string -> seq<'T>
Modifiers: abstract
Type parameters: 'T

Queries the rows on demand.

TryFind(id)
Signature: id:obj -> 'T
Modifiers: abstract
Type parameters: 'T

Try to find the entity.

TryFindWithVersion(id, version)
Signature: (id:obj * version:obj) -> 'T
Modifiers: abstract
Type parameters: 'T

Try to find the entity with the version.

Update(entity, opt)
Signature: (entity:'T * opt:UpdateOpt) -> unit
Modifiers: abstract
Type parameters: 'T

Updates the entity.

Update(entity)
Signature: entity:'T -> unit
Modifiers: abstract
Type parameters: 'T

Updates the entity.

Fork me on GitHub