public string ExecuteUserDefinedFunctionReturningScalarStringValue(int inputValue)
{
var query = "SELECT [dbo].[UserDefinedFunctionName]({0})";
object[] param = { inputValue };
var outputString = Context.Database.SqlQuery<string>(query, param).FirstOrDefault();
return outputString;
}
No comments:
Post a Comment