2 types derived from Constraint
System.Data (2)
fx\src\data\System\Data\ForeignKeyConstraint.cs (1)
25
public class ForeignKeyConstraint :
Constraint
{
fx\src\data\System\Data\UniqueConstraint.cs (1)
24
public class UniqueConstraint :
Constraint
{
86 references to Constraint
System.Data (86)
fx\src\data\System\Data\CodeGen\datacache.cs (1)
1264
foreach(
Constraint
constraint in table.Constraints) {
fx\src\data\System\Data\Constraint.cs (2)
123
internal abstract
Constraint
Clone(DataSet destination);
124
internal abstract
Constraint
Clone(DataSet destination, bool ignoreNSforTableLookup);
fx\src\data\System\Data\ConstraintCollection.cs (48)
32
private
Constraint
[] delayLoadingConstraints;
52
/// <para>Gets the <see cref='System.Data.
Constraint
'/>
55
public
Constraint
this[int index] {
58
return(
Constraint
) List[index];
74
/// <para>Gets the <see cref='System.Data.
Constraint
'/> from the collection with the specified name.</para>
76
public
Constraint
this[string name] {
82
return (index < 0) ? null : (
Constraint
)List[index];
90
public void Add(
Constraint
constraint) {
95
internal void Add(
Constraint
constraint, bool addUniqueWhenAddingForeign) {
151
public
Constraint
Add(string name, DataColumn[] columns, bool primaryKey) {
163
public
Constraint
Add(string name, DataColumn column, bool primaryKey) {
178
public
Constraint
Add(string name, DataColumn primaryKeyColumn, DataColumn foreignKeyColumn) {
188
public
Constraint
Add(string name, DataColumn[] primaryKeyColumns, DataColumn[] foreignKeyColumns) {
194
public void AddRange(
Constraint
[] constraints ) {
202
foreach(
Constraint
constr in constraints) {
234
private bool AutoGenerated(
Constraint
constraint) {
261
private void ArrayAdd(
Constraint
constraint) {
266
private void ArrayRemove(
Constraint
constraint) {
286
private void BaseAdd(
Constraint
constraint) {
301
private void BaseGroupSwitch(
Constraint
[] oldArray, int oldLength,
Constraint
[] newArray, int newLength) {
339
private void BaseRemove(
Constraint
constraint) {
368
/// <para>Indicates if a <see cref='System.Data.
Constraint
'/> can be removed.</para>
371
public bool CanRemove(
Constraint
constraint) {
375
internal bool CanRemove(
Constraint
constraint, bool fThrowException) {
380
/// <para>Clears the collection of any <see cref='System.Data.
Constraint
'/>
402
Constraint
[] constraints = new
Constraint
[List.Count];
425
/// <para>Indicates whether the <see cref='System.Data.
Constraint
'/>, specified by name, exists in the collection.</para>
437
return (name == ((
Constraint
) List[index]).ConstraintName);
440
public void CopyTo(
Constraint
[] array, int index) {
448
array[index + i] = (
Constraint
)list[i];
455
internal
Constraint
FindConstraint(
Constraint
constraint) {
458
if (((
Constraint
)List[i]).Equals(constraint))
459
return(
Constraint
)List[i];
529
/// <para>Returns the index of the specified <see cref='System.Data.
Constraint
'/> .</para>
531
public int IndexOf(
Constraint
constraint) {
535
if (constraint == (
Constraint
) List[i])
544
/// <para>Returns the index of the <see cref='System.Data.
Constraint
'/>, specified by name.</para>
561
Constraint
constraint = (
Constraint
) List[i];
602
if (NamesEqual(name, ((
Constraint
)List[i]).ConstraintName, true, table.Locale) != 0) {
603
throw ExceptionBuilder.DuplicateConstraintName(((
Constraint
)List[i]).ConstraintName);
613
/// Removes the specified <see cref='System.Data.
Constraint
'/>
616
public void Remove(
Constraint
constraint) {
639
Constraint
c = this[index];
649
Constraint
c = this[name];
fx\src\data\System\Data\ConstraintConverter.cs (1)
47
if (destinationType == typeof(InstanceDescriptor) && value is
Constraint
) {
fx\src\data\System\Data\ConstraintEnumerator.cs (10)
23
Constraint
currentObject;
31
Constraint
candidate;
47
Debug.Assert(constraints.Current is
Constraint
, "ConstraintEnumerator, contains object which is not constraint");
48
candidate = (
Constraint
)constraints.Current;
58
public
Constraint
GetConstraint() {
64
protected virtual bool IsValidCandidate(
Constraint
constraint) {
68
protected
Constraint
CurrentObject {
82
protected override bool IsValidCandidate(
Constraint
constraint) {
101
protected override bool IsValidCandidate(
Constraint
constraint) {
114
protected override bool IsValidCandidate(
Constraint
constraint) {
fx\src\data\System\Data\DataColumnCollection.cs (1)
473
Constraint
constraint = en.GetConstraint();
fx\src\data\System\Data\DataException.cs (2)
653
static public Exception ExpressionAndConstraint(DataColumn column,
Constraint
constraint) {
1218
static public Exception TableInConstraint(DataTable table,
Constraint
constraint) {
fx\src\data\System\Data\DataRelation.cs (1)
761
foreach (
Constraint
cs in ChildTable.Constraints) {
fx\src\data\System\Data\DataSet.cs (2)
613
Constraint
constraint = (
Constraint
)constraints.GetConstraint();
fx\src\data\System\Data\DataTable.cs (7)
488
Constraint
c = Constraints[i];
962
foreach (
Constraint
constraint in Constraints) {
1234
foreach (
Constraint
constr in Constraints)
1384
foreach (
Constraint
constraint in Constraints) {
2265
Constraint
oldConstraint = clone.Constraints.FindConstraint(clonedConstraint);
2273
Constraint
oldConstraint = clone.Constraints.FindConstraint(clonedConstraint);
5821
foreach(
Constraint
tempConstrain in sourceTable.Constraints) {
fx\src\data\System\Data\DataTableCollection.cs (2)
294
foreach (
Constraint
constr in table.Constraints) {
351
foreach (
Constraint
constr in table.Constraints) {
fx\src\data\System\Data\ForeignKeyConstraint.cs (2)
610
internal override
Constraint
Clone(DataSet destination) {
614
internal override
Constraint
Clone(DataSet destination, bool ignorNSforTableLookup) {
fx\src\data\System\Data\Merger.cs (3)
395
Constraint
src = table.Constraints[i];
396
Constraint
dest = src.Clone(dataSet, _IgnoreNSforTableLookup);
405
Constraint
cons = dest.Table.Constraints.FindConstraint(dest);
fx\src\data\System\Data\UniqueConstraint.cs (2)
253
internal override
Constraint
Clone(DataSet destination) {
257
internal override
Constraint
Clone(DataSet destination, bool ignorNSforTableLookup) {
fx\src\data\System\Data\xmlsaver.cs (2)
258
foreach(
Constraint
constr in table.Constraints) {
380
foreach (
Constraint
cs in dt.Constraints) {