DataController Class
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
DataController extends the base ApiController by adding higher level application patterns and features to facilitate the development of CRUD centric controllers.
Inheritance Hierarchy
System.Object
System.Web.Http.ApiController
System.Web.Http.Data.DataController
System.Web.Http.Data.EntityFramework.DbDataController<TContext>
System.Web.Http.Data.EntityFramework.LinqToEntitiesDataController<TContext>
Namespace: System.Web.Http.Data
Assembly: System.Web.Http.Data (in System.Web.Http.Data.dll)
Syntax
'Declaration
<HttpControllerConfigurationAttribute(HttpActionInvoker := GetType(DataControllerActionInvoker), _
HttpActionSelector := GetType(DataControllerActionSelector))> _
Public MustInherit Class DataController _
Inherits ApiController
[HttpControllerConfigurationAttribute(HttpActionInvoker = typeof(DataControllerActionInvoker), HttpActionSelector = typeof(DataControllerActionSelector))]
public abstract class DataController : ApiController
[HttpControllerConfigurationAttribute(HttpActionInvoker = typeof(DataControllerActionInvoker), HttpActionSelector = typeof(DataControllerActionSelector))]
public ref class DataController abstract : public ApiController
[<AbstractClass>]
[<HttpControllerConfigurationAttribute(HttpActionInvoker = typeof(DataControllerActionInvoker), HttpActionSelector = typeof(DataControllerActionSelector))>]
type DataController =
class
inherit ApiController
end
public abstract class DataController extends ApiController
The DataController type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
![]() |
DataController | Initializes a new instance of the DataController class. |
Top
Properties
| Name | Description | |
|---|---|---|
![]() |
ActionContext | Gets the HttpActionContext for the currently executing action. |
![]() |
ChangeSet | Gets the current ChangeSet. |
![]() |
Configuration | (Inherited from ApiController.) |
![]() |
ControllerContext | (Inherited from ApiController.) |
![]() |
Description | Gets the DataControllerDescription for this DataController. |
![]() |
ModelState | (Inherited from ApiController.) |
![]() |
Request | (Inherited from ApiController.) |
![]() |
Url | (Inherited from ApiController.) |
Top
Methods
| Name | Description | |
|---|---|---|
![]() |
AuthorizeChangeSet | Verifies that the user is authorized to submit the current ChangeSet. |
![]() |
Dispose() | (Inherited from ApiController.) |
![]() |
Dispose(Boolean) | (Inherited from ApiController.) |
![]() |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() |
ExecuteAsync | Executes data controller in an asynchronous manner. (Overrides ApiController.ExecuteAsync(Void, HttpResponseMessage).) |
![]() |
ExecuteChangeSet | Invokes the action for each operation in the current ChangeSet. |
![]() |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() |
GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() |
Initialize | Initializes data controller. (Overrides ApiController.Initialize(HttpControllerContext).) |
![]() |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() |
PersistChangeSet | Finalizes changes after all the operations in the current ChangeSet have been invoked. |
![]() |
Submit | Performs the operations indicated by the specified ChangeSet by invoking the corresponding actions for each. |
![]() |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() |
ValidateChangeSet | Validates the current ChangeSet. |
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.
.gif)
.gif)
.gif)
.gif)