Want to do a SELECT on a table without primary key
Posted: Fri 18 Mar 2011 17:30
Hello,
Using DotConnect for Oracle with VS 2010 and EF4.
I need to use LINQ to make SELECT queries on a view. The view in Oracle does not have a primary key.
The edml absolutely needs a primary so I created a fake one in the store model and mapped a column on it. But when I do a "from q in this.getAll()" it is looking for the column in Oracle... but it is not there. Will I have to ask our DBA to create a useless primary column just because my application absolutely needs one??
Using DotConnect for Oracle with VS 2010 and EF4.
I need to use LINQ to make SELECT queries on a view. The view in Oracle does not have a primary key.
The edml absolutely needs a primary so I created a fake one in the store model and mapped a column on it. But when I do a "from q in this.getAll()" it is looking for the column in Oracle... but it is not there. Will I have to ask our DBA to create a useless primary column just because my application absolutely needs one??