added Entity Framework support