C# Класс System.Data.Tests.DataSetAssertion

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

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

Метод Описание
AssertDataColumn ( string label, DataColumn col, string colName, bool allowDBNull, bool autoIncr, int autoIncrSeed, int autoIncrStep, string caption, MappingType colMap, Type type, object defaultValue, string expression, int maxLength, string ns, int ordinal, string prefix, bool readOnly, bool unique ) : void
AssertDataRelation ( string label, DataRelation rel, string name, bool nested, string parentColNames, string childColNames, bool existsUK, bool existsFK ) : void
AssertDataSet ( string label, DataSet ds, string name, int tableCount, int relCount ) : void
AssertDataTable ( string label, DataTable dt, string name, int columnCount, int rowCount, int parentRelationCount, int childRelationCount, int constraintCount, int primaryKeyLength ) : void
AssertForeignKeyConstraint ( string label, ForeignKeyConstraint fk, string name, AcceptRejectRule acceptRejectRule, Rule delRule, Rule updateRule, string colNames, string relColNames ) : void
AssertReadXml ( DataSet ds, string label, string xml, XmlReadMode readMode, XmlReadMode resultMode, string datasetName, int tableCount ) : void
AssertReadXml ( DataSet ds, string label, string xml, XmlReadMode readMode, XmlReadMode resultMode, string datasetName, int tableCount, ReadState state ) : void
AssertReadXml ( DataSet ds, string label, string xml, XmlReadMode readMode, XmlReadMode resultMode, string datasetName, int tableCount, ReadState state, string readerLocalName, string readerNS ) : void
AssertUniqueConstraint ( string label, UniqueConstraint uc, string name, bool isPrimaryKey, string colNames ) : void
GetNormalizedSchema ( string source ) : string

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

Метод Описание
SortAttributes ( XmlElement el ) : void
SortAttributesAttributes ( XmlElement el ) : void

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

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

public AssertDataColumn ( string label, DataColumn col, string colName, bool allowDBNull, bool autoIncr, int autoIncrSeed, int autoIncrStep, string caption, MappingType colMap, Type type, object defaultValue, string expression, int maxLength, string ns, int ordinal, string prefix, bool readOnly, bool unique ) : void
label string
col DataColumn
colName string
allowDBNull bool
autoIncr bool
autoIncrSeed int
autoIncrStep int
caption string
colMap MappingType
type Type
defaultValue object
expression string
maxLength int
ns string
ordinal int
prefix string
readOnly bool
unique bool
Результат void

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

public AssertDataRelation ( string label, DataRelation rel, string name, bool nested, string parentColNames, string childColNames, bool existsUK, bool existsFK ) : void
label string
rel DataRelation
name string
nested bool
parentColNames string
childColNames string
existsUK bool
existsFK bool
Результат void

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

public AssertDataSet ( string label, DataSet ds, string name, int tableCount, int relCount ) : void
label string
ds DataSet
name string
tableCount int
relCount int
Результат void

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

public AssertDataTable ( string label, DataTable dt, string name, int columnCount, int rowCount, int parentRelationCount, int childRelationCount, int constraintCount, int primaryKeyLength ) : void
label string
dt DataTable
name string
columnCount int
rowCount int
parentRelationCount int
childRelationCount int
constraintCount int
primaryKeyLength int
Результат void

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

public AssertForeignKeyConstraint ( string label, ForeignKeyConstraint fk, string name, AcceptRejectRule acceptRejectRule, Rule delRule, Rule updateRule, string colNames, string relColNames ) : void
label string
fk ForeignKeyConstraint
name string
acceptRejectRule AcceptRejectRule
delRule Rule
updateRule Rule
colNames string
relColNames string
Результат void

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

public AssertReadXml ( DataSet ds, string label, string xml, XmlReadMode readMode, XmlReadMode resultMode, string datasetName, int tableCount ) : void
ds DataSet
label string
xml string
readMode XmlReadMode
resultMode XmlReadMode
datasetName string
tableCount int
Результат void

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

public AssertReadXml ( DataSet ds, string label, string xml, XmlReadMode readMode, XmlReadMode resultMode, string datasetName, int tableCount, ReadState state ) : void
ds DataSet
label string
xml string
readMode XmlReadMode
resultMode XmlReadMode
datasetName string
tableCount int
state ReadState
Результат void

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

public AssertReadXml ( DataSet ds, string label, string xml, XmlReadMode readMode, XmlReadMode resultMode, string datasetName, int tableCount, ReadState state, string readerLocalName, string readerNS ) : void
ds DataSet
label string
xml string
readMode XmlReadMode
resultMode XmlReadMode
datasetName string
tableCount int
state ReadState
readerLocalName string
readerNS string
Результат void

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

public AssertUniqueConstraint ( string label, UniqueConstraint uc, string name, bool isPrimaryKey, string colNames ) : void
label string
uc UniqueConstraint
name string
isPrimaryKey bool
colNames string
Результат void

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

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