Breyta

Deila með


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
ModelDataSource
Implements

Constructors

ModelDataSource(Control)

Initializes a new instance of the ModelDataSource class.

Properties

DataControl

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

View

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

Methods

Equals(Object)

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

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
IsTrackingViewState()

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

LoadViewState(Object)

Loads the previously saved view state.

MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
SaveViewState()

Saves the state of the control.

ToString()

Returns a string that represents the current object.

(Inherited from Object)
TrackViewState()

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

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

Updates the required properties for two-way data binding.

UpdateProperties(String, String)

Updates the required properties for one-way data binding.

Events

CallingDataMethods

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

Explicit Interface Implementations

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)

Returns the view.

IDataSource.GetViewNames()

Gets the view names.

IStateManager.IsTrackingViewState

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

IStateManager.LoadViewState(Object)

Loads the previously saved view state.

IStateManager.SaveViewState()

Saves the state of the control.

IStateManager.TrackViewState()

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

Extension Methods

GetDefaultValues(IDataSource)

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

GetMetaTable(IDataSource)

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

TryGetMetaTable(IDataSource, MetaTable)

Determines whether table metadata is available.

Applies to