ModelDataSourceView Class

.NET Framework (current version)
 

Represents a single view of a ModelDataSource control.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

System.Object
  System.Web.UI.DataSourceView
    System.Web.UI.WebControls.ModelDataSourceView

public class ModelDataSourceView : DataSourceView, IStateManager

NameDescription
System_CAPS_pubmethodModelDataSourceView(ModelDataSource)

Initializes a new instance of the ModelDataSourceView class.

NameDescription
System_CAPS_pubpropertyCanDelete

Gets a value that indicates whether the ModelDataSourceView object that is associated with the current ModelDataSource control supports the delete operation.(Overrides DataSourceView.CanDelete.)

System_CAPS_pubpropertyCanInsert

Gets a value that indicates whether the ModelDataSourceView object that is associated with the current ModelDataSource control supports the insert operation.(Overrides DataSourceView.CanInsert.)

System_CAPS_pubpropertyCanPage

Gets a value that indicates whether the ModelDataSourceView object that is associated with the current ModelDataSource control supports paging through the retrieved data.(Overrides DataSourceView.CanPage.)

System_CAPS_pubpropertyCanRetrieveTotalRowCount

Gets a value that indicates whether the ModelDataSourceView object that is associated with the current ModelDataSource control supports retrieving the total number of data rows, in addition to the set of data.(Overrides DataSourceView.CanRetrieveTotalRowCount.)

System_CAPS_pubpropertyCanSort

Gets a value that indicates whether the ModelDataSourceView object that is associated with the current ModelDataSource control supports a sorted view on the underlying data source.(Overrides DataSourceView.CanSort.)

System_CAPS_pubpropertyCanUpdate

Gets a value that indicates whether the ModelDataSourceView object that is associated with the current ModelDataSource control supports the update operation.(Overrides DataSourceView.CanUpdate.)

System_CAPS_pubpropertyDataKeyName

Gets the first item in the DataKeyNames array of the data-bound control if the data-bound control is a FormView, ListView, GridView, or DetailsView control.

System_CAPS_pubpropertyDeleteMethod

Gets or sets the name of the method that the ModelDataSourceView object invokes to delete data.

System_CAPS_protpropertyEvents

Gets a list of event-handler delegates for the data source view.(Inherited from DataSourceView.)

System_CAPS_pubpropertyInsertMethod

Gets or sets the name of the method that the ModelDataSourceView object invokes to insert data.

System_CAPS_pubpropertyModelTypeName

Gets the data type name for the data bound control.

System_CAPS_pubpropertyName

Gets the name of the data source view.(Inherited from DataSourceView.)

System_CAPS_pubpropertySelectMethod

Gets or sets the name of the method that the ModelDataSourceView control invokes to retrieve data.

System_CAPS_pubpropertyUpdateMethod

Gets or sets the name of the method that the ModelDataSourceView object invokes to update data.

NameDescription
System_CAPS_pubmethodCanExecute(String)

Determines whether the specified command can be executed.(Inherited from DataSourceView.)

System_CAPS_protmethodCreateSelectResult(Object)

Returns the result of a Select operation after converting it to an IEnumerable collection if it is not already one.

System_CAPS_pubmethodDelete(IDictionary, IDictionary, DataSourceViewOperationCallback)
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodEvaluateDeleteMethodParameters(IDictionary, IDictionary)

Invokes the Delete method and gets the result.

System_CAPS_protmethodEvaluateInsertMethodParameters(IDictionary)

Invokes the insert method.

System_CAPS_protmethodEvaluateMethodParameters(DataSourceOperation, ModelDataSourceMethod, IDictionary)

Evaluates the method parameters for model binding, using the data source operation, the data source method object, and the control values.

System_CAPS_protmethodEvaluateMethodParameters(DataSourceOperation, ModelDataSourceMethod, IDictionary, Boolean)

Evaluates the method parameters for model binding, using the data source operation, the data source method object, the control values, and a value that indicates whether this method is called in the page's LoadComplete event handler.

System_CAPS_protmethodEvaluateSelectMethodParameters(DataSourceSelectArguments, DataSourceSelectResultProcessingOptions)

Evaluates the select method parameters and also determines the options for processing the select result, such as auto paging and sorting behavior.

System_CAPS_protmethodEvaluateUpdateMethodParameters(IDictionary, IDictionary, IDictionary)

Invokes the Update method and gets the result.

System_CAPS_protmethodExecuteCommand(String, IDictionary, IDictionary)

Executes the specified command.(Inherited from DataSourceView.)

