<PackageReference Include="Relativity.Server.Utility.SDK" Version="5000.0.0" />

kCura.Data.RowDataGateway.Context

Provides a standard implementation for accessing SQL Server.
public const string CANCELLATION_ERROR_MESSAGE = "Operation cancelled by user."

public const string CONNECTION_POOL_ERROR_MESSAGE = "Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached."

public const string QUERY_HINT_ERROR_MESSAGE = "Query processor could not produce a query plan because of the hints defined in this query. Resubmit the query without specifying any hints and without using SET FORCEPLAN."

public const string ZOMBIE_CHECK_ERROR_MESSAGE = "This SqlTransaction has completed; it is no longer usable."

public ILogGateway LogGateway { get; set; }

Gets or sets the current ILogGateway.

public Context()

Initializes a new instance of Context using the configured connection string.

public Context(ConnectionData connectionData)

Initializes a new instance of Context using the provided connection data.

public Context(string connectionString)

Initializes a new instance of Context using the provided connection string.

public Context(string server, string login, string password)

Initializes a new instance of Context using the provided server name, username, and password.

public Context(string server, string database, string login, string password)

Initializes a new instance of Context using the provided server name, database name, username, and password.

public Context(ISqlConnectionProvider connectionProvider)

public static CommandBehavior CalculateCommandBehaviorForReader(IDbCommand command, bool sequentialAccess)

Calculate the value of the CommandBehavior that should be used by ExecuteReader.

public static bool InitializeLogProvider(Func<ILogGateway> provider)

Sets the log provider to the provided provider.

Gets the state of the underlying SqlConnection.