remoting problem

  • Thread starter Thread starter Anthony Sox
  • Start date Start date
A

Anthony Sox

Hi all

i have an object example employee with property Id. when the employee object
is new the Id property is 0 and when it is saved to the database the Id
property is set to the automuber from the database. The data access
component is a remote component.

my problem is when when i run my application and place break point my object
is updated with the correct value at the data access component but when it
is serialized back to the application it value if reset to 0.

any ideas? or is there something special i should to maybe to config file
....?
 
Hi,
if you have an autonumber field in your database,
your application will not get this autonumber automaticly.

The better way is to create a new guid and save it by your
application.
If your backend haven't a guid datatype, then cast this to a string

best regards
Dennis Hoyer
 
Back
Top