DbContextConfiguration Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returned by the Configuration method of DbContext to provide access to configuration options for the context.
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification="Casing is intentional")]
public class DbContextConfiguration
public class DbContextConfiguration
type DbContextConfiguration = class
Public Class DbContextConfiguration
- Inheritance
-
DbContextConfiguration
- Attributes
Properties
AutoDetectChangesEnabled |
Gets or sets a value indicating whether the DetectChanges() method is called automatically by methods of DbContext and related classes. The default value is true. |
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 value indicating whether lazy loading of relationships exposed as navigation properties is enabled. Lazy loading is enabled by default. |
ProxyCreationEnabled |
Gets or sets a value indicating whether or not the framework will create instances of dynamically generated proxy classes whenever it creates an instance of an entity type. Note that even if proxy creation is enabled with this flag, proxy instances will only be created for entity types that meet the requirements for being proxied. Proxy creation is enabled by default. |
UseDatabaseNullSemantics |
Gets or sets a value indicating whether database null semantics are exhibited when comparing two operands, both of which are potentially nullable. The default value is false. For example (operand1 == operand2) will be translated as: (operand1 = operand2) if UseDatabaseNullSemantics is true, respectively (((operand1 = operand2) AND (NOT (operand1 IS NULL OR operand2 IS NULL))) OR ((operand1 IS NULL) AND (operand2 IS NULL))) if UseDatabaseNullSemantics is false. |
ValidateOnSaveEnabled |
Gets or sets a value indicating whether tracked entities should be validated automatically when SaveChanges() is invoked. The default value is true. |
Methods
Equals(Object) | Determines whether the specified object is equal to the current object. |
GetHashCode() | Serves as the default hash function. |
GetType() |
Gets the Type of the current instance. |
ToString() | Returns a string that represents the current object. |
Applies to
Entity Framework