8 instantiations of ForeignKeyConstraint
System.Data (8)
fx\src\data\System\Data\ConstraintCollection.cs (3)
179
ForeignKeyConstraint constraint = new
ForeignKeyConstraint
(name, primaryKeyColumn, foreignKeyColumn);
189
ForeignKeyConstraint constraint = new
ForeignKeyConstraint
(name, primaryKeyColumns, foreignKeyColumns);
724
ForeignKeyConstraint newConstraint = new
ForeignKeyConstraint
(constr.constraintName, parents, childs);
fx\src\data\System\Data\DataRelationCollection.cs (1)
723
relation.ChildTable.Constraints.Add(foreignKey = new
ForeignKeyConstraint
(relation.ParentColumnsReference, relation.ChildColumnsReference));
fx\src\data\System\Data\DataTable.cs (1)
592
ForeignKeyConstraint fk = new
ForeignKeyConstraint
(constraintName, parentkeyColumns, childkeyColumns);
fx\src\data\System\Data\ForeignKeyConstraint.cs (2)
654
ForeignKeyConstraint clone = new
ForeignKeyConstraint
(ConstraintName,relatedColumns, columns);
689
ForeignKeyConstraint clone = new
ForeignKeyConstraint
(ConstraintName, relatedColumns, columns);
fx\src\data\System\Data\XMLSchema.cs (1)
1120
fkc = new
ForeignKeyConstraint
( name, pKey, fKey );
101 references to ForeignKeyConstraint
System.Data (101)
fx\src\data\System\Data\CodeGen\datacache.cs (5)
1265
if (constraint is
ForeignKeyConstraint
) {
1277
ForeignKeyConstraint
fkc = (
ForeignKeyConstraint
) constraint;
1292
initClassMethod.Statements.Add(VariableDecl(typeof(
ForeignKeyConstraint
),"fkc"));
1298
New(typeof(
ForeignKeyConstraint
), new CodeExpression[]{Str(fkc.ConstraintName), parentColumns, childrenColumns})
fx\src\data\System\Data\ConstraintCollection.cs (18)
119
else if (constraint is
ForeignKeyConstraint
) {
120
ForeignKeyConstraint
fk = (
ForeignKeyConstraint
)constraint;
133
AddForeignKeyConstraint((
ForeignKeyConstraint
)constraint);
173
/// Constructs a new <see cref='System.Data.
ForeignKeyConstraint
'/>
179
ForeignKeyConstraint
constraint = new ForeignKeyConstraint(name, primaryKeyColumn, foreignKeyColumn);
185
/// <para>Constructs a new <see cref='System.Data.
ForeignKeyConstraint
'/> with the specified parent columns and
189
ForeignKeyConstraint
constraint = new ForeignKeyConstraint(name, primaryKeyColumns, foreignKeyColumns);
227
private void AddForeignKeyConstraint(
ForeignKeyConstraint
constraint) {
235
ForeignKeyConstraint
fk = (constraint as
ForeignKeyConstraint
);
358
else if (constraint is
ForeignKeyConstraint
) {
494
internal
ForeignKeyConstraint
FindForeignKeyConstraint(DataColumn[] parentColumns, DataColumn[] childColumns) {
497
ForeignKeyConstraint
constraint = (List[i] as
ForeignKeyConstraint
);
703
ForeignKeyConstraint
constr = (
ForeignKeyConstraint
) delayLoadingConstraints[i];
724
ForeignKeyConstraint
newConstraint = new ForeignKeyConstraint(constr.constraintName, parents, childs);
fx\src\data\System\Data\ConstraintConverter.cs (3)
55
ForeignKeyConstraint
constr = (
ForeignKeyConstraint
)value;
56
System.Reflection.ConstructorInfo ctor = typeof(
ForeignKeyConstraint
).GetConstructor(new Type[] { typeof(string), typeof(string), typeof(string[]),
fx\src\data\System\Data\ConstraintEnumerator.cs (7)
83
return(constraint is
ForeignKeyConstraint
);
86
public
ForeignKeyConstraint
GetForeignKeyConstraint() {
89
return(
ForeignKeyConstraint
)CurrentObject;
102
return((constraint is
ForeignKeyConstraint
) && (((
ForeignKeyConstraint
)constraint).Table == table));
115
return((constraint is
ForeignKeyConstraint
) && (((
ForeignKeyConstraint
)constraint).RelatedTable == table));
fx\src\data\System\Data\DataColumnCollection.cs (1)
474
if (((
ForeignKeyConstraint
)constraint).ParentKey.ContainsColumn(column))
fx\src\data\System\Data\DataException.cs (2)
554
static public Exception NeededForForeignKeyConstraint(UniqueConstraint key,
ForeignKeyConstraint
fk) {
594
static public Exception RemoveParentRow(
ForeignKeyConstraint
constraint) {
fx\src\data\System\Data\DataRelation.cs (8)
60
private
ForeignKeyConstraint
childKeyConstraint = null;
483
ForeignKeyConstraint
constraint = ChildTable.Constraints.FindForeignKeyConstraint(ChildKey.ColumnsReference, ParentKey.ColumnsReference);
576
/// Gets the <see cref='System.Data.
ForeignKeyConstraint
'/> for the relation.
579
public virtual
ForeignKeyConstraint
ChildKeyConstraint {
612
internal void SetChildKeyConstraint(
ForeignKeyConstraint
value) {
762
if (cs is
ForeignKeyConstraint
) {
763
ForeignKeyConstraint
fk = (
ForeignKeyConstraint
) cs;
fx\src\data\System\Data\DataRelationCollection.cs (1)
720
ForeignKeyConstraint
foreignKey = relation.ChildTable.Constraints.FindForeignKeyConstraint(relation.ParentColumnsReference, relation.ChildColumnsReference);
fx\src\data\System\Data\DataSet.cs (9)
1137
ForeignKeyConstraint
foreign = constraints[j] as
ForeignKeyConstraint
;
3011
if (cons[j] is
ForeignKeyConstraint
) {
3040
ForeignKeyConstraint
constraint = null;
3045
if (constraints[j] is
ForeignKeyConstraint
) {
3046
constraint = (
ForeignKeyConstraint
)constraints[j];
3070
ForeignKeyConstraint
constraint = null;
3075
if (constraints[j] is
ForeignKeyConstraint
) {
3076
constraint = (
ForeignKeyConstraint
)constraints[j];
fx\src\data\System\Data\DataTable.cs (14)
506
ForeignKeyConstraint
fk = c as
ForeignKeyConstraint
;
592
ForeignKeyConstraint
fk = new ForeignKeyConstraint(constraintName, parentkeyColumns, childkeyColumns);
2260
ForeignKeyConstraint
foreign = Constraints[j] as
ForeignKeyConstraint
;
2264
ForeignKeyConstraint
clonedConstraint = foreign.Clone(clone);
2286
ForeignKeyConstraint
foreign = Constraints[j] as
ForeignKeyConstraint
;
2290
ForeignKeyConstraint
newforeign = foreign.Clone(clone);
2636
ForeignKeyConstraint
constraint = constraints.GetForeignKeyConstraint();
5822
ForeignKeyConstraint
fkc = tempConstrain as
ForeignKeyConstraint
; // we have already cloned the UKC when cloning the datatable
5826
ForeignKeyConstraint
newFKC = (
ForeignKeyConstraint
)fkc.Clone(destinationTable.DataSet);
fx\src\data\System\Data\DataTableCollection.cs (2)
397
ForeignKeyConstraint
constraint = constraints.GetForeignKeyConstraint();
407
ForeignKeyConstraint
constraint = constraints.GetForeignKeyConstraint();
fx\src\data\System\Data\ForeignKeyConstraint.cs (11)
46
/// Initializes a new instance of the <see cref='System.Data.
ForeignKeyConstraint
'/> class with the specified parent and
56
/// Initializes a new instance of the <see cref='System.Data.
ForeignKeyConstraint
'/> class with the specified name,
68
/// Initializes a new instance of the <see cref='System.Data.
ForeignKeyConstraint
'/> class with the specified arrays
78
/// Initializes a new instance of the <see cref='System.Data.
ForeignKeyConstraint
'/> class with the specified name,
654
ForeignKeyConstraint
clone = new ForeignKeyConstraint(ConstraintName,relatedColumns, columns);
668
internal
ForeignKeyConstraint
Clone(DataTable destination) {
689
ForeignKeyConstraint
clone = new ForeignKeyConstraint(ConstraintName, relatedColumns, columns);
757
/// <para>Gets a value indicating whether the current <see cref='System.Data.
ForeignKeyConstraint
'/> is identical to the specified object.</para>
760
if (!(key is
ForeignKeyConstraint
))
762
ForeignKeyConstraint
key2 = (
ForeignKeyConstraint
) key;
fx\src\data\System\Data\Rule.cs (1)
14
/// <para>Indicates the action that occurs when a <see cref='System.Data.
ForeignKeyConstraint
'/>
fx\src\data\System\Data\UniqueConstraint.cs (1)
188
ForeignKeyConstraint
constraint = cs.GetForeignKeyConstraint();
fx\src\data\System\Data\xmlsaver.cs (14)
94
else if (type == typeof(
ForeignKeyConstraint
)) {
260
if (constr is
ForeignKeyConstraint
) { // if parent table does not exist , no need to create FKConst
261
if (!_tables.Contains((DataTable)(((
ForeignKeyConstraint
)constr).RelatedTable))) {
381
ForeignKeyConstraint
fk = (cs as
ForeignKeyConstraint
);
1432
private bool AutoGenerated(
ForeignKeyConstraint
fk) {
1436
internal static bool AutoGenerated(
ForeignKeyConstraint
fk, bool checkRelation) {
1778
else if (constraints[i] is
ForeignKeyConstraint
&& genNested) {
1779
ForeignKeyConstraint
foreign = (
ForeignKeyConstraint
)constraints[i];
1850
AddExtendedProperties(foreign.extendedProperties, constraint, typeof(
ForeignKeyConstraint
));
1872
if (foreign.AcceptRejectRule !=
ForeignKeyConstraint
.AcceptRejectRule_Default)
1876
if (foreign.UpdateRule !=
ForeignKeyConstraint
.Rule_Default)
1879
if (foreign.DeleteRule !=
ForeignKeyConstraint
.Rule_Default)
fx\src\data\System\Data\XMLSchema.cs (4)
295
if (instance is
ForeignKeyConstraint
) {
1066
return
ForeignKeyConstraint
.AcceptRejectRule_Default;
1079
return
ForeignKeyConstraint
.Rule_Default;
1110
ForeignKeyConstraint
fkc = null;