Class CRUDOperationCallContext
Establishes an async-safe context which surrounds CRUD operations. You can derive your own classes, the .ctor must be chained. The context flows between async operations and can be nested. Logical flow must be observed: a call to .ctor must be balanced with eventual call to .Dispose() (which may be async). This class is used to pass some out-of-band information to CRUD operations without changing the caller interface, i.e. to swap database connection string
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Azos.Data.Access
Assembly: Azos.dll
Syntax
public class CRUDOperationCallContext : DisposableObject, IDisposable
Constructors
CRUDOperationCallContext()
Declaration
public CRUDOperationCallContext()
Properties
ConnectString
Used to override store's default database connection string
Declaration
public string ConnectString { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Current
Returns the current set CRUDOperationCallContext or null
Declaration
public static CRUDOperationCallContext Current { get; }
Property Value
Type | Description |
---|---|
CRUDOperationCallContext |
DatabaseName
Used to override store's default database name - used by some stores, others take db name form connect string
Declaration
public string DatabaseName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
Destructor()
Declaration
protected override void Destructor()
Overrides
Implements
System.IDisposable