When I instance my "Entities" object in Entity Framework, and make a couple of queries using that Entities object, what happens to connections?
- Does it open a connection when I instance the object, and close it when I dispose of it?
- Or does it open and close a connection for each single query I execute?
In either case, is it possible to change it so that it does the other thing?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…