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

SqlMethodAttribute

Indicates the determinism and data access properties of a method or property on a user-defined type (UDT). The properties on the attribute reflect the physical characteristics that are used when the type is registered with SQL Server.
using System; namespace Microsoft.SqlServer.Server { [AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)] public sealed class SqlMethodAttribute : SqlFunctionAttribute { public bool InvokeIfReceiverIsNull { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } set { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } } public bool IsMutator { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } set { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } } public bool OnNullCall { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } set { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } } public SqlMethodAttribute() { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient); } } }