ado.net - How to I get a DbCommand from an Entity Framework IQueryable -
when using linq sql, can use datacontext.getcommand method dbcommand instance iqueryable. i'm using entity framework (code-first, shouldn't matter) , want dbcommand iqueryable generated against dbcontext.
is possible? if how?
i'm not aware of method retrieve dbcommand
linq-to-entities query can try convert query objectquery<t>
, call commandtext
property.
Comments
Post a Comment