This discussion is archived
1 2 Previous Next 15 Replies Latest reply: Oct 25, 2012 6:06 PM by 932936 Go to original post RSS
  • 15. Re: EF beta - views with no primary key
    932936 Newbie
    Currently Being Moderated
    All,

    My solution (which seems to work) is to set the primary key in Oracle (per Anthony's workaround) and then go into my Entity Model and remove the existing key, select all columns, then set as primary key. This seems to satisfy the not null requirement (albiet it is a bit of a hassle, and I hope M$ figures out it's just plain dumb to force all views in EF to have PKs (i.e. readonly views should not ever have this requirement), but it works).
1 2 Previous Next

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points