ElegantCode

Day: March 15, 2012

    • Home
    • 2012
    • March
    • 15

Using Entity Framework to query Views without a Key

By: Jarod Ferguson Category:General PostTag: New Post:

By definition an Entity should have an Identity. An issue that often comes up with EF is querying views which do not have a primary key. No key, no laundry. My preferred way to get around this is to create a value object (POCO) and use SqlQuery<T> to materialize results from the view. This is […]

Read More

Find me

RSS
Facebook
Twitter
LinkedIn

Disclaimer

The opinions and content expressed here are my own and not those of my employer.

Recent Posts

  • Life’s a Party: Analyzing Party Compositions for Combat – Encounters in Dungeons & Dragons Fifth Edition through Monte Carlo Methods
  • Getting Azure API Access Token Via OAuth or MSAL
  • An agile team is one that…
  • Testing Azure ARM templates is easier with ARM-TTK
  • 2021 PC Build List

Find

Recent Articles

  • Life’s a Party: Analyzing Party Compositions for Combat – Encounters in Dungeons & Dragons Fifth Edition through Monte Carlo Methods
  • Getting Azure API Access Token Via OAuth or MSAL
  • An agile team is one that…
  • Testing Azure ARM templates is easier with ARM-TTK
  • 2021 PC Build List

Recent Comments

  • David McClelland on Whidbey Preview
  • Data, data, and more data – Slacker News on Data, data, and more data
  • Traditional Agile is now missing the point – Slacker News on Traditional Agile is now missing the point
  • Professional Development – 2019 – Week 37 – Geoff Mazeroff on Traditional Agile is now missing the point
  • Traditional Agile is now missing the point – CodingNova on Traditional Agile is now missing the point

Proudly powered by WordPress | Theme: iThemer by iThemer.