From: Jiří Č. <ji...@ci...> - 2017-03-01 15:14:31
|
Do you really have to detach? Wouldn't work for you just fine to set the state to unchanged (nor sure what's done with the entities after)? Other than that, I believe putting it into list/array is OK (at least for me). You might even just use ToList method and foreach on that, without the extra variable - but the intermediate list will be created anyway, so it's just a cosmetic thing. -- Mgr. Jiří Činčura https://blog.cincura.net/ |