C# Class Nettiers.AdventureWorks.Web.Data.EntityRelationship

Inheritance: System.Web.UI.WebControls.WebControl
显示文件 Open project: netTiers/netTiers

Private Properties

Property Type Description
Insert void
Insert void
Insert void
OnAfterInserted void
OnAfterInserting void
OnAfterSelected void
OnAfterUpdated void
OnAfterUpdating void
Remove void
Update void

Public Methods

Method Description
EntityRelationship ( ) : System

Initializes a new instance of the EntityRelationship class.

Protected Methods

Method Description
GetLinkList ( Object entity ) : IList

Gets the collection of business objects from the associated LinkMember.

GetList ( Object entity, EntityRelationshipMember member, String listPropertyName ) : IList

Gets the collection of business objects from the specified relationship member.

GetReferenceList ( Object entity ) : IList

Gets the collection of business objects from the associated ReferenceMember.

InsertLink ( IList links, Object foreignKeyValue ) : void

Inserts the specified foreignKeyValue into the collection of business objects.

InsertLink ( Object entity, Object foreignKeyValue ) : void

Inserts the specified foreignKeyValue into the relationship defined by the LinkMember property.

InsertLinks ( ) : void

Inserts any previously cached business object links.

InsertReference ( IList links, IDictionary values ) : void

Inserts the specified name/value pairs into the relationship defined by the ReferenceMember property.

InsertReferences ( ) : void

Inserts any previously cached business object references.

OnLoad ( EventArgs e ) : void

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

RemoveLink ( IList links, Object link ) : void

Removes the specified item from the collection of business objects.

RemoveReference ( IList links, Object link ) : void

Removes the specified item from the collection of business objects.

UpdateControl ( Object entity ) : void

Initializes and updates the control with the relationships held within the specified business object.

UpdateReference ( Object link, IDictionary values ) : void

Updates the specified business object with the specified name/value pairs.

UpdateRelationships ( Object entity ) : void

Updates the specified business object with values bound to the control which represent the current relationships.

Private Methods

Method Description
Insert ( EntityRelationshipMember member ) : void

Inserts any previously cached business object references.

Insert ( EntityRelationshipMember member, IList links, IDictionary values ) : void

Inserts the specified name/value pairs into the relationship defined by the specified member.

Insert ( EntityRelationshipMember member, IList links, IDictionary values, bool initEntityKey ) : void

Inserts the specified name/value pairs into the relationship defined by the specified member.

OnAfterInserted ( object sender, LinkedDataSourceEventArgs e ) : void
OnAfterInserting ( object sender, LinkedDataSourceEventArgs e ) : void
OnAfterSelected ( object sender, LinkedDataSourceEventArgs e ) : void
OnAfterUpdated ( object sender, LinkedDataSourceEventArgs e ) : void
OnAfterUpdating ( object sender, LinkedDataSourceEventArgs e ) : void
Remove ( EntityRelationshipMember member, IList links, Object link ) : void

Removes the specified item from the collection of business objects.

Update ( EntityRelationshipMember member, Object link, IDictionary values ) : void

Updates the specified business object with the specified name/value pairs.

Method Details

EntityRelationship() public method

Initializes a new instance of the EntityRelationship class.
public EntityRelationship ( ) : System
return System

GetLinkList() protected method

Gets the collection of business objects from the associated LinkMember.
protected GetLinkList ( Object entity ) : IList
entity Object
return IList

GetList() protected method

Gets the collection of business objects from the specified relationship member.
protected GetList ( Object entity, EntityRelationshipMember member, String listPropertyName ) : IList
entity Object
member EntityRelationshipMember The relationship member.
listPropertyName String The property name.
return IList

GetReferenceList() protected method

Gets the collection of business objects from the associated ReferenceMember.
protected GetReferenceList ( Object entity ) : IList
entity Object
return IList

InsertLink() protected method

Inserts the specified foreignKeyValue into the collection of business objects.
protected InsertLink ( IList links, Object foreignKeyValue ) : void
links IList A collection of business objects.
foreignKeyValue Object The value to insert.
return void

InsertLink() protected method

Inserts the specified foreignKeyValue into the relationship defined by the LinkMember property.
protected InsertLink ( Object entity, Object foreignKeyValue ) : void
entity Object
foreignKeyValue Object The value to insert.
return void

InsertLinks() protected method

Inserts any previously cached business object links.
protected InsertLinks ( ) : void
return void

InsertReference() protected method

Inserts the specified name/value pairs into the relationship defined by the ReferenceMember property.
protected InsertReference ( IList links, IDictionary values ) : void
links IList A collection of business objects.
values IDictionary A collection of name/value pairs to insert.
return void

InsertReferences() protected method

Inserts any previously cached business object references.
protected InsertReferences ( ) : void
return void

OnLoad() protected method

Raises the System.Web.UI.Control.Load event.
protected OnLoad ( EventArgs e ) : void
e System.EventArgs The System.EventArgs object that contains the event data.
return void

RemoveLink() protected method

Removes the specified item from the collection of business objects.
protected RemoveLink ( IList links, Object link ) : void
links IList A collection of business objects.
link Object The item to remove.
return void

RemoveReference() protected method

Removes the specified item from the collection of business objects.
protected RemoveReference ( IList links, Object link ) : void
links IList A collection of business objects.
link Object The item to remove.
return void

UpdateControl() protected method

Initializes and updates the control with the relationships held within the specified business object.
protected UpdateControl ( Object entity ) : void
entity Object
return void

UpdateReference() protected method

Updates the specified business object with the specified name/value pairs.
protected UpdateReference ( Object link, IDictionary values ) : void
link Object The business object to update.
values IDictionary A collection of name/value pairs to update.
return void

UpdateRelationships() protected method

Updates the specified business object with values bound to the control which represent the current relationships.
protected UpdateRelationships ( Object entity ) : void
entity Object
return void