FSharp.ORM


IDialect

Namespace: FSharp.ORM

Represents a SQL dialect.

Instance members

Instance memberDescription
BuildProcedureCallSql(...)
Signature: (procedureName:string * parameters:seq<PreparedParameter>) -> string
Modifiers: abstract

Builds the stored procedure call SQL.

CanGetIdentityAndVersionAtOnce
Signature: bool
Modifiers: abstract

Gets a value indicating whether the insert and the identity and version getting can be done at once.

CanGetIdentityAtOnce
Signature: bool
Modifiers: abstract

Gets a value indicating whether the insert and the identity getting can be done at once.

CanGetVersionAtOnce
Signature: bool
Modifiers: abstract

Gets a value indicating whether the insert and the version getting can be done at once.

ConvertFromClrToDb(...)
Signature: (clrValue:obj * srcType:Type * udtTypeName:string) -> obj * Type * DbType
Modifiers: abstract

Converts the value from the CLR to the DB.

ConvertFromDbToClr(...)
Signature: (dbValue:obj * destType:Type * udtTypeName:string * destProp:PropertyInfo) -> obj
Modifiers: abstract

Converts the value from the DB to the CLR.

CreateParameterName(baseName)
Signature: baseName:string -> string
Modifiers: abstract

Create the parameter name.

CreateParameterName(index)
Signature: index:int -> string
Modifiers: abstract

Create the parameter name.

EncloseIdentifier(identifier)
Signature: identifier:string -> string
Modifiers: abstract

Encloses the identifier.

EscapeMetaChars(text)
Signature: text:string -> string
Modifiers: abstract

Escapes meta characters.

FormatAsSqlLiteral(...)
Signature: (dbValue:obj * clrType:Type * dbType:DbType) -> string
Modifiers: abstract

Formats the value as the SQL literal.

GetValue(reader, index, destProp)
Signature: (reader:DbDataReader * index:int * destProp:PropertyInfo) -> obj
Modifiers: abstract

Gets value from System.Data.Common.DbDataReader.

IsHasRowsPropertySupported
Signature: bool
Modifiers: abstract

Gets a value indicating whether the System.Data.Common.DbDataReader.HasRows Property is supported.

IsResultParamRecognizedAsOutputParam
Signature: bool
Modifiers: abstract

Gets a value indicating whether a result parameter is recognized as an output parameter.

IsUniqueConstraintViolation(exn)
Signature: exn:exn -> bool
Modifiers: abstract

Gets a value indicating whether the exception represents the unique constraint violation.

MakeParametersDisposer(command)
Signature: command:DbCommand -> IDisposable
Modifiers: abstract

Make the disposer to cleanup Parameters and those Values before calling DbCommand::Dispose.

PrepareIdentityAndVersionSelect(...)
Signature: (tableName:string * idColumnName:string * versionColumnName:string) -> PreparedStatement
Modifiers: abstract

Prepares the identity and version select SQL statement.

PrepareIdentitySelect(...)
Signature: (tableName:string * idColumnName:string) -> PreparedStatement
Modifiers: abstract

Prepares the identity select SQL statement.

PrepareSequenceSelect(sequenceName)
Signature: sequenceName:string -> PreparedStatement
Modifiers: abstract

Prepares the sequence select SQL statement.

PrepareVersionSelect(...)
Signature: (tableName:string * versionColumnName:string * idMetaList:(string * obj * Type) list) -> PreparedStatement
Modifiers: abstract

Prepares the version select SQL statement.

RewriteForCalcPagination(...)
Signature: (statement:Statement * sql:string * condition:IDictionary<string,(obj * Type)> * offset:int64 * limit:int64) -> string * IDictionary<string,(obj * Type)>
Modifiers: abstract

Rewrites the SQL for pagination with the count calculation.

RewriteForCount(...)
Signature: (statement:Statement * sql:string * condition:IDictionary<string,(obj * Type)>) -> string * IDictionary<string,(obj * Type)>
Modifiers: abstract

Rewrites the SQL for counting.

RewriteForPagination(...)
Signature: (statement:Statement * sql:string * condition:IDictionary<string,(obj * Type)> * offset:int64 * limit:int64) -> string * IDictionary<string,(obj * Type)>
Modifiers: abstract

Rewrites the SQL for pagination.

RootExprCtxt
Signature: IDictionary<string,(obj * Type)>
Modifiers: abstract

Gets a root expression context.

SetupDbParameter(param, dbParam)
Signature: (param:PreparedParameter * dbParam:DbParameter) -> unit
Modifiers: abstract

Setups the System.Data.Common.DbParameter.

Fork me on GitHub