Export (0) Print
Expand All

ObjectDataSourceView Members

Supports the ObjectDataSource control and provides an interface for data-bound controls to perform data operations with business and data objects.

The following tables list the members exposed by the ObjectDataSourceView type.

  Name Description
Public method ObjectDataSourceView Initializes a new instance of the ObjectDataSourceView class.
Top

(see also Protected Properties )
  Name Description
Public property CanDelete Gets a value indicating whether the ObjectDataSourceView object that is associated with the current ObjectDataSource control supports the delete operation.
Public property CanInsert Gets a value indicating whether the ObjectDataSourceView object that is associated with the current ObjectDataSource control supports the insert operation.
Public property CanPage Gets a value indicating whether the ObjectDataSourceView object that is associated with the current ObjectDataSource control supports paging through the retrieved data.
Public property CanRetrieveTotalRowCount Gets a value indicating whether the ObjectDataSourceView object that is associated with the current ObjectDataSource control supports retrieving the total number of data rows, in addition to the set of data.
Public property CanSort Gets a value indicating whether the ObjectDataSourceView object that is associated with the current ObjectDataSource control supports a sorted view on the underlying data source.
Public property CanUpdate Gets a value indicating whether the ObjectDataSourceView object that is associated with the current ObjectDataSource control supports the update operation.
Public property ConflictDetection Gets or sets a value that determines how the ObjectDataSource control performs updates and deletes when data in a row in the underlying data storage changes during the time of the operation.
Public property ConvertNullToDBNull Gets or sets a value indicating whether Parameter values that are passed to an update, insert, or delete operation are automatically converted from a null reference (Nothing in Visual Basic) to the Value value.
Public property DataObjectTypeName Gets or sets the name of a class that the ObjectDataSource control uses for a parameter in a data operation. The ObjectDataSource control uses the specified class instead of the Parameter objects that are in the various parameters collections.
Public property DeleteMethod Gets or sets the name of the method or function that the ObjectDataSourceView object invokes to delete data.
Public property DeleteParameters Gets the parameters collection that contains the parameters that are used by the DeleteMethod method.
Public property EnablePaging Gets or sets a value indicating whether the data source control supports paging through the set of data that it retrieves.
Public property FilterExpression Gets or sets a filtering expression that is applied when the business object method that is identified by the SelectMethod property is called.
Public property FilterParameters Gets a collection of parameters that are associated with any parameter placeholders that are in the FilterExpression string.
Public property InsertMethod Gets or sets the name of the method or function that the ObjectDataSourceView object invokes to insert data.
Public property InsertParameters Gets the parameters collection that contains the parameters that are used by the InsertMethod method.
Public property MaximumRowsParameterName Gets or sets the name of the data retrieval method parameter that is used to indicate the number of records to retrieve for data source paging support.
Public property Name  Gets the name of the data source view.(inherited from DataSourceView)
Public property OldValuesParameterFormatString Gets or sets a format string to apply to the names of the parameters for original values that are passed to the Delete or Update methods.
Public property SelectCountMethod Gets or sets the name of the method or function that the ObjectDataSourceView control invokes to retrieve a row count.
Public property SelectMethod Gets or sets the name of the method or function that the ObjectDataSourceView control invokes to retrieve data.
Public property SelectParameters Gets the parameters collection containing the parameters that are used by the SelectMethod method.
Public property SortParameterName Gets or sets the name of the data retrieval method parameter that is used to specify a sort expression for data source sorting support.
Public property StartRowIndexParameterName Gets or sets the name of the data retrieval method parameter that is used to indicate the integer index of the first record to retrieve from the results set for data source paging support.
Public property TypeName Gets or sets the name of the class that the ObjectDataSource control represents.
Public property UpdateMethod Gets or sets the name of the method or function that the ObjectDataSourceView object invokes to update data.
Public property UpdateParameters Gets the parameters collection containing the parameters that are used by the UpdateMethod method.
Top

  Name Description
Protected property Events  Gets a list of event-handler delegates for the data source view.(inherited from DataSourceView)
Protected property IsTrackingViewState Gets a value indicating whether the ObjectDataSourceView object is saving changes to its view state.
Top

(see also Protected Methods )
  Name Description
