3c1f479b9d
Former-commit-id: 806294f5ded97629b74c85c09952f2a74fe182d9
18 lines
368 B
C#
18 lines
368 B
C#
using System.Data.SqlTypes;
|
|
using Mono.Data.Tds.Protocol;
|
|
|
|
namespace System.Data.SqlClient
|
|
{
|
|
static class SqlDecimalExtensions
|
|
{
|
|
public static readonly SqlDecimal Null;
|
|
|
|
internal static SqlDecimal FromTdsBigDecimal (TdsBigDecimal x)
|
|
{
|
|
if (x == null)
|
|
return Null;
|
|
else
|
|
return new SqlDecimal (x.Precision, x.Scale, !x.IsNegative, x.Data);
|
|
}
|
|
}
|
|
} |