C# Класс Nettiers.AdventureWorks.Web.Data.EntityRelationship

Наследование: System.Web.UI.WebControls.WebControl
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
Insert void
Insert void
Insert void
OnAfterInserted void
OnAfterInserting void
OnAfterSelected void
OnAfterUpdated void
OnAfterUpdating void
Remove void
Update void

Открытые методы

Метод Описание
EntityRelationship ( ) : System

Initializes a new instance of the EntityRelationship class.

Защищенные методы

Метод Описание
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.

Приватные методы

Метод Описание
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.

Описание методов

EntityRelationship() публичный Метод

Initializes a new instance of the EntityRelationship class.
public EntityRelationship ( ) : System
Результат System

GetLinkList() защищенный Метод

Gets the collection of business objects from the associated LinkMember.
protected GetLinkList ( Object entity ) : IList
entity Object
Результат IList

GetList() защищенный Метод

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.
Результат IList

GetReferenceList() защищенный Метод

Gets the collection of business objects from the associated ReferenceMember.
protected GetReferenceList ( Object entity ) : IList
entity Object
Результат IList

InsertLink() защищенный Метод

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.
Результат void

InsertLink() защищенный Метод

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.
Результат void

InsertLinks() защищенный Метод

Inserts any previously cached business object links.
protected InsertLinks ( ) : void
Результат void

InsertReference() защищенный Метод

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.
Результат void

InsertReferences() защищенный Метод

Inserts any previously cached business object references.
protected InsertReferences ( ) : void
Результат void

OnLoad() защищенный Метод

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.
Результат void

RemoveLink() защищенный Метод

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.
Результат void

RemoveReference() защищенный Метод

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.
Результат void

UpdateControl() защищенный Метод

Initializes and updates the control with the relationships held within the specified business object.
protected UpdateControl ( Object entity ) : void
entity Object
Результат void

UpdateReference() защищенный Метод

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.
Результат void

UpdateRelationships() защищенный Метод

Updates the specified business object with values bound to the control which represent the current relationships.
protected UpdateRelationships ( Object entity ) : void
entity Object
Результат void