RemoteDataSourceView Class

From RemObjects Wiki
Jump to: navigation, search

This is a Library topic for Data Abstract for .NET
This page is generated from external data, please do not update

NamespacesInterfacesClassesEnumsImplements

Contents

Overview

The RemoteDataSourceView class (together with the RemoteDataSource component) provides Data Abstract based data access for ASP.NET applications. This class implements the abstract System.Web.UI.DataSourceView class to expose the capabilities of the RemoteDataSource class (update, insert, delete, sort, etc.) and contains methods to execute selecting, inserting, updating and deleting of data.

You will not usually deal with instances of this class directly, it is used internally by the RemoteDataSource component for data access. Instead, you can select a DataMember (for which a RemoteDataSourceView will be created) for your data source:

DA25 DataMember.png


Location

  • Assembly: RemObjects.DataAbstract.Web.dll
  • Namespace: RemObjects.DataAbstract.Web
  • Ancestry: System.Web.UI.DataSourceView | RemoteDataSourceView


Properties

CanDelete

Override. Gets a value indicating whether the RemoteDataSourceView object supports the ExecuteDelete operation.

This property is set to TRUE.



Prism:   property CanDelete: Boolean read
C#:   Boolean CanDelete { get; }
VB:   Property ReadOnly CanDelete As Boolean


CanInsert

Override. Gets a value indicating whether the RemoteDataSourceView object supports the ExecuteInsert operation.

This property is set to TRUE.



Prism:   property CanInsert: Boolean read
C#:   Boolean CanInsert { get; }
VB:   Property ReadOnly CanInsert As Boolean


CanRetrieveTotalRowCount

Override. Gets a value indicating whether the RemoteDataSourceView object supports the retrieval of the total number of data rows, instead of the data.

This property is set to TRUE.



Prism:   property CanRetrieveTotalRowCount: Boolean read
C#:   Boolean CanRetrieveTotalRowCount { get; }
VB:   Property ReadOnly CanRetrieveTotalRowCount As Boolean


CanSort

Override. Gets a value indicating whether the RemoteDataSourceView object supports a sorted view on the underlying data source.

This property is set to TRUE.



Prism:   property CanSort: Boolean read
C#:   Boolean CanSort { get; }
VB:   Property ReadOnly CanSort As Boolean


CanUpdate

Override. Gets a value indicating whether the RemoteDataSourceView object supports the ExecuteUpdate operation.

This property is set to TRUE.



Prism:   property CanUpdate: Boolean read
C#:   Boolean CanUpdate { get; }
VB:   Property ReadOnly CanUpdate As Boolean


TableRequestInfo

Gets the underlying TableRequestInfo object that is used to specify additional parameters for querying the data of the table associated with the current RemoteDataSourceView object.



Prism:   property TableRequestInfo: TableRequestInfo read
C#:   TableRequestInfo TableRequestInfo { get; }
VB:   Property ReadOnly TableRequestInfo As TableRequestInfo


TableSchema

Gets the SchemaDataTable object (representation of the schema) for the data table associated with the current RemoteDataSourceView object.



Prism:   property TableSchema: SchemaDataTable read
C#:   SchemaDataTable TableSchema { get; }
VB:   Property ReadOnly TableSchema As SchemaDataTable


ViewName

Gets the name of the current View, which is equal to the name of the data table associated with the current RemoteDataSourceView object.



Prism:   property ViewName: String read
C#:   String ViewName { get; }
VB:   Property ReadOnly ViewName As String


Instance Methods

constructor

Creates a new instance of the RemoteDataSourceView class, initializes it with the ViewName (name of the data table) and associates it with a particular RemoteDataSource.


Oxygene:   constructor(aDataSource: RemoteDataSource; aViewName: String)
C#:   constructor(RemoteDataSource aDataSource, String aViewName)
VB:   Sub New (aDataSource As RemoteDataSource, aViewName As String)


Parameters:

  • aDataSource:
  • aViewName:


ExecuteDelete   protected

Performs a delete operation on the data table associated with the current RemoteDataSourceView.


Oxygene:   method ExecuteDelete(keys: IDictionary; oldValues: IDictionary): Int32
C#:   Int32 ExecuteDelete(IDictionary keys, IDictionary oldValues)
VB:   Function ExecuteDelete(keys As IDictionary, oldValues As IDictionary) As Int32


Parameters:

  • keys:
  • oldValues:


ExecuteInsert   protected

Performs an insert operation on the data table associated with the current RemoteDataSourceView.


Oxygene:   method ExecuteInsert(values: IDictionary): Int32
C#:   Int32 ExecuteInsert(IDictionary values)
VB:   Function ExecuteInsert(values As IDictionary) As Int32


Parameters:

  • values: List of values to insert


ExecuteSelect   protected

Fills the data table associated with the current RemoteDataSourceView with data and returns the selected rows as System.Data.DataView.


Oxygene:   method ExecuteSelect(arguments: DataSourceSelectArguments): IEnumerable
C#:   IEnumerable ExecuteSelect(DataSourceSelectArguments arguments)
VB:   Function ExecuteSelect(arguments As DataSourceSelectArguments) As IEnumerable


Parameters:

  • arguments: This parameter is used to set the sorting order of the selected data.


ExecuteUpdate   protected

Performs an update operation on the data table associated with the current RemoteDataSourceView.


Oxygene:   method ExecuteUpdate(keys: IDictionary; values: IDictionary; oldValues: IDictionary): Int32
C#:   Int32 ExecuteUpdate(IDictionary keys, IDictionary values, IDictionary oldValues)
VB:   Function ExecuteUpdate(keys As IDictionary, values As IDictionary, oldValues As IDictionary) As Int32


Parameters:

  • keys: List of rows to updating
  • values: List of new values
  • oldValues: List of old values


See Also


Product: RemObjects Data Abstract
Available Editions: Data Abstract for .NET, Delphi and Xcode

GlossaryArticlesFeaturesLibrarySamples

Personal tools
Namespaces

Variants
Actions
Navigation
products
platforms
special
Toolbox