remoting problem

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
....?
 
D

Dennis hoyer

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top