C# Class Nettiers.AdventureWorks.Web.Data.EntityDataSource.EntityDataSourceView

Supports the EntityDataSource control and provides an interface for data-bound controls to perform data operations with business and data objects.
Inheritance: System.Web.UI.DataSourceView
Datei anzeigen Open project: netTiers/netTiers

Private Properties

Property Type Description
DeepLoad void
Delete int
GetArgs Object[]
GetArgumentValues Object[]
GetArgumentValues Object[]
GetCurrentEntity Object
GetEntityId Object
GetEntityList IEnumerable
GetEntityList IEnumerable
GetInsertDateTimeNames String[]
GetNames String[]
GetNewEntity Object
GetPagedAndSortedData Object
GetTypes System.Type[]
GetUpdateDateTimeNames String[]
Insert int
OnAfterInserted void
OnAfterInserting void
OnAfterSelected void
OnAfterUpdated void
OnAfterUpdating void
OnDeleted void
OnDeleting void
OnInserted void
OnInserting void
OnSelected void
OnSelecting void
OnUpdated void
OnUpdating void
RaiseChangedEvent void
ResetPreviousValues void
SetEntityIndex void
SetPreviousValues void
Update int
UpdateEntityId void
ValidateEntity void

Public Methods

Method Description
EntityDataSourceView ( EntityDataSource owner, String viewName ) : System

Initializes a new instance of the EntityDataSourceView class.

Protected Methods

Method Description
ExecuteDelete ( IDictionary keys, IDictionary oldValues ) : int

Performs a delete operation on the list of data that the EntityDataSourceView object represents.

ExecuteInsert ( IDictionary values ) : int

Performs an insert operation on the list of data that the EntityDataSourceView object represents.

ExecuteSelect ( System.Web.UI.DataSourceSelectArguments arguments ) : IEnumerable

Gets a list of data from the underlying data storage.

ExecuteUpdate ( IDictionary keys, IDictionary values, IDictionary oldValues ) : int

Performs an update operation on the list of data that the EntityDataSourceView object represents.

Private Methods

Method Description
DeepLoad ( ) : void

Performs a DeepLoad operation for the current entity if it has not already been performed.

Delete ( Object entity ) : int

Performs a delete operation on the list of data that the EntityDataSourceView object represents.

GetArgs ( ) : Object[]
GetArgumentValues ( ) : Object[]
GetArgumentValues ( bool convertStringToGuid ) : Object[]
GetCurrentEntity ( ) : Object

Gets a specific entry from the cached list of entities based on the value of the EntityIndex property.

GetEntityId ( ) : Object
GetEntityList ( ) : IEnumerable

Gets a reference to the requested list of entities.

GetEntityList ( System.Web.UI.DataSourceSelectArguments arguments ) : IEnumerable

Gets a reference to the requested list of entities.

GetInsertDateTimeNames ( ) : String[]
GetNames ( String value ) : String[]
GetNewEntity ( ) : Object

Creates a new instance of the class specifed by the EntityType property.

GetPagedAndSortedData ( System.Web.UI.DataSourceSelectArguments arguments ) : Object
GetTypes ( ) : System.Type[]

Gets the types.

GetUpdateDateTimeNames ( ) : String[]
Insert ( IDictionary values ) : int

Performs an insert operation on the list of data that the EntityDataSourceView object represents.

OnAfterInserted ( LinkedDataSourceEventArgs e ) : void

Raises the AfterInserted event.

OnAfterInserting ( LinkedDataSourceEventArgs e ) : void

Raises the AfterInserting event.

OnAfterSelected ( LinkedDataSourceEventArgs e ) : void

Raises the AfterSelected event.

OnAfterUpdated ( LinkedDataSourceEventArgs e ) : void

Raises the AfterUpdated event.

OnAfterUpdating ( LinkedDataSourceEventArgs e ) : void

Raises the AfterUpdating event.

OnDeleted ( EntityDataSourceMethodEventArgs args ) : void

Raises the EntityDataSource.Deleted event.

OnDeleting ( EntityDataSourceMethodEventArgs args ) : void

Raises the EntityDataSource.Deleting event.

OnInserted ( EntityDataSourceMethodEventArgs args ) : void

Raises the EntityDataSource.Inserted event.

OnInserting ( EntityDataSourceMethodEventArgs args ) : void

Raises the EntityDataSource.Inserting event.

OnSelected ( EntityDataSourceMethodEventArgs args ) : void

Raises the EntityDataSource.Selected event.

OnSelecting ( EntityDataSourceSelectingEventArgs args ) : void

Raises the EntityDataSource.Selecting event.

OnUpdated ( EntityDataSourceMethodEventArgs args ) : void

Raises the EntityDataSource.Updated event.

OnUpdating ( EntityDataSourceMethodEventArgs args ) : void

Raises the EntityDataSource.Updating event.

RaiseChangedEvent ( ) : void

Raises the DataSourceView.OnDataSourceViewChanged event.

ResetPreviousValues ( ) : void
SetEntityIndex ( IEnumerable entityList, IDictionary keys ) : void
SetPreviousValues ( ) : void
Update ( Object entity, IDictionary values ) : int

Performs an update operation on the list of data that the EntityDataSourceView object represents.

UpdateEntityId ( IEnumerable entityList ) : void
ValidateEntity ( IEnumerable entityList ) : void

Method Details

EntityDataSourceView() public method

Initializes a new instance of the EntityDataSourceView class.
public EntityDataSourceView ( EntityDataSource owner, String viewName ) : System
owner EntityDataSource A reference to the EntityDataSource which created this instance.
viewName String The name of the view, which defaults to EntityView.
return System

ExecuteDelete() protected method

Performs a delete operation on the list of data that the EntityDataSourceView object represents.
protected ExecuteDelete ( IDictionary keys, IDictionary oldValues ) : int
keys IDictionary A System.Collections.IDictionary of object or /// row keys to be deleted by the ExecuteDelete operation.
oldValues IDictionary An System.Collections.IDictionary of name/value /// pairs that represent data elements and their original values.
return int

ExecuteInsert() protected method

Performs an insert operation on the list of data that the EntityDataSourceView object represents.
protected ExecuteInsert ( IDictionary values ) : int
values IDictionary A System.Collections.IDictionary of /// name/value pairs used during an insert operation.
return int

ExecuteSelect() protected method

Gets a list of data from the underlying data storage.
protected ExecuteSelect ( System.Web.UI.DataSourceSelectArguments arguments ) : IEnumerable
arguments System.Web.UI.DataSourceSelectArguments A System.Web.UI.DataSourceSelectArguments that /// is used to request operations on the data beyond basic data retrieval.
return IEnumerable

ExecuteUpdate() protected method

Performs an update operation on the list of data that the EntityDataSourceView object represents.
protected ExecuteUpdate ( IDictionary keys, IDictionary values, IDictionary oldValues ) : int
keys IDictionary An System.Collections.IDictionary of object or /// row keys to be updated by the update operation.
values IDictionary An System.Collections.IDictionary of name/value /// pairs that represent data elements and their original values.
oldValues IDictionary An System.Collections.IDictionary of name/value /// pairs that represent data elements and their new values.
return int