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

SqlMethodAttribute

using System; namespace Microsoft.SqlServer.Server { [AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)] [Obsolete("Use the Microsoft.SqlServer.Server package instead.")] 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); } } }