Guest User

Untitled

a guest
Aug 14th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. Equivalent of GetCommand() function of (Linq to Sql) in (Linq to Entity)
  2. string sqlCmd = dc.GetCommand(q).CommandText;
  3. {
  4. foreach (System.Data.Common.DbParameter dbp in dc.GetCommand(q).Parameters)
  5. {
  6. cmd.Parameters.Add(new System.Data.SqlClient.SqlParameter(dbp.ParameterName, dbp.Value));
  7. }
  8. }
Add Comment
Please, Sign In to add comment