context.Company.Where(i => EF.Functions.ILike(i.Name, "xxx%")).FirstOrDefault()
I just need to use ILike
in EF Core. But this function is Postgres specific.
If some day the database change to Sql Server. All the code like this need to be updated.
Any ways to avoid this issue?