CommonTasks Module
Functions and values
| Function or value |
Description
|
Full Usage:
``ensurecolumnshavebeenloaded`` provider con entities
Parameters:
ISqlProvider
con : IDbConnection
entities : ConcurrentDictionary<SqlEntity, DateTime>
|
|
Full Usage:
checkKey pkLookup id e
Parameters:
ConcurrentDictionary<string, string list>
id : 'a
e : SqlEntity
Type parameters: 'a |
|
Full Usage:
groupKeyColumn keys index column notation plain
Parameters:
(alias * SqlColumnType) list
index : int
column : SqlColumnType
notation : string
plain : string
Returns: string
|
The select-list entry of a group-key column. In a key of several columns, a computed one (a CASE for x.IsSome or
x.IsNone) is aliased sqlp_key
|
Full Usage:
groupSelectColumns grouping keys aggregates
Parameters:
GroupingColumns list
keys : string list
aggregates : string seq
Returns: string
|
The select list of a grouped query: the key columns (`keys`, in the order of the groupings' Keys) of each grouping that selects its keys, then the aggregates.
|
Full Usage:
initCallSproc dc def values con com hasStoredProcedures
Parameters:
ISqlDataContext
def : RunTimeSprocDefinition
values : obj array
con : IDbConnection
com : IDbCommand
hasStoredProcedures : bool
Returns: QueryParameter array * SqlEntity * ('a -> SqlEntity[])
Type parameters: 'a, 'b, 'c (requires :> 'b Microsoft.FSharp.Collections.seq and :> (Microsoft.FSharp.Core.string * 'c) Microsoft.FSharp.Collections.seq) |
|
Full Usage:
parseHaving fieldNotation keys conditionList
Parameters:
'a
keys : (alias * SqlColumnType) list
conditionList : Condition list
Returns: Condition list
Type parameters: 'a |
|
Full Usage:
searchDataTypeFromCache provider con sqlQuery baseAlias baseTable alias col
Parameters:
ISqlProvider
con : IDbConnection
sqlQuery : SqlQuery
baseAlias : string
baseTable : Table
alias : string
col : SqlColumnType
Returns: DbType voption
|
Check if we know primary column data type from cache. This helps matching parameter types if there are many different DBTypes mapped to same .NET type, like nvarchar and varchar to string.
|
Full Usage:
sortEntities entities
Parameters:
ConcurrentDictionary<SqlEntity, DateTime>
Returns: SqlEntity seq
Modifiers: inline |
deterministically sort entities before processing in a creation order, so that user can reliably save entities with foreign key relations
|