Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Equivalent of GetCommand() function of (Linq to Sql) in (Linq to Entity)
- string sqlCmd = dc.GetCommand(q).CommandText;
- {
- foreach (System.Data.Common.DbParameter dbp in dc.GetCommand(q).Parameters)
- {
- cmd.Parameters.Add(new System.Data.SqlClient.SqlParameter(dbp.ParameterName, dbp.Value));
- }
- }
Add Comment
Please, Sign In to add comment