I have code like this:
Code: Select all
string param_id = ...
from p in Person
where p.BankId.ToString() == param_id
select new
{
Id = p.Id,
Name = p.Name,
Date = p.Date,
BankId = p.BankId
}
This currently doesn't work. On SQL Server, we can use SqlFunctions.StringConvert().
On Oracle, we use OracleFunctions.ToChar()
The problem is that we need to support both databases at the same time. How this compatibility should be accomplished?
Thank you