This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
I have write a stored procedure for aggregate values to test, a very simple query:
But when I execute this line in my project:
I have an 'Mindscape.LightSpeed.LightSpeedException error :
Why it's necessary to have an identity column in a stored procedure ? I do not understand. Is somebody can help me ? I am very disapointed. |
|
|
If you are loading entities via a stored procedure they need to have an Id which is why the error is raised - those generated methods using UnitOfWork.Find(ProcedureQuery) which is intended to load entities. Given you dont want to return an Id though you can use UnitOfWork.Project(ProcedureQuery) as this does not require an Id to be present. Have a look at the generated code for ProcPeseeGroupby() and then use a manual call to UnitOfWork.Project leveraging the same procedure query you see in the generated method.
|
|
|
Thank's for the reply. I bypassed the problem by adding a temporary identifier :
|
|