3535using System . Threading . Tasks ;
3636using AsyncRewriter ;
3737using JetBrains . Annotations ;
38- #if NET45 || NET452 || DNX452
38+ #if NET45 || NET451 || DNX451
3939using System . Transactions ;
4040#endif
4141using Npgsql . Logging ;
@@ -99,7 +99,7 @@ public sealed partial class NpgsqlConnection : DbConnection, ICloneable
9999
100100 internal bool WasBroken { private get ; set ; }
101101
102- #if NET45 || NET452 || DNX452
102+ #if NET45 || NET451 || DNX451
103103 NpgsqlPromotableSinglePhaseNotification Promotable => _promotable ?? ( _promotable = new NpgsqlPromotableSinglePhaseNotification ( this ) ) ;
104104 NpgsqlPromotableSinglePhaseNotification _promotable ;
105105#endif
@@ -151,7 +151,7 @@ void Init()
151151 _noticeDelegate = OnNotice ;
152152 _notificationDelegate = OnNotification ;
153153
154- #if NET45 || NET452 || DNX452
154+ #if NET45 || NET451 || DNX451
155155 // Fix authentication problems. See https://bugzilla.novell.com/show_bug.cgi?id=MONO77559 and
156156 // http://pgfoundry.org/forum/message.php?msg_id=1002377 for more info.
157157 RSACryptoServiceProvider . UseMachineKeyStore = true ;
@@ -269,7 +269,7 @@ void OpenInternal(NpgsqlTimeout timeout)
269269 Connector . Notice += _noticeDelegate ;
270270 Connector . Notification += _notificationDelegate ;
271271
272- #if NET45 || NET452 || DNX452
272+ #if NET45 || NET451 || DNX451
273273 if ( Settings . Enlist )
274274 {
275275 Promotable . Enlist ( Transaction . Current ) ;
@@ -575,7 +575,7 @@ internal void PromotableLocalTransactionEnded()
575575 ReallyClose ( ) ;
576576 }
577577
578- #if NET45 || NET452 || DNX452
578+ #if NET45 || NET451 || DNX451
579579 /// <summary>
580580 /// Enlist transation.
581581 /// </summary>
@@ -606,7 +606,7 @@ public override void Close()
606606
607607 Log . Trace ( "Closing connection" , Connector . Id ) ;
608608
609- #if NET45 || NET452 || DNX452
609+ #if NET45 || NET451 || DNX451
610610 if ( _promotable != null && _promotable . InLocalTransaction )
611611 {
612612 _postponingClose = true ;
@@ -623,7 +623,7 @@ internal void ReallyClose()
623623 Log . Trace ( "Really closing connection" , connectorId ) ;
624624 _postponingClose = false ;
625625
626- #if NET45 || NET452 || DNX452
626+ #if NET45 || NET451 || DNX451
627627 // clear the way for another promotable transaction
628628 _promotable = null ;
629629#endif
@@ -1259,7 +1259,7 @@ internal void CheckReady()
12591259 #endregion State checks
12601260
12611261 #region Schema operations
1262- #if NET45 || NET452 || DNX452
1262+ #if NET45 || NET451 || DNX451
12631263 /// <summary>
12641264 /// Returns the supported collections
12651265 /// </summary>
@@ -1335,7 +1335,7 @@ public override DataTable GetSchema([CanBeNull] string collectionName, [CanBeNul
13351335
13361336 #region Misc
13371337
1338- #if NET45 || NET452 || DNX452
1338+ #if NET45 || NET451 || DNX451
13391339 object ICloneable . Clone ( )
13401340 {
13411341 CheckNotDisposed ( ) ;
@@ -1392,7 +1392,7 @@ public override void ChangeDatabase(String dbName)
13921392 Open ( ) ;
13931393 }
13941394
1395- #if NET45 || NET452 || DNX452
1395+ #if NET45 || NET451 || DNX451
13961396 /// <summary>
13971397 /// DB provider factory.
13981398 /// </summary>
0 commit comments