Imported Upstream version 4.6.0.150

Former-commit-id: 73e3bb1e96dd09dc931c1dfe559d2c7f7b8b02c7
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2016-08-23 13:20:38 +00:00
parent 02ac915603
commit b95516a3dd
239 changed files with 4096 additions and 1544 deletions

View File

@@ -33,6 +33,7 @@
using System;
using System.Data;
using System.Data.SqlClient;
using System.Threading;
using System.Data.SqlTypes;
@@ -205,6 +206,42 @@ namespace Microsoft.SqlServer.Server {
this._sqlDbType = dbType;
}
[MonoTODO]
public SqlMetaData (string name, SqlDbType dbType, bool useServerDefault, bool isUniqueKey, SortOrder columnSortOrder, int sortOrdinal)
{
throw new NotImplementedException ();
}
[MonoTODO]
public SqlMetaData (string name, SqlDbType dbType, long maxLength, bool useServerDefault, bool isUniqueKey, SortOrder columnSortOrder, int sortOrdinal)
{
throw new NotImplementedException ();
}
[MonoTODO]
public SqlMetaData (string name, SqlDbType dbType, byte precision, byte scale, bool useServerDefault, bool isUniqueKey, SortOrder columnSortOrder, int sortOrdinal)
{
throw new NotImplementedException ();
}
[MonoTODO]
public SqlMetaData (string name, SqlDbType dbType, long maxLength, long locale, SqlCompareOptions compareOptions, bool useServerDefault, bool isUniqueKey, SortOrder columnSortOrder, int sortOrdinal)
{
throw new NotImplementedException ();
}
[MonoTODO]
public SqlMetaData (string name, SqlDbType dbType, string database, string owningSchema, string objectName, bool useServerDefault, bool isUniqueKey, SortOrder columnSortOrder, int sortOrdinal)
{
throw new NotImplementedException ();
}
[MonoTODO]
public SqlMetaData (string name, SqlDbType dbType, long maxLength, byte precision, byte scale, long localeId, SqlCompareOptions compareOptions, System.Type userDefinedType, bool useServerDefault, bool isUniqueKey, SortOrder columnSortOrder, int sortOrdinal)
{
throw new NotImplementedException ();
}
public SqlMetaData (string name, SqlDbType dbType, long maxLength)
{
if (name == null)
@@ -659,6 +696,25 @@ namespace Microsoft.SqlServer.Server {
get { throw new NotImplementedException (); }
}
[MonoTODO]
public bool IsUniqueKey {
get { throw new NotImplementedException (); }
}
[MonoTODO]
public SortOrder SortOrder {
get { throw new NotImplementedException (); }
}
[MonoTODO]
public int SortOrdinal {
get { throw new NotImplementedException (); }
}
[MonoTODO]
public bool UseServerDefault {
get { throw new NotImplementedException (); }
}
#endregion // Properties
#region Methods
@@ -705,6 +761,20 @@ namespace Microsoft.SqlServer.Server {
return value;
}
public DateTimeOffset Adjust (DateTimeOffset value)
{
if (type != typeof (DateTimeOffset))
throw new ArgumentException ("Value does not match the SqlMetaData type");
return value;
}
public TimeSpan Adjust (TimeSpan value)
{
if (type != typeof (TimeSpan))
throw new ArgumentException ("Value does not match the SqlMetaData type");
return value;
}
public decimal Adjust (decimal value)
{
if (type != typeof (decimal))
@@ -866,6 +936,12 @@ namespace Microsoft.SqlServer.Server {
return value;
}
[MonoTODO]
public SqlXml Adjust (SqlXml value)
{
throw new NotImplementedException ();
}
public string Adjust (string value)
{
if (type != typeof (string))