0

when adding a view to my entity framework, is there such a thing as a model without a map? How do I specify primary key property for a view in a map?

I am just trying to add a view to my entity framework so I can do a simple select from a table to populate a ddl.

Lisa Solomon
  • 136
  • 2
  • 15
  • Can you please elaborate a bit more on what you are trying to achieve? some code snippets would be helpful too. – dubes Jan 28 '16 at 14:25
  • Yes. http://stackoverflow.com/questions/7461265/how-to-use-views-in-code-first-entity-framework – Steve Greene Jan 28 '16 at 15:23

1 Answers1

0

yes, but i don't think it hurts to add the model, so i did.

Lisa Solomon
  • 136
  • 2
  • 15