How to add data into a table of relational
-
I have 3 tables : "user", "purview", "user_purview". "user" associated with "purview" through "user_purview". now, I will add purview (one or more) to user. I use LinqToSql. I find out user_purview mapping class has properties: User, Purview, UserId, PurviewId. Do I just need to set the value of userId and purviewid, then submitchanges is ok?
-
I have 3 tables : "user", "purview", "user_purview". "user" associated with "purview" through "user_purview". now, I will add purview (one or more) to user. I use LinqToSql. I find out user_purview mapping class has properties: User, Purview, UserId, PurviewId. Do I just need to set the value of userId and purviewid, then submitchanges is ok?
If userID and purviewID are primary keys for the tables then no the underlying framework will take care of it
I know the language. I've read a book. - _Madmatt