LoadProperty in DataPortal.Insert()

LoadProperty in DataPortal.Insert()

Old forum URL: forums.lhotka.net/forums/t/6123.aspx


Manu Singhal posted on Monday, January 12, 2009

Hi!

I have a DataPortal.Insert Method where I Am Retrieving some values  and Loading them in the business objects properties.

But After Save Method is over the Values I Retrieved and Set are removed from Business Object?

What might be the issue.

I have checked that values are retrieved properly and LoadProperty Succeeds.

sergeyb replied on Monday, January 12, 2009

I am guessing you are not using the result of Save().  Your should have myBO = myBO.Save() code somewhere in your app.

 

Sergey Barskiy

Principal Consultant

office: 678.405.0687 | mobile: 404.388.1899

cid:_2_0648EA840648E85C001BBCB886257279
Microsoft Worldwide Partner of the Year | Custom Development Solutions, Technical Innovation

 

From: Manu Singhal [mailto:cslanet@lhotka.net]
Sent: Monday, January 12, 2009 1:30 AM
To: Sergey Barskiy
Subject: [CSLA .NET] LoadProperty in DataPortal.Insert()

 

Hi!

I have a DataPortal.Insert Method where I Am Retrieving some values  and Loading them in the business objects properties.

But After Save Method is over the Values I Retrieved and Set are removed from Business Object?

What might be the issue.

I have checked that values are retrieved properly and LoadProperty Succeeds.



Copyright (c) Marimer LLC