G
Guest
I would like to create two ForeignKeyConstraints like this..
ParentTableA - ForeignKeyConstraint on ParentTableA.PrimaryKey =
ChildTableA.ForeignKey1 and ChildTableA.UseTableA = True
ParentTableB - ForeignKeyConstraint on ParentTableB.PrimaryKey =
ChildTableA.ForeignKey1 and ChildTableA.UseTableA = False
Is this possible? I have not found any way to create a ForeignKeyConstraint
on a static value. I want to be able to do this so that when I change the
PrimaryKey of a parent table, it will correctly cascade and update the child
rows. I would also like to be able to create a DataRelation this same way.
ParentTableA - ForeignKeyConstraint on ParentTableA.PrimaryKey =
ChildTableA.ForeignKey1 and ChildTableA.UseTableA = True
ParentTableB - ForeignKeyConstraint on ParentTableB.PrimaryKey =
ChildTableA.ForeignKey1 and ChildTableA.UseTableA = False
Is this possible? I have not found any way to create a ForeignKeyConstraint
on a static value. I want to be able to do this so that when I change the
PrimaryKey of a parent table, it will correctly cascade and update the child
rows. I would also like to be able to create a DataRelation this same way.