@@ -21,19 +21,13 @@ public NoArgSQLFunction(string name, IType returnType)
21
21
22
22
public NoArgSQLFunction ( string name , IType returnType , bool hasParenthesesIfNoArguments )
23
23
{
24
- #pragma warning disable 618
25
24
Name = name ;
26
- #pragma warning restore 618
27
25
FunctionReturnType = returnType ;
28
26
HasParenthesesIfNoArguments = hasParenthesesIfNoArguments ;
29
27
}
30
28
31
29
public IType FunctionReturnType { get ; protected set ; }
32
30
33
- // Since v5.3
34
- [ Obsolete ( "Use FunctionName property instead." ) ]
35
- public string Name { get ; protected set ; }
36
-
37
31
#region ISQLFunction Members
38
32
39
33
// Since v5.3
@@ -58,9 +52,7 @@ public virtual IType GetEffectiveReturnType(IEnumerable<IType> argumentTypes, IM
58
52
}
59
53
60
54
/// <inheritdoc />
61
- #pragma warning disable 618
62
- public string FunctionName => Name ;
63
- #pragma warning restore 618
55
+ public string Name { get ; protected set ; }
64
56
65
57
public bool HasArguments
66
58
{
@@ -73,15 +65,15 @@ public virtual SqlString Render(IList args, ISessionFactoryImplementor factory)
73
65
{
74
66
if ( args . Count > 0 )
75
67
{
76
- throw new QueryException ( "function takes no arguments: " + FunctionName ) ;
68
+ throw new QueryException ( "function takes no arguments: " + Name ) ;
77
69
}
78
70
79
71
if ( HasParenthesesIfNoArguments )
80
72
{
81
- return new SqlString ( FunctionName + "()" ) ;
73
+ return new SqlString ( Name + "()" ) ;
82
74
}
83
75
84
- return new SqlString ( FunctionName ) ;
76
+ return new SqlString ( Name ) ;
85
77
}
86
78
87
79
#endregion
0 commit comments