time to read 1 min | 183 words
I was working with a client about a problem they had in integrating EF Prof to their application, when my caught the following code base (anonymized, obviously):
public static class ContextHelper { private static Acme.Entities.EntitiesObjectContext _context; public static Acme.Entities.EntitiesObjectContext CurrentContext { get { return _context ?? (_context = new Acme.Entities.EntitiesObjectContext()); } } }
That caused me to stop everything and focus the client’s attentions on the problem that this code can cause.
What were those problems?
