DbContextOptions Class
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.
The options to be used by a DbContext. You normally override OnConfiguring(DbContextOptionsBuilder) or use a DbContextOptionsBuilder to create instances of this class and it is not designed to be directly constructed in your application code.
public abstract class DbContextOptions : Microsoft.EntityFrameworkCore.Infrastructure.IDbContextOptions
type DbContextOptions = class
interface IDbContextOptions
Public MustInherit Class DbContextOptions
Implements IDbContextOptions
- Inheritance
-
DbContextOptions
- Derived
- Implements
See Using DbContextOptions for more information and examples.
Db |
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release. |
Db |
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release. |
Db |
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release. |
Context |
The type of context that these options are for. Will return DbContext if the options are not built for a specific derived context. |
Extensions |
Gets the extensions that store the configured options. |
Extensions |
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release. |
Is |
Returns |
Equals(Db |
Determines whether the specified object is equal to the current object. |
Equals(Object) | Determines whether the specified object is equal to the current object. |
Find |
Gets the extension of the specified type. Returns |
Freeze() |
Specifies that no further configuration of this options object should occur. |
Get |
Gets the extension of the specified type. Throws if no extension of the specified type is configured. |
Get |
Serves as the default hash function. |
With |
Adds the given extension to the underlying options and creates a new DbContextOptions with the extension added. |
Product | Versions |
---|---|
Entity Framework Core | 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0 |
Entity Framework feedback
Entity Framework is an open source project. Select a link to provide feedback: