This question is locked. New answers and comments are not allowed.
Hi,
When describing how to call a stored procedure, the documentation of OA says:
If a persistence-capable class is specified as result type, the columns selected in the sql statement must at least contain the primary key columns of the mapped result class, and additionally the discriminator column if defined and the version column(s) if defined.
It sounds reasonable - if PK is supplied all missing data can be supplemented (never mind the efficiency).
But I've made an experiment and prepared some SP that misses one of the columns (not PK / discriminator / version). And I've got a message:
Error reading field PersistentClasses.Order.oREnteredByPRS from ResultSet: System.IndexOutOfRangeException
"oREnteredByPRS" corresponds to the missing column.
I'm using the 2008.3.1327.2 version of OA.
Regards
Tomasz
When describing how to call a stored procedure, the documentation of OA says:
If a persistence-capable class is specified as result type, the columns selected in the sql statement must at least contain the primary key columns of the mapped result class, and additionally the discriminator column if defined and the version column(s) if defined.
It sounds reasonable - if PK is supplied all missing data can be supplemented (never mind the efficiency).
But I've made an experiment and prepared some SP that misses one of the columns (not PK / discriminator / version). And I've got a message:
Error reading field PersistentClasses.Order.oREnteredByPRS from ResultSet: System.IndexOutOfRangeException
"oREnteredByPRS" corresponds to the missing column.
I'm using the 2008.3.1327.2 version of OA.
Regards
Tomasz