Problem with inheritance, EF 5, and dotConnect for Oracle
Posted: Wed 11 Dec 2013 13:47
Hi,
We have a couple of tables in our database that include BLOB columns, and are trying to map two different classes to the table, one with the BLOB and one without, so we don't have to retrieve all that extra data just to show a list of available rows. Once a row is selected, we want to use the other (derived) class to retrieve the same row WITH the BLOB column.
We are using EF 5 code first approach to an existing database, and the latest dotConnect. When we run the queries, we get this error:
"ORA-00904: \"Extent1\".\"Discriminator\": invalid identifier"
I understand how a discriminator column would work in EF, but the two classes are not SUPPOSED to be different, we just want the two versions for efficiency. Can someone tell me how I would set up the code model to accomplish this?
Thanks,
Peter
We have a couple of tables in our database that include BLOB columns, and are trying to map two different classes to the table, one with the BLOB and one without, so we don't have to retrieve all that extra data just to show a list of available rows. Once a row is selected, we want to use the other (derived) class to retrieve the same row WITH the BLOB column.
We are using EF 5 code first approach to an existing database, and the latest dotConnect. When we run the queries, we get this error:
"ORA-00904: \"Extent1\".\"Discriminator\": invalid identifier"
I understand how a discriminator column would work in EF, but the two classes are not SUPPOSED to be different, we just want the two versions for efficiency. Can someone tell me how I would set up the code model to accomplish this?
Thanks,
Peter