EntityDataSourceView 類別
定義
支援 EntityDataSource 控制項,並提供資料繫結程序控制項的介面,藉此根據實體資料執行查詢和其他作業。Supports the EntityDataSource control and provides an interface for data-bound controls to perform queries and other operations against entity data.
public ref class EntityDataSourceView sealed : System::Web::UI::DataSourceView, System::Web::UI::IStateManager
public ref class EntityDataSourceView : System::Web::UI::DataSourceView, System::Web::UI::IStateManager
public sealed class EntityDataSourceView : System.Web.UI.DataSourceView, System.Web.UI.IStateManager
public class EntityDataSourceView : System.Web.UI.DataSourceView, System.Web.UI.IStateManager
type EntityDataSourceView = class
inherit DataSourceView
interface IStateManager
Public NotInheritable Class EntityDataSourceView
Inherits DataSourceView
Implements IStateManager
Public Class EntityDataSourceView
Inherits DataSourceView
Implements IStateManager
- 繼承
- 實作
建構函式
EntityDataSourceView(EntityDataSource, String) |
將指定的 EntityDataSourceView 控制項設定為目前檢視的擁有者,初始化 EntityDataSource 類別的新執行個體。Initializes a new instance of the EntityDataSourceView class, setting the specified EntityDataSource control as the owner of the current view. |
屬性
CanDelete |
取得值,表示與目前 EntityDataSourceView 控制項相關聯的 EntityDataSource 物件是否支援刪除作業。Gets a value that indicates whether the EntityDataSourceView object that is associated with the current EntityDataSource control supports the delete operation. |
CanInsert |
取得值,表示與目前 EntityDataSourceView 控制項相關聯的 EntityDataSource 物件是否支援插入作業。Gets a value that indicates whether the EntityDataSourceView object that is associated with the current EntityDataSource control supports the insert operation. |
CanPage |
取得值,表示與目前 EntityDataSource 控制項關聯的 EntityDataSourceView 物件是否支援對擷取的資料進行分頁。Gets a value that indicates whether the EntityDataSourceView object that is associated with the current EntityDataSource control supports paging of retrieved data. |
CanRetrieveTotalRowCount |
取得值,表示與目前 EntityDataSource 控制項關聯的 EntityDataSourceView 物件除了支援擷取資料之外,是否還支援擷取資料列的總數。Gets a value that indicates whether the EntityDataSourceView object that is associated with the current EntityDataSource control supports retrieving the total number of data rows, in addition to retrieving the data. |
CanSort |
取得值,表示與目前 EntityDataSource 控制項相關聯的 EntityDataSourceView 物件是否支援對擷取資料的排序檢視。Gets a value that indicates whether the EntityDataSourceView object that is associated with the current EntityDataSource control supports a sorted view of the retrieved data. |
CanUpdate |
取得值,表示與目前 EntityDataSourceView 控制項相關聯的 EntityDataSource 物件是否支援更新作業。Gets a value that indicates whether the EntityDataSourceView object that is associated with the current EntityDataSource control supports the update operation. |
Events |
取得資料來源檢視的事件處理常式委派清單。Gets a list of event-handler delegates for the data source view. (繼承來源 DataSourceView) |
Name |
取得資料來源檢視的名稱。Gets the name of the data source view. (繼承來源 DataSourceView) |
方法
CanExecute(String) |
判斷是否可以執行指定的命令。Determines whether the specified command can be executed. (繼承來源 DataSourceView) |
Delete(IDictionary, IDictionary, DataSourceViewOperationCallback) |
在 DataSourceView 物件表示的資料清單上,執行非同步刪除作業。Performs an asynchronous delete operation on the list of data that the DataSourceView object represents. (繼承來源 DataSourceView) |
Equals(Object) |
判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object. (繼承來源 Object) |
ExecuteCommand(String, IDictionary, IDictionary) |
執行指定命令。Executes the specified command. (繼承來源 DataSourceView) |
ExecuteCommand(String, IDictionary, IDictionary, DataSourceViewOperationCallback) |
執行指定命令。Executes the specified command. (繼承來源 DataSourceView) |
ExecuteDelete(IDictionary, IDictionary) |
執行刪除作業。Performs a delete operation. |
ExecuteDelete(IDictionary, IDictionary) |
在 DataSourceView 物件表示的資料清單上,執行刪除作業。Performs a delete operation on the list of data that the DataSourceView object represents. (繼承來源 DataSourceView) |
ExecuteInsert(IDictionary) |
執行插入作業。Performs an insert operation. |
ExecuteInsert(IDictionary) |
在 DataSourceView 物件表示的資料清單上,執行插入作業。Performs an insert operation on the list of data that the DataSourceView object represents. (繼承來源 DataSourceView) |
ExecuteSelect(DataSourceSelectArguments) |
執行選取作業。Performs a select operation. |
ExecuteSelect(DataSourceSelectArguments) |
從基礎資料儲存區取得資料清單。Gets a list of data from the underlying data storage. (繼承來源 DataSourceView) |
ExecuteUpdate(IDictionary, IDictionary, IDictionary) |
執行更新作業。Performs an update operation. |
ExecuteUpdate(IDictionary, IDictionary, IDictionary) |
在 DataSourceView 物件表示的資料清單上,執行更新作業。Performs an update operation on the list of data that the DataSourceView object represents. (繼承來源 DataSourceView) |
GetHashCode() |
做為預設雜湊函式。Serves as the default hash function. (繼承來源 Object) |
GetType() |
取得目前執行個體的 Type。Gets the Type of the current instance. (繼承來源 Object) |
GetViewSchema() |
傳回表示 EntityDataSourceView 的資料表。Returns a table that represents the EntityDataSourceView. |
Insert(IDictionary, DataSourceViewOperationCallback) |
在 DataSourceView 物件表示的資料清單上,執行非同步插入作業。Performs an asynchronous insert operation on the list of data that the DataSourceView object represents. (繼承來源 DataSourceView) |
MemberwiseClone() |
建立目前 Object 的淺層複製。Creates a shallow copy of the current Object. (繼承來源 Object) |
OnDataSourceViewChanged(EventArgs) |
引發 DataSourceViewChanged 事件。Raises the DataSourceViewChanged event. (繼承來源 DataSourceView) |
RaiseUnsupportedCapabilityError(DataSourceCapabilities) |
由 RaiseUnsupportedCapabilitiesError(DataSourceView) 方法呼叫,以比較針對 ExecuteSelect(DataSourceSelectArguments) 作業要求的功能與檢視支援的功能。Called by the RaiseUnsupportedCapabilitiesError(DataSourceView) method to compare the capabilities requested for an ExecuteSelect(DataSourceSelectArguments) operation against those that the view supports. (繼承來源 DataSourceView) |
Select(DataSourceSelectArguments, DataSourceViewSelectCallback) |
從基礎資料儲存區非同步取得資料清單。Gets a list of data asynchronously from the underlying data storage. (繼承來源 DataSourceView) |
ToString() |
傳回代表目前物件的字串。Returns a string that represents the current object. (繼承來源 Object) |
Update(IDictionary, IDictionary, IDictionary, DataSourceViewOperationCallback) |
在 DataSourceView 物件表示的資料清單上,執行非同步更新作業。Performs an asynchronous update operation on the list of data that the DataSourceView object represents. (繼承來源 DataSourceView) |
事件
ContextCreated |
發生於 EntityDataSourceView 完成建立用來將資料繫結至控制項的 ObjectContext 時。Occurs when the EntityDataSourceView has finished creating the ObjectContext used to bind data to controls. |
ContextCreating |
發生於 EntityDataSourceView 建立資料繫結中使用的 ObjectContext 時。Occurs when the EntityDataSourceView creates the ObjectContext used in data binding. |
ContextDisposing |
發生於處置 ObjectContext 之前。Occurs before an ObjectContext is disposed. |
DataSourceViewChanged |
當資料來源檢視已變更時發生。Occurs when the data source view has changed. (繼承來源 DataSourceView) |
Deleted |
發生於物件從資料來源中刪除之後。Occurs after an object has been deleted from the data source. |
Deleting |
發生於物件從資料來源中刪除之前。Occurs before an object is deleted from the data source. |
Exception |
發生於部分方法使用驗證失敗或是引發例外狀況時。Occurs when validation fails in a partial methods or when an exception is raised. |
Inserted |
發生於在資料來源位置建立新物件之後。Occurs after a new object is created at the data source. |
Inserting |
發生於新物件保存至資料來源之前。Occurs before a new object is persisted to the data source. |
QueryCreated |
在 EntityDataSource 建立 Entity SQL 查詢 (EntityDataSource 控制項的組態期間指定的查詢) 後發生。Occurs after the EntityDataSource has created an Entity SQL query that was specified during the configuration of the EntityDataSource control. |
Selected |
發生於查詢已執行之後。Occurs after a query has been executed. |
Selecting |
發生於查詢建構及執行之前。Occurs before a query is constructed and executed. |
Updated |
發生於物件變更已保存至資料來源之後。Occurs after changes to an object have been persisted to the data source. |
Updating |
發生於物件變更保存至資料來源之前。Occurs before changes to an object are persisted to the data source. |
明確介面實作
IStateManager.IsTrackingViewState |
取得值,指出 EntityDataSourceView 物件是否正在儲存變更至它的檢視狀態。Gets a value that indicates whether the EntityDataSourceView object is saving changes to its view state. |
IStateManager.LoadViewState(Object) |
還原資料來源檢視之先前儲存的檢視狀態。Restores the previously saved view state for the data source view. |
IStateManager.SaveViewState() |
儲存自頁面回傳至伺服器以來,EntityDataSourceView 控制項之檢視狀態的變更。Saves the changes to view state for the EntityDataSourceView control since the time that the page was posted back to the server. |
IStateManager.TrackViewState() |
追蹤檢視狀態變更。Tracks view state changes. |