Hi
I just moved my declarations as follows
#region Fields
private static readonly DataAccessAdapter adapteraccountnature = new DataAccessAdapter();
private static readonly IPredicateExpression filteraccountnature = new PredicateExpression();
private static AccountnatureEntity accountnature = new AccountnatureEntity();
#endregion Fields
Then I wrote the save function
adapteraccountnature.FetchEntity(accountnature);
accountnature.Description = ChangeCase.ToTitleCase(tbxdescription.Text.Trim());
accountnature.Createddate = ServerDateTime.getcurrentserverdatewithtime();
accountnature.CreateduserId = StandardMessage.loginuserid;
var succeeded = adapteraccountnature.SaveEntity(accountnature);
if (succeeded)
{
message = StandardMessage.datasavesuccess;
adapteraccountnature.CloseConnection();
DoRefresh();
}
else
{
message = StandardMessage.datasavefailure;
adapteraccountnature.CloseConnection();
}
Now when I try to save i get error, outofsync !