I am using something like the above sample code but when i try to execute it, it says that the query syntax is wrong and there is an error in the query syntax near keyword into...
System.Data.Objects.ObjectParameter[] opc=new System.Data.Objects.ObjectParameter[1];
//just sample
opc[0]=new System.Data.Objects.ObjectParameter("columnname","columnvaluetoinsert")
string strQuery="insert into tablename(columnname)values(@columnname)";
var query1 = entities.CreateQuery(strQuery, opc);
query1.Execute(System.Data.Objects.MergeOption.NoTracking);