Re-worked the linq to entity parsing to not use parameters. This mostly involved changing the way dates are handled