Insert (Save) data into Foreign and Primary Table using C# and VB.Net in ASP.Net

Last Reply one year ago By pandeyism

Posted one year ago


I have 2 tables: Member and Project and a foreign key in Member, the ProjectId(primary key) from table Project.

How to extract the ProjectId from table Member, using C# language?

2 tables with their fields:

Member: MemberId-primary key,FirstName,LastName,Email, Project and a foreign key ProjectId

Project:ProjectId-primary key,Allocation,Pers1,Pers2.

So, I want to insert a new member in Member. I don't know how to get the foreign key ProjectId.

I want an alternative without Stored procedure.

You are viewing reply posted by: pandeyism one year ago.
Posted one year ago