Solution to mixing SQL queries with entity framework entities - C#