Share via


DbContextExtensions Class

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Contains DbContext extension methods.

Inheritance Hierarchy

System.Object
  System.Web.Http.Data.EntityFramework.DbContextExtensions

Namespace:  System.Web.Http.Data.EntityFramework
Assembly:  System.Web.Http.Data.EntityFramework (in System.Web.Http.Data.EntityFramework.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public NotInheritable Class DbContextExtensions
public static class DbContextExtensions
[ExtensionAttribute]
public ref class DbContextExtensions abstract sealed
[<AbstractClass>]
[<Sealed>]
type DbContextExtensions =  class end
public final class DbContextExtensions

Methods

  Name Description
Public methodStatic member AttachAsModified(DbSet, Object, DbContext) Attaches the specified entity as modified.
Public methodStatic member AttachAsModified(DbSet, Object, Object, DbContext) Attaches the specified entity as modified, with the specified original state.
Public methodStatic member AttachAsModified<TEntity>(DbSet<TEntity>, TEntity, DbContext) Attaches the specified entity as modified.
Public methodStatic member AttachAsModified<TEntity>(DbSet<TEntity>, TEntity, TEntity, DbContext) Attaches the specified entity as modified, with the specified original state.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

System.Web.Http.Data.EntityFramework Namespace