How can I use N '' in Linq for Entity, for example, in T-SQL we had this code:
select *from students where name=N'سیروان عفیفی'
I have this code:
var query = from p in dbContext.Students where p.Name == "سیروان عفیفی" select p;
How can I do this with Linq to Entity?
I found this :
var query = (from p in dbContext.Students where p.Name == EntityFunctions.AsNonUnicode("سیروان عفیفی") select p);
But it does not work.
Thanks.
source share