ModelDataSource ModelDataSource ModelDataSource ModelDataSource Class

Definition

The data source control used by data-bound controls to perform CRUD (create, read, update, delete) operations when model binding is in use.

public ref class ModelDataSource : System::Web::UI::IDataSource, System::Web::UI::IStateManager
public class ModelDataSource : System.Web.UI.IDataSource, System.Web.UI.IStateManager
type ModelDataSource = class
    interface IDataSource
    interface IStateManager
Public Class ModelDataSource
Implements IDataSource, IStateManager
Inheritance
ModelDataSourceModelDataSourceModelDataSourceModelDataSource
Implements

Constructors

ModelDataSource(Control) ModelDataSource(Control) ModelDataSource(Control) ModelDataSource(Control)

Initializes a new instance of the ModelDataSource class.

Properties

DataControl DataControl DataControl DataControl

Gets the data-bound control that is using this control as a data source when model binding is in use.

View View View View

Gets the default (and only) view object for this data source control.

Methods

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
IsTrackingViewState() IsTrackingViewState() IsTrackingViewState() IsTrackingViewState()

Returns a value that indicates whether the control is tracking view state.

LoadViewState(Object) LoadViewState(Object) LoadViewState(Object) LoadViewState(Object)

Loads the previously saved view state.

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
SaveViewState() SaveViewState() SaveViewState() SaveViewState()

Saves the state of the control.

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)
TrackViewState() TrackViewState() TrackViewState() TrackViewState()

Tracks view-state changes to the control so that they can be stored in the StateBag object.

UpdateProperties(String, String) UpdateProperties(String, String) UpdateProperties(String, String) UpdateProperties(String, String)

Updates the required properties for one-way data binding.

UpdateProperties(String, String, String, String, String, String) UpdateProperties(String, String, String, String, String, String) UpdateProperties(String, String, String, String, String, String) UpdateProperties(String, String, String, String, String, String)

Updates the required properties for two-way data binding.

Events

CallingDataMethods CallingDataMethods CallingDataMethods CallingDataMethods

Occurs when model binding is in use and data methods are being called.

Explicit Interface Implementations

IDataSource.DataSourceChanged IDataSource.DataSourceChanged IDataSource.DataSourceChanged IDataSource.DataSourceChanged

Occurs when the underlying data source has changed. The change may be due to a change in the control's properties, or a change in the data due to an edit action performed by the data source control.

IDataSource.GetView(String) IDataSource.GetView(String) IDataSource.GetView(String) IDataSource.GetView(String)

Returns the view.

IDataSource.GetViewNames() IDataSource.GetViewNames() IDataSource.GetViewNames() IDataSource.GetViewNames()

Gets the view names.

IStateManager.IsTrackingViewState IStateManager.IsTrackingViewState IStateManager.IsTrackingViewState IStateManager.IsTrackingViewState

Returns a value that indicates whether the control is tracking view state.

IStateManager.LoadViewState(Object) IStateManager.LoadViewState(Object) IStateManager.LoadViewState(Object) IStateManager.LoadViewState(Object)

Loads the previously saved view state.

IStateManager.SaveViewState() IStateManager.SaveViewState() IStateManager.SaveViewState() IStateManager.SaveViewState()

Saves the state of the control.

IStateManager.TrackViewState() IStateManager.TrackViewState() IStateManager.TrackViewState() IStateManager.TrackViewState()

Tracks view-state changes to the control so that they can be stored in the StateBag object.

Extension Methods

GetDefaultValues(IDataSource) GetDefaultValues(IDataSource) GetDefaultValues(IDataSource) GetDefaultValues(IDataSource)

Gets the collection of the default values for the specified data source.

GetMetaTable(IDataSource) GetMetaTable(IDataSource) GetMetaTable(IDataSource) GetMetaTable(IDataSource)

Gets the metadata for a table in the specified data source object.

TryGetMetaTable(IDataSource, MetaTable) TryGetMetaTable(IDataSource, MetaTable) TryGetMetaTable(IDataSource, MetaTable) TryGetMetaTable(IDataSource, MetaTable)

Determines whether table metadata is available.

Applies to