This question is locked. New answers and comments are not allowed.
Hello Telerik team!
I get data from DB from several tables.
public List<T> Get<T>(bool lazy = true) { CheckTransaction(); IEnumerable<T> result = scope.Extent<T>().Where(predicate); return lazy ? result.ToList() : RetreiveData(result).ToList(); }//...............
var patientList = Get<Patient>();
var configurationList = Get<Configuration>();
so, I have some lists for necessary data. And I work with it. During my work some data can be changed.
Configuration - it is some visual settings for EditPatientForm (e.g. what Edit-fields are visible - user can switch off not important fields)
And when user click on button "Save" - I need Save only PATIENT data, but not changed configuration data. Because for save Configuration we have another button (like "Save configuration")
But both entities are on the scope, so when I call Transaction.Commit() - all data will be saved.
But I don't want save Configurations.
What I should do?
I need independent transaction for each entity?? It seems not correct..
Ask me please, What I should do!
Thanks!