c# - Foreign key without constraints? -


I was studying DataRelations in Ado.Net and came to this manufacturer

  

Here, the last parameter is createConstraints , which is explained by MSDN. as

createConstraints

type: System.Boolean

A value indicates what constraints were created Are there. The truth is, if the obstacles are born otherwise, the wrong.

What happens if I set it to false ? How can it create a foreign key without obstacles?

Yes, the relationship will be created without the constraint ConstraintCollection < P> More about the obstacles added:

Relationship parents can cascade different changes in their child's lines from Detroit. To control how values ​​are changed in hair rows, add a foreign raw content in the ConstraintCollection of the Datatale object. ConstraintCollection determines what action is taken when a value is removed or updated in a parent table.



Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -