added datacontext attribute to base entity