Forcing Entity Framework to not generate NCLOB's when building Linq-to-Sql Code (Model First)
问题 I have a class with a nullable int property that that for filtering reasons, I need to convert to a string to do some comparisons. I have EF 6.1.2 installed, so using a .ToString() will work for that. queryableData = queryableData.Where(a => a.PropName.HasValue && a.PropName.Value.ToString().Contains("8675309")); When examining the actual SQL being executed, the number is being CAST into an NCLOB type, which is resulting in the following error: ORA-00932: inconsistent datatypes: expected