System.InvalidOperationException: You msut call UpdateNonNotifyingList() after updatnig a list that dose not implement INotifyCollectionChanged() if i try that @Wietlol
If I don't use ChangeTracking in EF. How would I update a subentity? e.g: Company has Users. I want to add a User to Company.Users. Is there any other way than directly accessing dbContext.CompanyUsers?
I get an entity (will be tracked), I map it with automapper (to a new entity with the same ID), then I Update() and it whines about the ID already being tracked. I hate this :-P
this.dbSet is a DbSet<Company>. I do not have access to the rest of the dbsets. But I already know how I'm gonna fix that in the future (next sprint hopefully)
ViewModel.Events = new ObservableCollection<Event>(ViewModel.Events.OrderBy(x => x.LastName)); - I tried doing this just to bypass the error for right now, but that doesnt seem to change anything either. Ideas? @mr5
They don't, but i'm also ordering by which room they are in if the user toggles the button again, and since that doesn't change anything, i'm pretty sure nothing associated with the ordering actually works
The first sentence attaches it to the database already. Then the repository wants to update currentObj, but that ID is already being tracked. So I get an error that it's already tracked. AutoMapper does not work by reference (SO post that I linked didn't work :S)
The class is "better" than i'm making it out to be, but as an extremely sceptical person I don't want to share any info that could compromise anything (I know how silly it sounds, but that is the case)
That takes a source and destinatino collection, clears the destination collection and adds everything from the sourcecollection to the destinationcollection
It's not that it's not working, it's just the first time i hit the toggle button, it fucks the time intervals, and when i hit it again, its back to working 100%
well, since this is a terminology question, you'd have to refer to what people call it
so... what MS does call it?
> .NET Language-Integrated Query defines a set of general purpose standard query operators that allow traversal, filter, and projection operations to be expressed in a direct yet declarative way in any .NET-based programming language.