Monday, September 19, 2011

Custom Entity Object from Database View

Today's concept-of-the-day: the Entity Framework DefiningQuery.

The DefiningQuery is a customizable XML element in the EF edmx file that allows one to map a raw SQL query to a straight-up Entity POCO.

There are a few, uh, provisos. Ah, a couple of quid pro quo. Still, handy when you're in a tight spot.

You're welcome, internet.


No comments:

Post a Comment