sorting out entity framework