An attempt to work with the entity framework