Namespace Microsoft.EntityFrameworkCore
Classes
- ChangeTrackerExtensions
Extension methods for ChangeTracker.
- ConventionEntityTypeExtensions
Extension methods for IConventionEntityType.
- DbContext
A DbContext instance represents a session with the database and can be used to query and save instances of your entities. DbContext is a combination of the Unit Of Work and Repository patterns.
- DbContextOptions
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.
- DbContextOptionsBuilder
Provides a simple API surface for configuring DbContextOptions. Databases (and other extensions) typically define extension methods on this object that allow you to configure the database connection (and other options) to be used for a context.
- DbContextOptionsBuilder<TContext>
Provides a simple API surface for configuring DbContextOptions<TContext>. Databases (and other extensions) typically define extension methods on this object that allow you to configure the database connection (and other options) to be used for a context.
- DbContextOptions<TContext>
The options to be used by a DbContext. You normally override OnConfiguring(DbContextOptionsBuilder) or use a DbContextOptionsBuilder<TContext> to create instances of this class and it is not designed to be directly constructed in your application code.
- DbFunctions
Provides CLR methods that get translated to database functions when used in LINQ to Entities queries. The methods on this class are accessed via Functions.
- DbFunctionsExtensions
Provides CLR methods that get translated to database functions when used in LINQ to Entities queries. The methods on this class are accessed via Functions.
- DbLoggerCategory
An API for getting logger categories in an Intellisense/tab-completion friendly manner.
- DbLoggerCategory.ChangeTracking
Logger category for messages from change detection and tracking.
- DbLoggerCategory.Database
Logger categories for messages related to database interactions.
- DbLoggerCategory.Database.Command
Logger category for command execution, including SQL sent to the database.
- DbLoggerCategory.Database.Connection
Logger category for messages related to connection operations.
- DbLoggerCategory.Database.Transaction
Logger category for messages related to transaction operations.
- DbLoggerCategory.Infrastructure
Logger category for miscellaneous messages from the Entity Framework infrastructure.
- DbLoggerCategory.Migrations
Logger category messages from Migrations.
- DbLoggerCategory.Model
Logger categories for messages related to model building and metadata.
- DbLoggerCategory.Model.Validation
Logger category for messages from model validation.
- DbLoggerCategory.Query
Logger category for messages related to queries, excluding the generated SQL, which is in the DbLoggerCategory.Database.Command category.
- DbLoggerCategory.Scaffolding
Logger category for messages from scaffolding/reverse engineering.
- DbLoggerCategory.Update
Logger category for messages related to SaveChanges(), excluding messages specifically relating to database interactions which are covered by the DbLoggerCategory.Database categories.
- DbSet<TEntity>
A DbSet<TEntity> can be used to query and save instances of
TEntity
. LINQ queries against a DbSet<TEntity> will be translated into queries against the database.
- DbUpdateConcurrencyException
An exception that is thrown when a concurrency violation is encountered while saving to the database. A concurrency violation occurs when an unexpected number of rows are affected during save. This is usually because the data in the database has been modified since it was loaded into memory.
- DbUpdateException
An exception that is thrown when an error is encountered while saving to the database.
- EF
Static methods that are useful in application code where there is not an EF type for the method to be accessed from. For example, referencing a shadow state property in a LINQ query.
- EntityFrameworkQueryableExtensions
Entity Framework LINQ related extension methods.
- EntityTypeConfigurationAttribute<TConfiguration, TEntity>
Specifies the configuration type for the entity type.
- EntityTypeExtensions
Entity type extension methods for IReadOnlyEntityType.
- ExecutionStrategyExtensions
Extension methods for IExecutionStrategy
- ModelBuilder
Provides a simple API surface for configuring a IMutableModel that defines the shape of your entities, the relationships between them, and how they map to the database.
- ModelConfigurationBuilder
Provides a simple API surface for setting defaults and configuring conventions before they run.
- ModelCreationDependencies
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.
- MutableEntityTypeExtensions
Extension methods for IMutableEntityType.
- PropertyBaseExtensions
Extension methods for IReadOnlyPropertyBase.
- SaveChangesEventArgs
Base event arguments for the
and events.
- SaveChangesFailedEventArgs
Event arguments for the SaveChangesFailed event.
- SavedChangesEventArgs
Event arguments for the SavedChanges event.
- SavingChangesEventArgs
Event arguments for the SavingChanges event.
Structs
- DbContextId
A unique identifier for the context instance and pool lease, if any.
Interfaces
- IDbContextFactory<TContext>
Defines a factory for creating DbContext instances.
- IEntityTypeConfiguration<TEntity>
Allows configuration for an entity type to be factored into a separate class, rather than in-line in OnModelCreating(ModelBuilder). Implement this interface, applying configuration for the entity in the Configure(EntityTypeBuilder<TEntity>) method, and then apply the configuration to the model using ApplyConfiguration<TEntity>(IEntityTypeConfiguration<TEntity>) in OnModelCreating(ModelBuilder).
Enums
- AutoTransactionBehavior
Indicates whether or not a transaction will be created automatically by SaveChanges() if a user transaction wasn't created via 'BeginTransaction' or provided via 'UseTransaction'.
- ChangeTrackingStrategy
Indicates how the context detects changes to properties for an instance of the entity type.
- EntityState
The state in which an entity is being tracked by a context.
- PropertyAccessMode
Pass a value from this enum to UsePropertyAccessMode(PropertyAccessMode), UsePropertyAccessMode(PropertyAccessMode), or UsePropertyAccessMode(PropertyAccessMode) to change whether the property or backing field will be used when reading and writing to a property or field.
- QueryTrackingBehavior
Indicates how the results of a query are tracked by the ChangeTracker.
- WarningBehavior
The runtime behavior of warnings generated by Entity Framework