EntityDataSource.Selecting 이벤트

정의

쿼리가 생성 및 실행되기 전에 발생합니다.

public:
 event EventHandler<System::Web::UI::WebControls::EntityDataSourceSelectingEventArgs ^> ^ Selecting;
public event EventHandler<System.Web.UI.WebControls.EntityDataSourceSelectingEventArgs> Selecting;
member this.Selecting : EventHandler<System.Web.UI.WebControls.EntityDataSourceSelectingEventArgs> 
Public Custom Event Selecting As EventHandler(Of EntityDataSourceSelectingEventArgs) 

이벤트 유형

설명

Selecting 쿼리가 생성되고 실행되기 전에 이벤트가 발생합니다. 쿼리를 Selecting 생성하고 실행하기 전에 이벤트를 처리하여 의 EntityDataSource 구성을 수정하거나 데이터 바인딩된 컨트롤에서 인수를 읽거나 변경합니다.

쿼리를 Cancel 취소하려면 개체의 EntityDataSourceSelectingEventArgs 속성을 로 true 설정합니다. SELECT 작업이 취소되면 데이터 바인딩된 컨트롤에 데이터가 반환되지 않습니다.

가 데이터 바인딩된 컨트롤에서 로 true 설정된 경우 AllowPagingEntityDataSource 개체의 StartRowIndexMaximumRows 및 속성 값을 사용하여 및 Top 쿼리 작성기 메서드 ObjectQuery<T>DataSourceSelectArguments 호출 Skip 합니다.

가 데이터 바인딩된 컨트롤에서 로 true 설정된 경우 AllowSorting 이벤트가 처리될 때 개체의 DataSourceSelectArgumentsSelecting 변경할 수 있습니다.SortExpression 페이지 태그에 지정된 WHERE 또는 ORDER BY와 같은 다른 쿼리 연산자는 이벤트가 발생한 후에 Selecting 적용됩니다.

적용 대상