return id field when executing SQL in LINQ

Posted by Programmer's Goodies on September 16, 2011

I’m trying to execute an SQL insert query using LINQ and returning the ID field. My code does not work, can anybody tell me if my syntax is wrong? string query = "insert into EnvironmentalReportDepts "; query += "(fkDeptID, OrderNumber, fkEnvironmentalReportID) "; query += "values(" +

... [read more]

Rating

not rated

Reviews

There are currently no comments or reviews.

Submit a review:

Login required.