blob: 66eee2f72e27b4073866b86fccbc55cc13449015 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
//------------------------------------------------------------------------------
// <copyright file="SqlMethodAttribute.cs" company="Microsoft Corporation">
// Copyright (c) Microsoft Corporation. All Rights Reserved.
// Information Contained Herein is Proprietary and Confidential.
// </copyright>
// <owner current="true" primary="true">[....]</owner>
// <owner current="true" primary="true">[....]</owner>
// <owner current="true" primary="true">daltudov</owner>
// <owner current="true" primary="true">[....]</owner>
// <owner current="true" primary="false">beysims</owner>
// <owner current="true" primary="false">junfang</owner>
// <owner current="true" primary="false">[....]</owner>
// <owner current="true" primary="false">vadimt</owner>
//------------------------------------------------------------------------------
using System;
namespace Microsoft.SqlServer.Server {
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false), Serializable]
public sealed class SqlMethodAttribute : SqlFunctionAttribute {
private bool m_fCallOnNullInputs;
private bool m_fMutator;
private bool m_fInvokeIfReceiverIsNull;
public SqlMethodAttribute() {
// default values
m_fCallOnNullInputs = true;
m_fMutator = false;
m_fInvokeIfReceiverIsNull = false;
} // SqlMethodAttribute
public bool OnNullCall {
get {
return m_fCallOnNullInputs;
}
set {
m_fCallOnNullInputs = value;
}
} // CallOnNullInputs
public bool IsMutator {
get {
return m_fMutator;
}
set {
m_fMutator = value;
}
} // IsMutator
public bool InvokeIfReceiverIsNull {
get {
return m_fInvokeIfReceiverIsNull;
}
set {
m_fInvokeIfReceiverIsNull = value;
}
} // InvokeIfReceiverIsNull
} // class SqlMethodAttribute
}
|