I am using EntityFramework 5.0 and I have Resharper installed.
I have the following code:
using (var context = DataObjectFactory.CreateCardholdersContext())
{
var cardholdersWithCards = from cardholders in context.CardholderEntities
from cards in context.CardholderCardEntities
select new
{
Cardholders = cardholders,
Cards = cards
};
}
In the 2nd line of my code, I have an underline under context
, with a warning access to disposed closure
.
What does this mean and how should I change my code?