I have an application that has been developed under version 1.02004.1 and I am trying to upgrade it to work with 1.02004.2
I first regenerated all the code, including the very basic manager classes that I had put together for this application and teh recompiled the solution.... 0 errors GREAT
However when I run the application it works fine until it gets to a piece of code that tries to retrive an entity from its primary Key...
I get the error - The field EmployeeID is read-only and can't be changed
which is fine because EmployeeID is the primary key and so therefore should be read only.
My issue is that the code causing this error is:
DataAccessAdapter LLBLAdapter = new DataAccessAdapter(...)
mEntity = new EmployeeEntity(intID)
LLBLAdapter.FetchEntity(mEntity)
It is the middle line that causes the error - intID is the PrimaryKeyID of the Employee I want to return. But I dont see why this code is trying to change the value of the field.
What am I doing wrong?