1
votes

Environment:

  • VS2012 Professional;
  • IIS 8;
  • Windows 7 Professional;
  • Oracle 11g;

Settings:

Goal:

  • Dynamically define a LINQ using string parameters returning the result assigned to an object of EF.

Tries:

(Some printscreen source code)

enter image description here

enter image description here

Blocked by:

Was achieved the primary goal of making a dynamic query including its attributes referring to other objects of the EF. But we could not convert IQueryable result to a concrete object of EF.

How could I convert or cast my IQueryable to an dynamic IEnum or List of Entity Object or even a simple Dataset?

Thank you guys,

Paes, Andrew

1
"LINQ To SQL" is a separate product which predates EF. Be careful not to confuse the two. - Cory Nelson

1 Answers

0
votes

You can cast the result to IEnumberable firstly by calling AsEnumerable() on your resultSet.