EFConcurrencyModeTest


ConcurrencyModeTester

Class used to test ConcurrencyMode settings in EDMX files.

Constructors

ConstructorDescription
new()
Signature: unit -> ConcurrencyModeTester
Go to GitHub source

Instance members

Instance memberDescription
BadConcurrencyModes(edmxFilePath)
Signature: edmxFilePath:string -> EntityProperty []

Find bad ConcurrencyMode settings in an EDMX file.

Parameters

  • edmxFilePath - The EDMX file to be read, e.g. "c:\foo.edmx".

Return Value

An EntityProperty array with all properties which have a bad ConcurrencyMode setting.

Go to GitHub source
BadConcurrencyModes(assembly)
Signature: assembly:Assembly -> EntityProperty []

Find bad ConcurrencyMode settings in all EDMX files embedded as resources in an assembly (this is how Visual Studio stores EDMX files by default).

Parameters

  • assembly - The assembly that contains one or several EDMX files.

Return Value

An EntityProperty array with all properties which have a bad ConcurrencyMode setting.

Go to GitHub source
BadConcurrencyModes(assembly, edmxName)
Signature: (assembly:Assembly * edmxName:string) -> EntityProperty []

Find bad ConcurrencyMode settings in a single EDMX file embedded as a resource in an assembly (this is how Visual Studio stores EDMX files by default).

Parameters

  • assembly - The assembly that contains the EDMX file.
  • edmxName - The name of the EDMX file without the ".edmx" extension.

Return Value

An EntityProperty array with all properties which have a bad ConcurrencyMode setting.

Go to GitHub source
BadConcurrencyModes(...)
Signature: (csdlDocument:XDocument * ssdlDocument:XDocument * mslDocument:XDocument) -> EntityProperty []

Find bad ConcurrencyMode settings in the associated CSDL, SSDL and MSL documents.

Parameters

  • csdlDocument - CSDL document.
  • ssdlDocument - SSDL document.
  • mslDocument - MSL document.

Return Value

An EntityProperty array with all properties which have a bad ConcurrencyMode setting.

Go to GitHub source
BadConcurrencyModes(...)
Signature: (csdlElement:XElement * ssdlElement:XElement * mslElement:XElement) -> EntityProperty []

Find bad ConcurrencyMode settings in the associated CSDL, SSDL and MSL elements.

Parameters

  • csdlElement - CSDL element.
  • ssdlElement - SSDL element.
  • mslElement - MSL element.

Return Value

An EntityProperty array with all properties which have a bad ConcurrencyMode setting.

Go to GitHub source
ConcurrencyColumnNamePatterns
Signature: string []

Regex patterns of the column names used for row versioning. Not needed if column types like rowversion or timestamp are used. The default is empty.

Go to GitHub source
ConcurrencyColumnNamePatterns()
Signature: unit -> string []

Regex patterns of the column names used for row versioning. Not needed if column types like rowversion or timestamp are used. The default is empty.

Go to GitHub source
FormatBadConcurrencyModes(...)
Signature: (entityProperties:EntityProperty []) -> string

Format a string with the results from BadConcurrencyModes(...). This is useful as output for your test runner, e.g. NUnit.

Parameters

  • entityProperties - The result from BadConcurrencyModes(...).

Return Value

The formatted string.

Go to GitHub source
RowVersionTypes
Signature: string []

Names of the types used by the database for row versioning. The default value is [|"timestamp"; "rowversion"|].

Go to GitHub source
RowVersionTypes()
Signature: unit -> string []

Names of the types used by the database for row versioning. The default value is [|"timestamp"; "rowversion"|].

Go to GitHub source

Static members

Static memberDescription
CsdlNs
Signature: string
Go to GitHub source
EdmxNs
Signature: string
Go to GitHub source
MslNs
Signature: string
Go to GitHub source
SsdlNs
Signature: string
Go to GitHub source
Fork me on GitHub