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

Inheritance: System.Web.UI.WebControls.WebControl
Afficher le fichier Open project: netTiers/netTiers

Private Properties

Свойство Type Description
Insert void
Insert void
Insert void
OnAfterInserted void
OnAfterInserting void
OnAfterSelected void
OnAfterUpdated void
OnAfterUpdating void
Remove void
Update void

Méthodes publiques

Méthode Description
EntityRelationship ( ) : System

Initializes a new instance of the EntityRelationship class.

Méthodes protégées

Méthode 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

Méthode 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 méthode

Initializes a new instance of the EntityRelationship class.
public EntityRelationship ( ) : System
Résultat System

GetLinkList() protected méthode

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

GetList() protected méthode

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.
Résultat IList

GetReferenceList() protected méthode

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

InsertLink() protected méthode

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.
Résultat void

InsertLink() protected méthode

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.
Résultat void

InsertLinks() protected méthode

Inserts any previously cached business object links.
protected InsertLinks ( ) : void
Résultat void

InsertReference() protected méthode

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.
Résultat void

InsertReferences() protected méthode

Inserts any previously cached business object references.
protected InsertReferences ( ) : void
Résultat void

OnLoad() protected méthode

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.
Résultat void

RemoveLink() protected méthode

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.
Résultat void

RemoveReference() protected méthode

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.
Résultat void

UpdateControl() protected méthode

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

UpdateReference() protected méthode

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.
Résultat void

UpdateRelationships() protected méthode

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