C# Класс System.Data.DataRelation

Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
CheckNamespaceValidityForNestedRelations void
CheckNestedRelations void
CheckState void
Clone DataRelation
Create void
DataRelation System.ComponentModel
DataRelation System.ComponentModel
GetChildRows System.Data.DataRow[]
GetParentRow DataRow
GetParentRows System.Data.DataRow[]
IsAutoGenerated bool
IsKeyNull bool
SetChildKeyConstraint void
SetDataSet void
SetParentKeyConstraint void
SetParentRowRecords void
ValidateMultipleNestedRelations void

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

Метод Описание
DataRelation ( string relationName, DataColumn parentColumn, DataColumn childColumn ) : System.ComponentModel

Initializes a new instance of the class using the specified name, parent, and child columns.

DataRelation ( string relationName, DataColumn parentColumn, DataColumn childColumn, bool createConstraints ) : System.ComponentModel

Initializes a new instance of the class using the specified name, parent, and child columns, and value to create constraints.

ToString ( ) : string

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

Метод Описание
CheckStateForProperty ( ) : void

Checks to ensure the DataRelation is a valid object, even if it doesn't belong to a .

OnPropertyChanging ( PropertyChangedEventArgs pcevent ) : void
RaisePropertyChanging ( string name ) : void

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

Метод Описание
CheckNamespaceValidityForNestedRelations ( string ns ) : void
CheckNestedRelations ( ) : void
CheckState ( ) : void
Clone ( DataSet destination ) : DataRelation
Create ( string relationName, DataColumn parentColumns, DataColumn childColumns, bool createConstraints ) : void
DataRelation ( string relationName, string parentTableName, string childTableName, string parentColumnNames, string childColumnNames, bool nested ) : System.ComponentModel
DataRelation ( string relationName, string parentTableName, string parentTableNamespace, string childTableName, string childTableNamespace, string parentColumnNames, string childColumnNames, bool nested ) : System.ComponentModel
GetChildRows ( DataKey parentKey, DataKey childKey, DataRow parentRow, DataRowVersion version ) : System.Data.DataRow[]

Gets the child rows for the parent row across the relation using the version given

GetParentRow ( DataKey parentKey, DataKey childKey, DataRow childRow, DataRowVersion version ) : DataRow
GetParentRows ( DataKey parentKey, DataKey childKey, DataRow childRow, DataRowVersion version ) : System.Data.DataRow[]

Gets the parent rows for the given child row across the relation using the version given

IsAutoGenerated ( DataColumn col ) : bool
IsKeyNull ( object values ) : bool
SetChildKeyConstraint ( ForeignKeyConstraint value ) : void
SetDataSet ( DataSet dataSet ) : void

Internally sets the DataSet pointer.

SetParentKeyConstraint ( UniqueConstraint value ) : void
SetParentRowRecords ( DataRow childRow, DataRow parentRow ) : void
ValidateMultipleNestedRelations ( ) : void

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

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

Checks to ensure the DataRelation is a valid object, even if it doesn't belong to a .
protected CheckStateForProperty ( ) : void
Результат void

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

Initializes a new instance of the class using the specified name, parent, and child columns.
public DataRelation ( string relationName, DataColumn parentColumn, DataColumn childColumn ) : System.ComponentModel
relationName string
parentColumn DataColumn
childColumn DataColumn
Результат System.ComponentModel

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

Initializes a new instance of the class using the specified name, parent, and child columns, and value to create constraints.
public DataRelation ( string relationName, DataColumn parentColumn, DataColumn childColumn, bool createConstraints ) : System.ComponentModel
relationName string
parentColumn DataColumn
childColumn DataColumn
createConstraints bool
Результат System.ComponentModel

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

protected OnPropertyChanging ( PropertyChangedEventArgs pcevent ) : void
pcevent System.ComponentModel.PropertyChangedEventArgs
Результат void

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

protected RaisePropertyChanging ( string name ) : void
name string
Результат void

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

public ToString ( ) : string
Результат string