@@ -21,19 +21,13 @@ public NoArgSQLFunction(string name, IType returnType)
2121
2222 public NoArgSQLFunction ( string name , IType returnType , bool hasParenthesesIfNoArguments )
2323 {
24- #pragma warning disable 618
2524 Name = name ;
26- #pragma warning restore 618
2725 FunctionReturnType = returnType ;
2826 HasParenthesesIfNoArguments = hasParenthesesIfNoArguments ;
2927 }
3028
3129 public IType FunctionReturnType { get ; protected set ; }
3230
33- // Since v5.3
34- [ Obsolete ( "Use FunctionName property instead." ) ]
35- public string Name { get ; protected set ; }
36-
3731 #region ISQLFunction Members
3832
3933 // Since v5.3
@@ -58,9 +52,7 @@ public virtual IType GetEffectiveReturnType(IEnumerable<IType> argumentTypes, IM
5852 }
5953
6054 /// <inheritdoc />
61- #pragma warning disable 618
62- public string FunctionName => Name ;
63- #pragma warning restore 618
55+ public string Name { get ; protected set ; }
6456
6557 public bool HasArguments
6658 {
@@ -73,15 +65,15 @@ public virtual SqlString Render(IList args, ISessionFactoryImplementor factory)
7365 {
7466 if ( args . Count > 0 )
7567 {
76- throw new QueryException ( "function takes no arguments: " + FunctionName ) ;
68+ throw new QueryException ( "function takes no arguments: " + Name ) ;
7769 }
7870
7971 if ( HasParenthesesIfNoArguments )
8072 {
81- return new SqlString ( FunctionName + "()" ) ;
73+ return new SqlString ( Name + "()" ) ;
8274 }
8375
84- return new SqlString ( FunctionName ) ;
76+ return new SqlString ( Name ) ;
8577 }
8678
8779 #endregion
0 commit comments