Millennials

Article I saw on linkedin: All generations end up having their own nicknames and a stereotype they either try to live up to or try to avoid. Millennials have become synonymous with the idea of a young person who feels entitled and lazy, expecting the most from everyone around them while doing the least to … Read moreMillennials

Entity framework: There is already an open DataReader associated with this Command which must be closed first.

// execute a query while iterating over the results from another query using (var context = new Entities2.Model1()) { IEnumerable<Table1> list= context.Table1s.Take(1); foreach(var item in list) { // Exception: There is already an open DataReader associated with this Command which must be closed first. var record = context.Table2.Take(1).Single(); } } Two ways to solve this: … Read moreEntity framework: There is already an open DataReader associated with this Command which must be closed first.