Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

EntityDataSource Events

The EntityDataSource type exposes the following members.

  NameDescription
Public event ContextCreated Occurs when the EntityDataSource has finished creating the ObjectContext that is used to work with entity data objects.
Public event ContextCreating Occurs when the EntityDataSource creates the ObjectContext that is used to work with entity data objects.
Public event ContextDisposing Occurs before an ObjectContext is disposed of.
Public event DataBinding Occurs when the server control binds to a data source. (Inherited from Control.)
Public event Deleted Occurs after an object has been deleted from the data source.
Public event Deleting Occurs before an object is deleted from the data source.
Public event 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.)
Public event Init Occurs when the server control is initialized, which is the first step in its lifecycle. (Inherited from Control.)
Public event Inserted Occurs after a new object is created at the data source.
Public event Inserting Occurs before a new object is persisted to the data source.
Public event Load Occurs when the server control is loaded into the Page object. (Inherited from Control.)
Public event PreRender Occurs after the Control object is loaded but prior to rendering. (Inherited from Control.)
Public event QueryCreated Occurs after the EntityDataSource() creates an Entity SQL query that was specified during the configuration of the EntityDataSource control.
Public event Selected Occurs after a query has been executed.
Public event Selecting Occurs before a query is constructed and executed.
Public event Unload Occurs when the server control is unloaded from memory. (Inherited from Control.)
Public event Updated Occurs after changes to an object have been persisted to the data source.
Public event Updating Occurs before changes to an object are persisted to the data source.
Top
  NameDescription
Explicit interface implemetation Private event IDataSource.DataSourceChanged Infrastructure. Occurs when a data source control has changed in a way that affects data-bound controls. (Inherited from DataSourceControl.)
Explicit interface implemetation Private event IDynamicDataSource.Exception Occurs when validation fails in a partial methods or when an exception is raised.
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.