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/ ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ Firebird-net-provider mailing list Firebird-net-provider@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/firebird-net-provider