This question is locked. New answers and comments are not allowed.
Hi telerik,
In my application, I have this transient in my model.
The goal is, user send one notification with some files attached.
When the user change the
So the user can´t save the notification, because the state of transient was changed and try submit all, notifications and attachments
This happens because I did that in my code to save the notification:
AppGlobais.Globais.ContextoSGA.SubmitChanges(SubmitCompleted, null);
The "ContextoSGA" is the context of all model, and when I SubmitChanges, all pendent changes will be submited too. And the problem.
I´m not sure if you can undersand. If yes, how I can solve the problem?
Use different Contexts?
Thanks
In my application, I have this transient in my model.
[Telerik.OpenAccess.Transient()]
private bool _seleccionado;
[FieldAlias("_seleccionado")]
public bool Seleccionado
{
get { return _seleccionado; }
set { _seleccionado = value; }
}
The goal is, user send one notification with some files attached.
When the user change the
Seleccionado
property that is a transient of "Anexos" table and try save the notification in database, there is an error, because ORM detects that "Anexos" tables was changed. So the user can´t save the notification, because the state of transient was changed and try submit all, notifications and attachments
This happens because I did that in my code to save the notification:
AppGlobais.Globais.ContextoSGA.SubmitChanges(SubmitCompleted, null);
The "ContextoSGA" is the context of all model, and when I SubmitChanges, all pendent changes will be submited too. And the problem.
I´m not sure if you can undersand. If yes, how I can solve the problem?
Use different Contexts?
Thanks