c# - Removing constraints for data set -


i'm new asp.net question may sound dumb need help. i'm getting error:

failed enable constraints. 1 or more rows contain values violating non-null, unique, or foreign-key constraints.

so decide choose quick way suggested visual studio: turn of constraints in data set. found on internet, solution add photodatatable.enforceconstraints = false; error:

'photodataset.photosdatatable' not contain definition 'enforceconstraints' , no extension method 'enforceconstraints' accepting first argument of type 'photodataset.photosdatatable' found (are missing using directive or assembly reference?)

i'm wondering if need include 'using' , if so, should include? otherwise, should do? please help.

enforceconstraints property of dataset, not datatable.


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -