Hi,
My scenario: I have over 200 tables in database and they are in highly normalized form, my target was to make an asp .net web form application which provides user a form to enter or edit data, that data should be saved in those tables back in DB.Every table which has primary key, has primary key column as an identity column.
So i decided to use typed datasets and now i am stuck and don't know that what to do, i am getting this foreign key constraint violation exception and luckily i do know that why the hell i am seeing this exception,
What i Already know or Tried:
- i know that every table in the dataset should be updated after every insert, for that i have enabled "Refresh data table" option in advanced options for few of my tables as i can not enable it one by one in all 200+ tables, doesn't seem to work.
- i disabled foreign key constraint check from the database for all tables, but i ended up with insertion of records with foreign key IDs like -1, -2,-1 etc
- i can get it working by selecting "both foreign key and relation" option from the edit relationship window, but does that mean that i have to do this for all 20 relations that exists among the tables? :-(
is there anybody out there who knows that how to solve this? or atleast suggest me a better way to work with 200+ table's asp .net application .. ?????