concept user - define function in category entity framework
appears as: user-defined functions, user-defined function

This is an excerpt from Manning's book Entity Framework Core in Action.
Not replacing suboptimal SQL translations with user-defined functions
Listing 15.14 An example SQL script file with
GOat the end of each SQL commandIF OBJECT_ID('dbo.AuthorsStringUdf') IS NOT NULL #1 DROP FUNCTION dbo.AuthorsStringUdf #1 GO #2 CREATE FUNCTION AuthorsStringUdf (@bookId int) #3 RETURNS NVARCHAR(4000) -- … SQL commands removed to make the example shorter RETURN @Names END GO #2 #1 Removes existing version of the UDF you want to add. This is optional. #2 ExecuteScriptFileInTransaction looks for a line starting with GO to split out each SQL command to send to the database #3 Adds a user-defined function to the database