ObjectContextOptions ObjectContextOptions ObjectContextOptions ObjectContextOptions Class

Definition

Defines options that affect the behavior of the ObjectContext.

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

Properties

LazyLoadingEnabled LazyLoadingEnabled LazyLoadingEnabled LazyLoadingEnabled

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

ProxyCreationEnabled ProxyCreationEnabled ProxyCreationEnabled ProxyCreationEnabled

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

UseConsistentNullReferenceBehavior UseConsistentNullReferenceBehavior UseConsistentNullReferenceBehavior UseConsistentNullReferenceBehavior

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

UseCSharpNullComparisonBehavior UseCSharpNullComparisonBehavior UseCSharpNullComparisonBehavior UseCSharpNullComparisonBehavior

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

UseLegacyPreserveChangesBehavior UseLegacyPreserveChangesBehavior UseLegacyPreserveChangesBehavior UseLegacyPreserveChangesBehavior

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

Methods

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to