C# 클래스 Nettiers.AdventureWorks.Web.Data.EntityDataSource

상속: System.Web.UI.DataSourceControl, ILinkedDataSource
파일 보기 프로젝트 열기: netTiers/netTiers

공개 프로퍼티들

프로퍼티 타입 설명
EntityIdParameterName String
EntityViewName String
NullableRecordCountParameterName String
OrderByClauseParameterName String
PageIndexParameterName String
PageSizeParameterName String
RecordCountParameterName String
SortExpressionParameterName String
WhereClauseParameterName String

Private Properties

프로퍼티 타입 설명
GetParameterValueMap IOrderedDictionary
GetParameterValueMap IOrderedDictionary
OnPageLoadComplete void
OnParametersChanged void
UpdateEntityId void

공개 메소드들

메소드 설명
DeepLoad ( ) : void

Performs a DeepLoad operation for the current entity if it has not already been performed.

Delete ( Object entity ) : int

Performs a delete operation on the list of data that the EntityDataSourceView object represents.

EntityDataSource ( ) : System

Initializes a new instance of the EntityDataSource class.

EntityDataSource ( Object provider, Type entityType, String selectMethod ) : System

Initializes a new instance of the EntityDataSource class for the specified provider, entity type, and data retrieval method name.

GetCurrentEntity ( ) : Object

Gets a specific entry from the cached list of entities based on the value of the EntityIndex property.

GetEntityList ( ) : IEnumerable

Gets a reference to the current list of entities.

GetNewEntity ( ) : Object

Creates a new instance of the class specified by the EntityType property.

GetOrderByClause ( ) : String

Gets the value of the OrderByClause parameter as a string.

GetPageIndex ( ) : int

Gets the value of the PageIndex parameter as an int.

GetPageSize ( ) : int

Gets the value of the PageSize parameter as an int.

GetParameterIntValue ( String parameterName ) : int

Gets the current value of the parameter with the name specified by the parameterName argument.

GetParameterStringValue ( String parameterName ) : String

Gets the current value of the parameter with the name specified by the parameterName argument.

GetParameterValue ( String parameterName ) : Object

Gets the current value of the parameter with the name specified by the parameterName argument.

GetSelectedEntityId ( ) : String

Gets the current value of the EntityId parameter.

GetWhereClause ( ) : String

Gets the value of the WhereClause parameter as a string.

Insert ( IDictionary values ) : int

Performs an insert operation on the list of data that the EntityDataSourceView object represents.

Update ( Object entity, IDictionary values ) : int

Performs an update operation on the list of data that the EntityDataSourceView object represents.

보호된 메소드들

메소드 설명
GetView ( string viewName ) : DataSourceView

Retrieves the named data source view that is associated with the data source control.

GetViewNames ( ) : ICollection

Retrieves a collection of names representing the list of view objects that are associated with the EntityDataSource object.

LoadViewState ( object state ) : void

Loads the previously saved view state of the EntityDataSource control.

OnInit ( EventArgs e ) : void

Raises the System.Web.UI.Control.Init event.

SaveViewState ( ) : object

Saves the state of the EntityDataSource control.

TrackViewState ( ) : void

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

비공개 메소드들

메소드 설명
GetParameterValueMap ( ) : IOrderedDictionary

Gets an ordered collection of parameter names and values.

GetParameterValueMap ( String parameterName ) : IOrderedDictionary

Gets an ordered collection of parameter names and values, but only if a parameter exists with the name specified by the parameterName argument.

OnPageLoadComplete ( object sender, EventArgs e ) : void

Handles the Page.LoadComplete event.

OnParametersChanged ( object sender, EventArgs e ) : void

Handles the ParameterCollection.ParametersChanged event.

UpdateEntityId ( String entityId ) : void

Sets the value of the EntityId property.

메소드 상세

DeepLoad() 공개 메소드

Performs a DeepLoad operation for the current entity if it has not already been performed.
public DeepLoad ( ) : void
리턴 void

Delete() 공개 메소드

Performs a delete operation on the list of data that the EntityDataSourceView object represents.
public Delete ( Object entity ) : int
entity Object The business object to delete.
리턴 int

EntityDataSource() 공개 메소드

Initializes a new instance of the EntityDataSource class.
public EntityDataSource ( ) : System
리턴 System

EntityDataSource() 공개 메소드

Initializes a new instance of the EntityDataSource class for the specified provider, entity type, and data retrieval method name.
public EntityDataSource ( Object provider, Type entityType, String selectMethod ) : System
provider Object The business object that provides data access.
entityType System.Type The type of entity that is returned by the provider.
selectMethod String The name of the method or function that the EntityDataSource invokes to retrieve data.
리턴 System

GetCurrentEntity() 공개 메소드

