<PackageReference Include="System.Data.SqlClient" Version="4.8.0" />

SqlFunctionAttribute

Used to mark a method definition of a user-defined aggregate as a function in SQL Server. The properties on the attribute reflect the physical characteristics used when the type is registered with SQL Server.
using System; namespace Microsoft.SqlServer.Server { [AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)] public class SqlFunctionAttribute : Attribute { public DataAccessKind DataAccess { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } set { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } } public string FillRowMethodName { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } set { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } } public bool IsDeterministic { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } set { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } } public bool IsPrecise { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } set { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } } public string Name { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } set { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } } public SystemDataAccessKind SystemDataAccess { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } set { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } } public string TableDefinition { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } set { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } } public SqlFunctionAttribute() { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } } }