projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of https://github.com/mono/mono into issue4328
[mono.git]
/
mcs
/
class
/
System.Data
/
System.Data.Common
/
DbConnection.cs
diff --git
a/mcs/class/System.Data/System.Data.Common/DbConnection.cs
b/mcs/class/System.Data/System.Data.Common/DbConnection.cs
index dad77673bbc4692b6b352d4a5ea3c46a2746b38d..ce68ec9cef748f23a0bb67af1eba0d11d38a11ca 100644
(file)
--- a/
mcs/class/System.Data/System.Data.Common/DbConnection.cs
+++ b/
mcs/class/System.Data/System.Data.Common/DbConnection.cs
@@
-30,14
+30,17
@@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_2_0 || TARGET_JVM
-
using System.ComponentModel;
using System.Data;
#if NET_2_0 && !TARGET_JVM
using System.Transactions;
#endif
using System.ComponentModel;
using System.Data;
#if NET_2_0 && !TARGET_JVM
using System.Transactions;
#endif
+#if NET_4_5
+using System.Threading;
+using System.Threading.Tasks;
+#endif
+
namespace System.Data.Common {
public abstract class DbConnection : Component, IDbConnection, IDisposable
{
namespace System.Data.Common {
public abstract class DbConnection : Component, IDbConnection, IDisposable
{
@@
-50,9
+53,7
@@
namespace System.Data.Common {
#endregion // Constructors
#region Properties
#endregion // Constructors
#region Properties
-#pragma warning disable 618
[RecommendedAsConfigurable (true)]
[RecommendedAsConfigurable (true)]
-#pragma warning restore 618
[RefreshProperties (RefreshProperties.All)]
[DefaultValue ("")]
public abstract string ConnectionString { get; set; }
[RefreshProperties (RefreshProperties.All)]
[DefaultValue ("")]
public abstract string ConnectionString { get; set; }
@@
-748,6
+749,19
@@
namespace System.Data.Common {
if (StateChange != null)
StateChange (this, stateChange);
}
if (StateChange != null)
StateChange (this, stateChange);
}
+
+#if NET_4_5
+ public Task OpenAsync ()
+ {
+ return OpenAsync (CancellationToken.None);
+ }
+
+ [MonoTODO]
+ public virtual Task OpenAsync (CancellationToken cancellationToken)
+ {
+ throw new NotImplementedException ();
+ }
+#endif
#endregion // Methods
#endregion // Methods
@@
-755,5
+769,3
@@
namespace System.Data.Common {
}
}
}
}
-
-#endif