I am writing this code. Here dt is input into the function, as well as someint. The column Exp is a T-SQL date column, which comes as a DateTime through Linq.
You can use: System.Data.Entity.DbFunctions.AddDays(YourDateTime, NumberOfDays) This function will be translated to valid SQL Query. Class System.Data.Entity.Core.Objects.EntityFunctions which also contains AddDays function is obsolete.