Gets a specific entry from the cached list of entities based on the value of the EntityIndex property.
public GetCurrentEntity ( ) : Object
리턴 Object

GetEntityList() 공개 메소드

Gets a reference to the current list of entities.
public GetEntityList ( ) : IEnumerable
리턴 IEnumerable

GetNewEntity() 공개 메소드

Creates a new instance of the class specified by the EntityType property.
public GetNewEntity ( ) : Object
리턴 Object

GetOrderByClause() 공개 메소드

Gets the value of the OrderByClause parameter as a string.
public GetOrderByClause ( ) : String
리턴 String

GetPageIndex() 공개 메소드

Gets the value of the PageIndex parameter as an int.
public GetPageIndex ( ) : int
리턴 int

GetPageSize() 공개 메소드

Gets the value of the PageSize parameter as an int.
public GetPageSize ( ) : int
리턴 int

GetParameterIntValue() 공개 메소드

Gets the current value of the parameter with the name specified by the parameterName argument.
public GetParameterIntValue ( String parameterName ) : int
parameterName String The name of the parameter.
리턴 int

GetParameterStringValue() 공개 메소드

Gets the current value of the parameter with the name specified by the parameterName argument.
public GetParameterStringValue ( String parameterName ) : String
parameterName String The name of the parameter.
리턴 String

GetParameterValue() 공개 메소드

Gets the current value of the parameter with the name specified by the parameterName argument.
public GetParameterValue ( String parameterName ) : Object
parameterName String The name of the parameter.
리턴 Object

GetSelectedEntityId() 공개 메소드

Gets the current value of the EntityId parameter.
public GetSelectedEntityId ( ) : String
리턴 String

GetView() 보호된 메소드

Retrieves the named data source view that is associated with the data source control.
protected GetView ( string viewName ) : DataSourceView
viewName string The name of the view to retrieve.
리턴 DataSourceView

GetViewNames() 보호된 메소드

Retrieves a collection of names representing the list of view objects that are associated with the EntityDataSource object.
protected GetViewNames ( ) : ICollection
리턴 ICollection

GetWhereClause() 공개 메소드

Gets the value of the WhereClause parameter as a string.
public GetWhereClause ( ) : String
리턴 String

Insert() 공개 메소드

Performs an insert operation on the list of data that the EntityDataSourceView object represents.
public Insert ( IDictionary values ) : int
values IDictionary A System.Collections.IDictionary of /// name/value pairs used during an insert operation.
리턴 int

LoadViewState() 보호된 메소드

Loads the previously saved view state of the EntityDataSource control.
protected LoadViewState ( object state ) : void
state object An object that contains /// the saved view state values for the control.
리턴 void

OnInit() 보호된 메소드

Raises the System.Web.UI.Control.Init event.
protected OnInit ( EventArgs e ) : void
e EventArgs A System.EventArgs object that contains the event data.
리턴 void

SaveViewState() 보호된 메소드

Saves the state of the EntityDataSource control.
protected SaveViewState ( ) : object
리턴 object

TrackViewState() 보호된 메소드

Tracks view-state changes to the EntityDataSource control so that they can be stored in the System.Web.UI.StateBag object.
protected TrackViewState ( ) : void
리턴 void

Update() 공개 메소드

Performs an update operation on the list of data that the EntityDataSourceView object represents.
public Update ( Object entity, IDictionary values ) : int
entity Object The business object to delete.
values IDictionary A System.Collections.IDictionary of /// name/value pairs used during an update operation.
리턴 int

프로퍼티 상세

EntityIdParameterName 공개적으로 정적으로 프로퍼티

The EntityId parameter name.
public static String EntityIdParameterName
리턴 String

EntityViewName 공개적으로 정적으로 프로퍼티

The default view name.
public static String EntityViewName
리턴 String

NullableRecordCountParameterName 공개적으로 정적으로 프로퍼티

The NullableRecordCount parameter name.
public static String NullableRecordCountParameterName
리턴 String

OrderByClauseParameterName 공개적으로 정적으로 프로퍼티

The OrderByClause parameter name.
public static String OrderByClauseParameterName
리턴 String

PageIndexParameterName 공개적으로 정적으로 프로퍼티

The PageIndex parameter name.
public static String PageIndexParameterName
리턴 String

PageSizeParameterName 공개적으로 정적으로 프로퍼티

The PageSize parameter name.
public static String PageSizeParameterName
리턴 String

RecordCountParameterName 공개적으로 정적으로 프로퍼티

The RecordCount parameter name.
public static String RecordCountParameterName
리턴 String

SortExpressionParameterName 공개적으로 정적으로 프로퍼티

The SortExpression parameter name.
public static String SortExpressionParameterName
리턴 String

WhereClauseParameterName 공개적으로 정적으로 프로퍼티

The WhereClause parameter name.
public static String WhereClauseParameterName
리턴 String