Public method Delete Overloaded. Performs a delete operation by calling the business object method that is identified by the DeleteMethod property using any specified delete parameters.
Public method Equals  Overloaded. Determines whether two Object instances are equal. (inherited from Object)
Public method GetHashCode  Serves as a hash function for a particular type. (inherited from Object)
Public method GetType  Gets the Type of the current instance. (inherited from Object)
Public method Insert Overloaded. Performs an insert operation by calling the business object method that is identified by the InsertMethod property using any specified insert parameters.
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
Public method Select Overloaded. Retrieves data from the object that is identified by the TypeName property by calling the method that is identified by the SelectMethod property.
Public method ToString  Returns a String that represents the current Object. (inherited from Object)
Public method Update Overloaded. Performs an update operation by calling the business object method that is identified by the UpdateMethod property using any specified update parameters.
Top

  Name Description
Protected method ExecuteDelete Overridden. Performs a delete operation using the DeleteMethod method and the specified keys and oldValues collection.
Protected method ExecuteInsert Overridden. Performs an insert operation by calling the business object method that is identified by the InsertMethod property using the specified values collection.
Protected method ExecuteSelect Overridden. Retrieves data from the object that is identified by the TypeName property by calling the method that is identified by the SelectMethod property and passing any values in the SelectParameters collection.
Protected method ExecuteUpdate Overridden. Performs an update operation by calling the method that is identified by the UpdateMethod property and using any parameters that are supplied in the keys, values, or oldValues collections.
Protected method Finalize  Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object)
Protected method LoadViewState Restores previously saved view state for the data source view.
Protected method MemberwiseClone  Creates a shallow copy of the current Object. (inherited from Object)
Protected method OnDataSourceViewChanged  Raises the DataSourceViewChanged event. (inherited from DataSourceView)
Protected method OnDeleted Raises the Deleted event after the ObjectDataSourceView object has completed a delete operation.
Protected method OnDeleting Raises the Deleting event before the ObjectDataSourceView object attempts a delete operation.
Protected method OnFiltering Raises the Filtering event before the ObjectDataSourceView object attempts a filtering operation.
Protected method OnInserted Raises the Inserted event after the ObjectDataSourceView object has completed an insert operation.
Protected method OnInserting Raises the Inserting event before the ObjectDataSourceView object attempts an insert operation.
Protected method OnObjectCreated Raises the ObjectCreated event after the ObjectDataSourceView creates an instance of the object that is identified by the TypeName property.
Protected method OnObjectCreating Raises the ObjectCreating event before the ObjectDataSourceView object creates an instance of a business object to perform a data operation.
Protected method OnObjectDisposing Raises the ObjectDisposing event before the ObjectDataSourceView object discards an instantiated type.
Protected method OnSelected Raises the Selected event after the ObjectDataSourceView object has completed a data retrieval operation.
Protected method OnSelecting Raises the Selecting event before the ObjectDataSourceView object attempts a data retrieval operation.
Protected method OnUpdated Raises the Updated event after the ObjectDataSourceView object has completed an update operation.
Protected method OnUpdating Raises the Updating event before the ObjectDataSourceView object attempts an update operation.
Protected method RaiseUnsupportedCapabilityError  Called by the RaiseUnsupportedCapabilitiesError method to compare the capabilities requested for an ExecuteSelect operation against those that the view supports. (inherited from DataSourceView)
Protected method SaveViewState Saves the changes to the view state for the ObjectDataSourceView object since the time when the page was posted back to the server.
Protected method TrackViewState Causes the ObjectDataSourceView object to track changes to its view state so that the changes can be stored in the ViewState object for the control and persisted across requests for the same page.
Top

  Name Description
Public event DataSourceViewChanged  Occurs when the data source view has changed.(inherited from DataSourceView)
Public event Deleted Occurs when a Delete operation has completed.
Public event Deleting Occurs before a Delete operation.
Public event Filtering Occurs before a filter operation.
Public event Inserted Occurs when an Insert operation has completed.
Public event Inserting Occurs before an Insert operation.
Public event ObjectCreated Occurs after the ObjectDataSourceView object creates an instance of the type that is identified by the TypeName property.
Public event ObjectCreating Occurs before the ObjectDataSourceView object creates an instance of the type that is identified by the TypeName property.
Public event ObjectDisposing Occurs when the ObjectDataSourceView object discards an instance of an object that it has created.
Public event Selected Occurs when a data retrieval operation has completed.
Public event Selecting Occurs before a data retrieval operation.
Public event Updated Occurs when an Update operation has completed.
Public event Updating Occurs before an Update operation.
Top

Community Additions

ADD
Show:
© 2014 Microsoft