Share via


ObjectContextOptions Class

Definition

Defines options that affect the behavior of the ObjectContext.

public sealed class ObjectContextOptions
type ObjectContextOptions = class
Public NotInheritable Class ObjectContextOptions
Inheritance
ObjectContextOptions

Properties

EnsureTransactionsForFunctionsAndCommands

Gets or sets the value that determines whether SQL functions and commands should be always executed in a transaction.

LazyLoadingEnabled

Gets or sets a Boolean value that determines whether related objects are loaded automatically when a navigation property is accessed.

ProxyCreationEnabled

Gets or sets a Boolean value that determines whether proxy instances are created for custom data classes that are persistence ignorant.

UseConsistentNullReferenceBehavior

Gets or sets a Boolean value that determines whether to use the consistent NullReference behavior.

UseCSharpNullComparisonBehavior

Gets or sets a Boolean value that determines whether to use the C# NullComparison behavior.

UseLegacyPreserveChangesBehavior

Gets or sets a Boolean value that determines whether to use the legacy PreserveChanges behavior.

Applies to