SQLProvider

SqlEntity Type

Constructors

Constructor Description

SqlEntity(dc, tableName, columns, activeColumnCount)

Full Usage: SqlEntity(dc, tableName, columns, activeColumnCount)

Parameters:
Returns: SqlEntity
dc : ISqlDataContext
tableName : string
columns : ColumnLookup
activeColumnCount : int
Returns: SqlEntity

Instance members

Instance member Description

this.Clone

Full Usage: this.Clone

Returns: SqlEntity

Makes a copy of entity (database row), which is a new row with the same columns and values (except Id) If column primaty key is something else and not-auto-generated, then, too bad...

Returns: SqlEntity

this.CloneTo

Full Usage: this.CloneTo

Parameters:
Returns: SqlEntity

Attach/copy entity to a different data-context. Second parameter: SQL UPDATE or INSERT clause? UPDATE: Updates the exising database entity with the values that this entity contains. INSERT: Makes a copy of entity (database row), which is a new row with the same columns and values (except Id)

secondContext : ISqlDataContext
itemExistsAlready : bool
Returns: SqlEntity

this.ColumnValues

Full Usage: this.ColumnValues

Returns: (string * obj) seq
Returns: (string * obj) seq

this.ColumnValuesWithDefinition

Full Usage: this.ColumnValuesWithDefinition

Returns: (string * obj * Column option) seq
Returns: (string * obj * Column option) seq

this.DataContext

Full Usage: this.DataContext

Returns: ISqlDataContext
Returns: ISqlDataContext

this.Delete

Full Usage: this.Delete

this.HasColumn

Full Usage: this.HasColumn

Parameters:
Returns: bool
key : string
?comparison : StringComparison
Returns: bool

this.HasValue

Full Usage: this.HasValue

Parameters:
    key : string

Returns: bool
key : string
Returns: bool

this.MapTo

Full Usage: this.MapTo

Parameters:
    ?propertyTypeMapping : string * obj -> obj

Returns: 'a

Maps database entity class to the type provided in generic attribute. You can define more detailed mapping via MappedColumnAttribute or propertyTypeMapping

?propertyTypeMapping : string * obj -> obj
Returns: 'a

this.OnConflict

Full Usage: this.OnConflict

Determines what should happen when saving this entity if it is newly-created but another entity with the same primary key already exists

this.SetColumn

Full Usage: this.SetColumn

Parameters:
    key : string
    value : 't

Prefer e.Column <- "x" over this method. This method should be only used if you need a dynamic column name.

key : string
value : 't

this.SetData

Full Usage: this.SetData

Parameters:
    data : (string * 'a) seq

data : (string * 'a) seq

this._State

Full Usage: this._State

Internal state. Modifying not recommended!

Type something to start searching.