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.
Comments
Post a Comment