ObjectDesignerDataSourceView 类

定义

提供与 ObjectDataSourceDesigner 类关联的设计时视图。Provides the design-time view that is associated with the ObjectDataSourceDesigner class.

public ref class ObjectDesignerDataSourceView : System::Web::UI::Design::DesignerDataSourceView
public class ObjectDesignerDataSourceView : System.Web.UI.Design.DesignerDataSourceView
type ObjectDesignerDataSourceView = class
    inherit DesignerDataSourceView
Public Class ObjectDesignerDataSourceView
Inherits DesignerDataSourceView
继承
ObjectDesignerDataSourceView

注解

ObjectDataSource 控件表示一个数据源,该数据源调用业务对象的方法以执行删除、插入、选择和更新数据库类型操作。The ObjectDataSource control represents a data source that calls methods of a business object in order to perform the Delete, Insert, Select, and Update database-type operations.

ObjectDataSourceDesigner 类为可视化设计器中的 ObjectDataSource 控件提供设计时支持。The ObjectDataSourceDesigner class provides design-time support for the ObjectDataSource control in a visual designer. ObjectDesignerDataSourceView 对象提供了一些成员,这些成员指示是否可执行各种数据库类型操作并返回架构和设计时数据。An ObjectDesignerDataSourceView object provides members that indicate whether various database-type operations can be performed and that return schema and design-time data.

CanInsertCanUpdateCanDelete 属性指示关联的 ObjectDataSource 控件是否可以执行相应的数据库类型操作。The CanInsert, CanUpdate, and CanDelete properties indicate whether the associated ObjectDataSource control can perform the corresponding database-type operations.

CanSort 属性(始终 true)指示关联的控件可以对行进行排序。The CanSort property, which is always true, indicates that the associated control can sort rows. "CanPage" 和 "CanRetrieveTotalRowCount" 属性(始终为 "false")指示关联的控件无法执行服务器分页,因而无法分别返回查询中的总行数。The CanPage and CanRetrieveTotalRowCount properties, which are always false, indicate that the associated control cannot perform server paging and cannot return the total number of rows in a query, respectively.

Schema 属性获取一个架构,该架构描述此视图对象所表示的数据源视图。The Schema property gets a schema that describes the data source view that is represented by this view object. GetDesignTimeData 方法将生成与关联控件的架构匹配的设计时数据。The GetDesignTimeData method generates design-time data that matches the schema of the associated control.

构造函数

ObjectDesignerDataSourceView(ObjectDataSourceDesigner, String)

初始化 ObjectDesignerDataSourceView 类的新实例。Initializes a new instance of the ObjectDesignerDataSourceView class.

属性

CanDelete

获取一个值,它指示关联的数据源控件是否可按当前配置执行删除操作。Gets a value that indicates whether the associated data source control as it is currently configured can perform a Delete operation.

CanInsert

获取一个值,它指示关联的数据源控件是否可按当前配置执行插入操作。Gets a value that indicates whether the associated data source control as it is currently configured can perform an Insert operation.

CanPage

获取一个值,该值指示关联的数据源控件是否可执行基于服务器的分页。Gets a value that indicates whether the associated data source control can perform server-based paging.

CanRetrieveTotalRowCount

获取一个值,它指示关联的数据源控件是否可以返回查询所返回的总行数。Gets a value that indicates whether the associated data source control can return the total number of rows that are returned by a query.

CanSort

获取一个值,它指示关联的数据源控件是否可对行排序。Gets a value that indicates whether the associated data source control can sort rows.

CanUpdate

获取一个值,它指示关联的数据源控件是否可按当前配置执行更新操作。Gets a value that indicates whether the associated data source control as it is currently configured can perform an Update operation.

DataSourceDesigner

获取对创建此 DesignerDataSourceView 控件的设计器的引用。Gets a reference to the designer that created this DesignerDataSourceView control.

(继承自 DesignerDataSourceView)
Name

获取在创建 DesignerDataSourceView 类的此实例时提供的视图的名称。Gets the name of the view as provided when this instance of the DesignerDataSourceView class was created.

(继承自 DesignerDataSourceView)
Schema

获取一个架构,该架构描述此视图对象所表示的数据源视图。Gets a schema that describes the data source view that is represented by this view object.

方法

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetDesignTimeData(Int32, Boolean)

生成与关联数据源控件的架构匹配的设计时数据。Generates design-time data that matches the schema of the associated data source control.

GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

适用于

另请参阅