I am working on a web application in .NET Framework 4 (C#). We are using the Entity Framework (v4) with a Teradata backend. I am trying to set the where clause for an EntityDataSource so that a date column is equal to a specific value:
.where = string.Format(@"it.Begin_Date = CAST('{0}' as date)", Convert.ToDateTime(txtSelectedBeginDate.Text).ToString());
This is throwing the following error: [Teradata Database] [5407] Invalid operation on an ANSI Datetime or Interval value.
↧