Creates a new domain context
Namespace: BrightstarDB.EntityFrameworkAssembly: BrightstarDB (in BrightstarDB.dll) Version: 1.9.0.0 (1.9.0.0)
Syntax
C# |
---|
protected BrightstarEntityContext(
string connectionString,
Nullable<bool> enableOptimisticLocking = null,
string updateGraphUri = null,
IEnumerable<string> datasetGraphUris = null,
string versionGraphUri = null
) |
Visual Basic |
---|
Protected Sub New (
connectionString As String,
Optional enableOptimisticLocking As Nullable(Of Boolean) = Nothing,
Optional updateGraphUri As String = Nothing,
Optional datasetGraphUris As IEnumerable(Of String) = Nothing,
Optional versionGraphUri As String = Nothing
) |
Visual C++ |
---|
protected:
BrightstarEntityContext(
String^ connectionString,
Nullable<bool> enableOptimisticLocking = nullptr,
String^ updateGraphUri = nullptr,
IEnumerable<String^>^ datasetGraphUris = nullptr,
String^ versionGraphUri = nullptr
) |
F# |
---|
new :
connectionString : string *
?enableOptimisticLocking : Nullable<bool> *
?updateGraphUri : string *
?datasetGraphUris : IEnumerable<string> *
?versionGraphUri : string
(* Defaults:
let _enableOptimisticLocking = defaultArg enableOptimisticLocking null
let _updateGraphUri = defaultArg updateGraphUri null
let _datasetGraphUris = defaultArg datasetGraphUris null
let _versionGraphUri = defaultArg versionGraphUri null
*)
-> BrightstarEntityContext |
Parameters
- connectionString
- Type: System..::..String
The connection string that will be used to connect to an existing BrightstarDB store
- enableOptimisticLocking (Optional)
- Type: System..::..Nullable<(Of <(<'Boolean>)>)>
Optional parameter to override the optimistic locking configuration specified in the connection string
- updateGraphUri (Optional)
- Type: System..::..String
OPTIONAL: The URI identifier of the graph to be updated with any new triples created by operations on the store. If
not defined, the default graph in the store will be updated.
- datasetGraphUris (Optional)
- Type: System.Collections.Generic..::..IEnumerable<(Of <(<'String>)>)>
OPTIONAL: The URI identifiers of the graphs that will be queried to retrieve entities and their properties. See
the remarks below.
- versionGraphUri (Optional)
- Type: System..::..String
OPTIONAL: The URI identifier of the graph that contains version number statements for entities.
If not defined, the updateGraphUri will be used.
Remarks
See Also