I have a table like T1 with columns C1 and C2. I have the dbml with this table T1.
I want to generate the script for Insert/Update/delete.
For eg:
I don’t want datacontext to excute the task.
db.T1.InsertOnSubmit(T);
db.SubmitChanges();
Instead I want the script alone.
INSERT INTO
[DB].[dbo].[T1]("C1","C2")
Values
("abc","abc")
There’s a few things you could try:
db.Log = Console.Outto view the generated SQL in a console application