Print Page | Close Window

Error when using GetEntities

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce Classic
Forum Discription: For .NET 2.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=557
Printed Date: 02-Jun-2025 at 9:15am


Topic: Error when using GetEntities
Posted By: Darren
Subject: Error when using GetEntities
Date Posted: 20-Nov-2007 at 8:03am

iam getting this error i have never seen before , dont know if it is devforce related or db related.

 
the code i am using is:
 

Dim branchTMs As New EntityList(Of Branch_TerritoryManager)

branchTMs = mPersMgr.GetEntities(Of Branch_TerritoryManager)()

 

the code halts on the second line and produces the above error.

The table that it is pulling from has 3 primary keys.
Iam using other tables with the same setup and have no problems getting the data.
Any ideas?



Replies:
Posted By: jeffdoolittle
Date Posted: 20-Nov-2007 at 8:37am
Have you tried remapping your entity in the ORM?  It is possible that the primary key length has changed in the DB, but that the Entity mapping hasn't been updated to reflect the change.

--Jeff


Posted By: Darren
Date Posted: 20-Nov-2007 at 8:40am
I have tried remapping in the orm .
 
Do you think i should remove from orm and then add again into orm.
 
The db did change and i done the usual validate in the orm tool.



Print Page | Close Window