System_CAPS_pubmethodExecuteCommand(String, IDictionary, IDictionary, DataSourceViewOperationCallback)

Executes the specified command.(Inherited from DataSourceView.)

System_CAPS_protmethodExecuteDelete(IDictionary, IDictionary)

Performs a delete operation using the DeleteMethod method.(Overrides DataSourceView.ExecuteDelete(IDictionary, IDictionary).)

System_CAPS_protmethodExecuteInsert(IDictionary)

Performs an insert operation using the InsertMethod method.(Overrides DataSourceView.ExecuteInsert(IDictionary).)

System_CAPS_protmethodExecuteSelect(DataSourceSelectArguments)

Performs a select operation using the SelectMethod method.(Overrides DataSourceView.ExecuteSelect(DataSourceSelectArguments).)

System_CAPS_protmethodExecuteUpdate(IDictionary, IDictionary, IDictionary)

Performs an update operation using the UpdateMethod method.(Overrides DataSourceView.ExecuteUpdate(IDictionary, IDictionary, IDictionary).)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_protmethodFindMethod(String)

Finds the method to be executed.

System_CAPS_protmethodGetDeleteMethodResult(IDictionary, IDictionary)

Invokes the delete method and gets the result.

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_protmethodGetInsertMethodResult(IDictionary)

Invokes the insert method and gets the result.

System_CAPS_protmethodGetSelectMethodResult(DataSourceSelectArguments)

Invokes the select method and gets the result.

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodGetUpdateMethodResult(IDictionary, IDictionary, IDictionary)

Invokes the update method and gets the result.

System_CAPS_pubmethodInsert(IDictionary, DataSourceViewOperationCallback)

Inserts a method and gets the result.(Overrides DataSourceView.Insert(IDictionary, DataSourceViewOperationCallback).)

System_CAPS_protmethodInvokeMethod(ModelDataSourceMethod)

Invokes a data method.

System_CAPS_protmethodIsTrackingViewState()

Returns a value that indicates whether the control stores state in view state.

System_CAPS_protmethodLoadViewState(Object)

Restores previously saved view state for the data source view.

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_protmethodOnCallingDataMethods(CallingDataMethodsEventArgs)

Raises the CallingDataMethods event.

System_CAPS_protmethodOnDataSourceViewChanged(EventArgs)

Raises the DataSourceViewChanged event.(Inherited from DataSourceView.)

System_CAPS_protmethodProcessSelectMethodResult(DataSourceSelectArguments, DataSourceSelectResultProcessingOptions, ModelDataMethodResult)

Performs operations on the select method result like auto paging and sorting if applicable.

System_CAPS_protmethodRaiseUnsupportedCapabilityError(DataSourceCapabilities)

Called by the RaiseUnsupportedCapabilitiesError method to compare the capabilities requested for an ExecuteSelect operation against those that the view supports.(Inherited from DataSourceView.)

System_CAPS_protmethodSaveViewState()

Saves the changes to the view state for the ModelDataSourceView object since the time when the page was posted back to the server.

System_CAPS_pubmethodSelect(DataSourceSelectArguments, DataSourceViewSelectCallback)
System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

System_CAPS_protmethodTrackViewState()

Causes the ModelDataSourceView 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.

System_CAPS_pubmethodUpdate(IDictionary, IDictionary, IDictionary, DataSourceViewOperationCallback)

Updates the specified methods using the values provided in the parameters.(Overrides DataSourceView.Update(IDictionary, IDictionary, IDictionary, DataSourceViewOperationCallback).)

System_CAPS_pubmethodUpdateProperties(String, String, String, String, String, String)

Updates the specified properties using the values provided in the parameters.

NameDescription
System_CAPS_pubeventCallingDataMethods

Occurs when data methods are being called.

System_CAPS_pubeventDataSourceViewChanged

Occurs when the data source view has changed.(Inherited from DataSourceView.)

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodIStateManager.LoadViewState(Object)

This API supports the product infrastructure and is not intended to be used directly from your code. Loads the server control’s previously saved view state to the control.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIStateManager.SaveViewState()

This API supports the product infrastructure and is not intended to be used directly from your code. Saves the changes to a server control’s view state to an Object.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIStateManager.TrackViewState()

This API supports the product infrastructure and is not intended to be used directly from your code. Instructs the server control to track changes to its view state.

System_CAPS_pubinterfaceSystem_CAPS_privpropertyIStateManager.IsTrackingViewState

Gets a value indicating whether a server control is tracking its view state changes.

For a tutorial series on using model binding with Web Forms, see Model Binding and Web Forms.

.NET Framework
Available since 4.5

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: