its hard to tell because your sample sql statement is not valid sql.
anyway you use the sqlfunctions class to map c# functions to sql functions if EF 6
if EF core then you use the DbFunctions;
https://learn.microsoft.com/en-us/ef/core/querying/database-functions
in EF core some clr functions are mapped by the sqlserver provider:
https://learn.microsoft.com/en-us/ef/core/providers/sql-server/functions