Hi,
i’m using ORMLite and Sql Server.
When i do a select and then trying to delete the object i get this error .
Any idea?
{System.Data.SqlClient.SqlError: The data types time and datetime are incompatible in the equal to operator.}
Here is my code
var servicePrice = Db.LoadSelect<ServiceModel.Db.ServicePrice>(
Db.From<ServiceModel.Db.ServicePrice>()
.Where(s => s.CompanyId == request.CompanyId && s.Id == request.Id)).FirstOrDefault();
Db.DeleteAll(servicePrice.DayOfWeeks);
Db.Delete(servicePrice);