Groups | Blog | Home
all groups > dotnet remoting > january 2008 >

dotnet remoting : remoting problem


Anthony Sox
1/26/2008 12:57:23 PM
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
....?

Dennis hoyer
1/27/2008 6:15:25 AM
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


-------
http://www.xing.com/profile/dennis_Hoyer2
AddThis Social Bookmark Button