This topic has not yet been rated - Rate this topic

DbDataController<TContext> Class

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

DataController base class for use with LINQ To Entities Code First data models.

System.Object
  System.Web.Http.ApiController
    System.Web.Http.Data.DataController
      System.Web.Http.Data.EntityFramework.DbDataController<TContext>

Namespace:  System.Web.Http.Data.EntityFramework
Assembly:  System.Web.Http.Data.EntityFramework (in System.Web.Http.Data.EntityFramework.dll)
[DbMetadataProviderAttribute]
public abstract class DbDataController<TContext> : DataController
where TContext : new(), DbContext

Type Parameters

TContext

The DbDataController<TContext> type exposes the following members.

  NameDescription
Protected methodDbDataController<TContext>Initializes a new instance of the DbDataController<TContext> class.
Top
  NameDescription
Protected propertyActionContextGets the HttpActionContext for the currently executing action. (Inherited from DataController.)
Protected propertyChangeSetGets the current ChangeSet. (Inherited from DataController.)
Public propertyConfiguration (Inherited from ApiController.)
Public propertyControllerContext (Inherited from ApiController.)
Protected propertyDbContextGets the DbContext.
Protected propertyDescriptionGets the DataControllerDescription for this DataController. (Inherited from DataController.)
Public propertyModelState (Inherited from ApiController.)
Public propertyRequest (Inherited from ApiController.)
Public propertyUrl (Inherited from ApiController.)
Top
  NameDescription
Protected methodAuthorizeChangeSetVerifies that the user is authorized to submit the current ChangeSet. (Inherited from DataController.)
Protected methodCreateDbContextReturns the DbContext object.
Protected methodDeleteEntityDeletes an entity from the DbContext, ensuring that its EntityState is Deleted.
Public methodDispose() (Inherited from ApiController.)
Protected methodDispose(Boolean)Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Overrides ApiController.Dispose(Boolean).)
Public methodEqualsDetermines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public methodExecuteAsyncExecutes data controller in an asynchronous manner. (Inherited from DataController.)
Protected methodExecuteChangeSetInvokes the action for each operation in the current ChangeSet. (Inherited from DataController.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodInitializeInitializes the data controller. (Overrides DataController.Initialize(HttpControllerContext).)
Protected methodInsertEntityInserts an entity into the DbContext, ensuring its EntityState is Added.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Protected methodPersistChangeSetFinalizes changes after all the operations in the specified changeset have been invoked. (Overrides DataController.PersistChangeSet().)
Protected methodResolveConflictsFinalizes changes after all the operations in the specified changeset have been invoked.
Public methodSubmit Performs the operations indicated by the specified ChangeSet by invoking the corresponding actions for each. (Inherited from DataController.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Protected methodUpdateEntityUpdates an entity in the DbContext, ensuring it is treated as a modified entity.
Protected methodValidateChangeSetValidates the current ChangeSet. (Inherited from DataController.)
Top
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.