This documentation is archived and is not being maintained.
EntityDataSource Events
Visual Studio 2010
The EntityDataSource type exposes the following members.
| Name | Description | |
|---|---|---|
|
ContextCreated | Occurs when the EntityDataSource has finished creating the ObjectContext that is used to work with entity data objects. |
|
ContextCreating | Occurs when the EntityDataSource creates the ObjectContext that is used to work with entity data objects. |
|
ContextDisposing | Occurs before an ObjectContext is disposed of. |
|
DataBinding | Occurs when the server control binds to a data source. (Inherited from Control.) |
|
Deleted | Occurs after an object has been deleted from the data source. |
|
Deleting | Occurs before an object is deleted from the data source. |
|
Disposed | Occurs when a server control is released from memory, which is the last stage of the server control lifecycle when an ASP.NET page is requested. (Inherited from Control.) |
|
Init | Occurs when the server control is initialized, which is the first step in its lifecycle. (Inherited from Control.) |
|
Inserted | Occurs after a new object is created at the data source. |
|
Inserting | Occurs before a new object is persisted to the data source. |
|
Load | Occurs when the server control is loaded into the Page object. (Inherited from Control.) |
|
PreRender | Occurs after the Control object is loaded but prior to rendering. (Inherited from Control.) |
|
QueryCreated | Occurs after the EntityDataSource() creates an Entity SQL query that was specified during the configuration of the EntityDataSource control. |
|
Selected | Occurs after a query has been executed. |
|
Selecting | Occurs before a query is constructed and executed. |
|
Unload | Occurs when the server control is unloaded from memory. (Inherited from Control.) |
|
Updated | Occurs after changes to an object have been persisted to the data source. |
|
Updating | Occurs before changes to an object are persisted to the data source. |
| Name | Description | |
|---|---|---|
|
IDataSource::DataSourceChanged | Infrastructure. Occurs when a data source control has changed in a way that affects data-bound controls. (Inherited from DataSourceControl.) |
|
IDynamicDataSource::Exception | Occurs when validation fails in a partial methods or when an exception is raised. |
Show: