File tree Expand file tree Collapse file tree 4 files changed +11
-2
lines changed Expand file tree Collapse file tree 4 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -171,7 +171,9 @@ protected void Reset()
171171 propertyReferences = new List < Mappings . PropertyReference > ( ) ;
172172 FilterDefinitions = new Dictionary < string , FilterDefinition > ( ) ;
173173 interceptor = EmptyInterceptor . Instance ;
174+ #pragma warning disable 618
174175 properties = Environment . Properties ;
176+ #pragma warning restore 618
175177 auxiliaryDatabaseObjects = new List < IAuxiliaryDatabaseObject > ( ) ;
176178 SqlFunctions = new Dictionary < string , ISQLFunction > ( ) ;
177179 mappingsQueue = new MappingsQueue ( ) ;
Original file line number Diff line number Diff line change @@ -383,6 +383,8 @@ private static IHibernateConfiguration GetHibernateConfiguration()
383383 /// <remarks>
384384 /// This is the replacement for hibernate.properties
385385 /// </remarks>
386+ //Since v5.3
387+ [ Obsolete ( "This property is not used and will be removed in a future version." ) ]
386388 public static IDictionary < string , string > Properties
387389 {
388390 get { return new Dictionary < string , string > ( GlobalProperties ) ; }
Original file line number Diff line number Diff line change @@ -148,15 +148,18 @@ protected Dialect()
148148 public static Dialect GetDialect ( )
149149 {
150150 string dialectName ;
151+ #pragma warning disable 618
152+ var properties = Environment . Properties ;
153+ #pragma warning restore 618
151154 try
152155 {
153- dialectName = Environment . Properties [ Environment . Dialect ] ;
156+ dialectName = properties [ Environment . Dialect ] ;
154157 }
155158 catch ( Exception e )
156159 {
157160 throw new HibernateException ( "The dialect was not set. Set the property 'dialect'." , e ) ;
158161 }
159- return InstantiateDialect ( dialectName , Environment . Properties ) ;
162+ return InstantiateDialect ( dialectName , properties ) ;
160163 }
161164
162165 /// <summary>
Original file line number Diff line number Diff line change @@ -20,7 +20,9 @@ internal static int GetCommandTimeout(this IDriver driver)
2020 if ( driver is DriverBase driverBase )
2121 return driverBase . CommandTimeout ;
2222
23+ #pragma warning disable 618
2324 return PropertiesHelper . GetInt32 ( Cfg . Environment . CommandTimeout , Cfg . Environment . Properties , - 1 ) ;
25+ #pragma warning restore 618
2426 }
2527
2628 // 6.0 TODO: merge into IDriver
You can’t perform that action at this time.
0 commit comments