Skip to content

Commit

Permalink
* fix for #400
Browse files Browse the repository at this point in the history
* update Oracle.ManagedDataAccess to 12.2.110
  • Loading branch information
ili committed Jun 3, 2017
1 parent 761be35 commit f46ff6a
Show file tree
Hide file tree
Showing 30 changed files with 105 additions and 91 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@
<AssemblyOriginatorKeyFile>..\..\Source\BLToolkit.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<ItemGroup>
<Reference Include="Oracle.ManagedDataAccess, Version=4.121.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342, processorArchitecture=MSIL">
<HintPath>..\..\packages\Oracle.ManagedDataAccess.12.1.24160719\lib\net40\Oracle.ManagedDataAccess.dll</HintPath>
<Reference Include="Oracle.ManagedDataAccess, Version=4.122.1.0, Culture=neutral, PublicKeyToken=89b483f429c47342, processorArchitecture=MSIL">
<HintPath>..\..\packages\Oracle.ManagedDataAccess.12.2.1100\lib\net40\Oracle.ManagedDataAccess.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System" />
Expand Down
2 changes: 1 addition & 1 deletion DataProviders/Oracle/packages.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="odp.net.x86" version="112.3.20" targetFramework="net40" />
<package id="Oracle.ManagedDataAccess" version="12.1.24160719" targetFramework="net40" />
<package id="Oracle.ManagedDataAccess" version="12.2.1100" targetFramework="net40" />
</packages>
4 changes: 2 additions & 2 deletions NuGet/BLToolkit.DB2.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>BLToolkit.DB2</id>
<version>4.3.8</version>
<version>4.3.9</version>
<title>BLToolkit DB2 Data Provider</title>
<authors>Igor Tkachev</authors>
<owners />
Expand All @@ -13,7 +13,7 @@
<summary />
<tags>DB2 bltoolkit Linq ORM DAL database DB</tags>
<dependencies>
<dependency id="BLToolkit" version="4.3.8" />
<dependency id="BLToolkit" version="4.3.9" />
</dependencies>
</metadata>
<files>
Expand Down
4 changes: 2 additions & 2 deletions NuGet/BLToolkit.DevartOraclePro.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>BLToolkit.Oracle</id>
<version>4.3.8</version>
<version>4.3.9</version>
<title>BLToolkit dotConnect for Oracle Pro Data Provider</title>
<authors>Igor Tkachev</authors>
<owners />
Expand All @@ -13,7 +13,7 @@
<summary />
<tags>Devart dotConnect Oracle bltoolkit Linq ORM DAL database DB</tags>
<dependencies>
<dependency id="BLToolkit" version="4.3.8" />
<dependency id="BLToolkit" version="4.3.9" />
</dependencies>
</metadata>
<files>
Expand Down
4 changes: 2 additions & 2 deletions NuGet/BLToolkit.Firebird.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>BLToolkit.Firebird</id>
<version>4.3.8</version>
<version>4.3.9</version>
<title>BLToolkit Firebird Data Provider</title>
<authors>Igor Tkachev</authors>
<owners />
Expand All @@ -14,7 +14,7 @@
<tags>Firebird bltoolkit Linq ORM DAL database DB</tags>
<dependencies>
<dependency id="FirebirdSql.Data.FirebirdClient" version="5.0.5" />
<dependency id="BLToolkit" version="4.3.8" />
<dependency id="BLToolkit" version="4.3.9" />
</dependencies>
</metadata>
<files>
Expand Down
4 changes: 2 additions & 2 deletions NuGet/BLToolkit.Informix.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>BLToolkit.Informix</id>
<version>4.3.8</version>
<version>4.3.9</version>
<title>BLToolkit Informix Data Provider</title>
<authors>Igor Tkachev</authors>
<owners />
Expand All @@ -13,7 +13,7 @@
<summary />
<tags>Informix bltoolkit Linq ORM DAL database DB</tags>
<dependencies>
<dependency id="BLToolkit" version="4.3.8" />
<dependency id="BLToolkit" version="4.3.9" />
</dependencies>
</metadata>
<files>
Expand Down
4 changes: 2 additions & 2 deletions NuGet/BLToolkit.MySql.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>BLToolkit.MySql</id>
<version>4.3.8</version>
<version>4.3.9</version>
<title>BLToolkit MySql Data Provider</title>
<authors>Igor Tkachev</authors>
<owners />
Expand All @@ -14,7 +14,7 @@
<tags>MySql bltoolkit Linq ORM DAL database DB</tags>
<dependencies>
<dependency id="MySql.Data" version="6.9.8" />
<dependency id="BLToolkit" version="4.3.8" />
<dependency id="BLToolkit" version="4.3.9" />
</dependencies>
</metadata>
<files>
Expand Down
6 changes: 3 additions & 3 deletions NuGet/BLToolkit.Oracle.Managed.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>BLToolkit.Oracle.Managed</id>
<version>4.3.8</version>
<version>4.3.9</version>
<title>BLToolkit Managed Oracle Data Provider</title>
<authors>Igor Tkachev</authors>
<owners />
Expand All @@ -13,8 +13,8 @@
<summary />
<tags>Oracle Odp bltoolkit Linq ORM DAL database DB</tags>
<dependencies>
<dependency id="BLToolkit" version="4.3.8" />
<dependency id="Oracle.ManagedDataAccess" version="12.1" />
<dependency id="BLToolkit" version="4.3.9" />
<dependency id="Oracle.ManagedDataAccess" version="12.2.1100" />
</dependencies>
</metadata>
<files>
Expand Down
4 changes: 2 additions & 2 deletions NuGet/BLToolkit.Oracle.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>BLToolkit.Oracle</id>
<version>4.3.8</version>
<version>4.3.9</version>
<title>BLToolkit Oracle Data Provider</title>
<authors>Igor Tkachev</authors>
<owners />
Expand All @@ -13,7 +13,7 @@
<summary />
<tags>Oracle Odp bltoolkit Linq ORM DAL database DB</tags>
<dependencies>
<dependency id="BLToolkit" version="4.3.8" />
<dependency id="BLToolkit" version="4.3.9" />
</dependencies>
</metadata>
<files>
Expand Down
4 changes: 2 additions & 2 deletions NuGet/BLToolkit.PostgreSql.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>BLToolkit.PostgreSql</id>
<version>4.3.8</version>
<version>4.3.9</version>
<title>BLToolkit PostgreSql Data Provider</title>
<authors>Igor Tkachev</authors>
<owners />
Expand All @@ -14,7 +14,7 @@
<tags>PostgreSql Npgsql bltoolkit Linq ORM DAL database DB</tags>
<dependencies>
<dependency id="Npgsql" version="2.2.5" />
<dependency id="BLToolkit" version="4.3.8" />
<dependency id="BLToolkit" version="4.3.9" />
</dependencies>
</metadata>
<files>
Expand Down
4 changes: 2 additions & 2 deletions NuGet/BLToolkit.SQLite.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>BLToolkit.SQLite</id>
<version>4.3.8</version>
<version>4.3.9</version>
<title>BLToolkit SQLite Data Provider</title>
<authors>Igor Tkachev</authors>
<owners />
Expand All @@ -14,7 +14,7 @@
<tags>SQLite bltoolkit Linq ORM DAL database DB</tags>
<dependencies>
<dependency id="System.Data.SQLite.Core" version="1.0.102" />
<dependency id="BLToolkit" version="4.3.8" />
<dependency id="BLToolkit" version="4.3.9" />
</dependencies>
</metadata>
<files>
Expand Down
4 changes: 2 additions & 2 deletions NuGet/BLToolkit.SqlCe.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>BLToolkit.SqlCe</id>
<version>4.3.8</version>
<version>4.3.9</version>
<title>BLToolkit SqlCe Data Provider</title>
<authors>Igor Tkachev</authors>
<owners />
Expand All @@ -13,7 +13,7 @@
<summary />
<tags>SqlCe bltoolkit Linq ORM DAL database DB</tags>
<dependencies>
<dependency id="BLToolkit" version="4.3.8" />
<dependency id="BLToolkit" version="4.3.9" />
</dependencies>
</metadata>
<files>
Expand Down
4 changes: 2 additions & 2 deletions NuGet/BLToolkit.Sybase.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>BLToolkit.Sybase</id>
<version>4.3.8</version>
<version>4.3.9</version>
<title>BLToolkit Sybase Data Provider</title>
<authors>Igor Tkachev</authors>
<owners />
Expand All @@ -13,7 +13,7 @@
<summary />
<tags>Sybase bltoolkit Linq ORM DAL database DB</tags>
<dependencies>
<dependency id="BLToolkit" version="4.3.8" />
<dependency id="BLToolkit" version="4.3.9" />
</dependencies>
</metadata>
<files>
Expand Down
2 changes: 1 addition & 1 deletion NuGet/BLToolkit.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>BLToolkit</id>
<version>4.3.8</version>
<version>4.3.9</version>
<title>Business Logic Toolkit for .NET</title>
<authors>Igor Tkachev</authors>
<owners />
Expand Down
2 changes: 1 addition & 1 deletion NuGet/BLToolkit.symbols.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>BLToolkit</id>
<version>4.3.8</version>
<version>4.3.9</version>
<title>Business Logic Toolkit for .NET</title>
<authors>Igor Tkachev</authors>
<owners />
Expand Down
8 changes: 8 additions & 0 deletions Source/Data/DataProvider/OdpDataProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -734,6 +734,14 @@ public override void Configure(System.Collections.Specialized.NameValueCollectio
base.Configure(attributes);
}

public override DbType GetParameterDbType(DbType dbType)
{
if (dbType == DbType.DateTime2)
return DbType.DateTime;

return base.GetParameterDbType(dbType);
}

#region Inner types

public class OdpMappingSchema : MappingSchema
Expand Down
2 changes: 1 addition & 1 deletion Source/Properties/BLToolkitConstants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public static partial class BLToolkitConstants
/// <summary>
/// Build component of version.
/// </summary>
public const string Build = "8";
public const string Build = "9";

/// <summary>
/// Full version string.
Expand Down
22 changes: 22 additions & 0 deletions UnitTests/CS/DataAccess/SqlTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -231,5 +231,27 @@ public void NonUpdatableOnClass()
Assert.That(insert.QueryText.Contains(middleName), "middleName\n" + insert.QueryText);
}
}

public class LinqDataTypes
{
[PrimaryKey]
public int Id;

[Nullable]
public DateTime? DateTimeValue;

public DateTime? DateTimeValue2;
}

[Test]
public void InsertNullable()
{
var da = new SqlQuery();
using (var db = new DbManager())
{
db.BeginTransaction();
da.Insert(new LinqDataTypes() {Id = 1000});
}
}
}
}
9 changes: 5 additions & 4 deletions UnitTests/CS/UnitTests.CS.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@
<Compile Include="DataAccess\OutRefTest.cs" />
<Compile Include="DataAccess\PersonDataSet2.cs">
<DependentUpon>PersonDataSet2.xsd</DependentUpon>
<SubType>Component</SubType>
</Compile>
<Compile Include="DataAccess\PersonDataSet2.Designer.cs">
<AutoGen>True</AutoGen>
Expand Down Expand Up @@ -192,9 +191,7 @@
<Compile Include="JointureTests\Artist2.cs" />
<Compile Include="JointureTests\AssociationTests.cs" />
<Compile Include="JointureTests\Consts.cs" />
<Compile Include="JointureTests\MusicDB.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="JointureTests\MusicDB.cs" />
<Compile Include="JointureTests\Title.cs" />
<Compile Include="Mapping\BltMapTests.cs" />
<Compile Include="Mapping\MemberMapperDefaultMappersTest.cs" />
Expand Down Expand Up @@ -347,6 +344,10 @@
<Project>{2B5287F2-A6AC-4D5A-B0A8-01C06144824D}</Project>
<Name>BLToolkit.Data.DataProvider.Oracle.4</Name>
</ProjectReference>
<ProjectReference Include="..\..\DataProviders\Oracle\BLToolkit.Data.DataProvider.OracleManaged.4.csproj">
<Project>{785ce174-0a91-465f-9e41-65e6e05a0ec9}</Project>
<Name>BLToolkit.Data.DataProvider.OracleManaged.4</Name>
</ProjectReference>
<ProjectReference Include="..\..\Source\BLToolkit.4.csproj">
<Project>{0C325F5D-E50E-4340-8724-D29896CCC583}</Project>
<Name>BLToolkit.4</Name>
Expand Down
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<!-- insert new entry -->
<configSections xdt:Locator="XPath(/configuration/configSections[last()])">
<section name="oracle.manageddataaccess.client" type="OracleInternal.Common.ODPMSectionHandler, Oracle.ManagedDataAccess, Version=4.121.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342" xdt:Transform="Insert" />
<section name="oracle.manageddataaccess.client" type="OracleInternal.Common.ODPMSectionHandler, Oracle.ManagedDataAccess, Version=4.122.1.0, Culture=neutral, PublicKeyToken=89b483f429c47342" xdt:Transform="Insert" />
</configSections>

<configSections xdt:Transform="RemoveAll" xdt:Locator="Condition(count(*)=0)" />
Expand Down Expand Up @@ -43,7 +43,7 @@
<system.data>
<DbProviderFactories>
<remove invariant="Oracle.ManagedDataAccess.Client" xdt:Transform="Insert"/>
<add name="ODP.NET, Managed Driver" invariant="Oracle.ManagedDataAccess.Client" description="Oracle Data Provider for .NET, Managed Driver" type="Oracle.ManagedDataAccess.Client.OracleClientFactory, Oracle.ManagedDataAccess, Version=4.121.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342" xdt:Transform="Insert" />
<add name="ODP.NET, Managed Driver" invariant="Oracle.ManagedDataAccess.Client" description="Oracle Data Provider for .NET, Managed Driver" type="Oracle.ManagedDataAccess.Client.OracleClientFactory, Oracle.ManagedDataAccess, Version=4.122.1.0, Culture=neutral, PublicKeyToken=89b483f429c47342" xdt:Transform="Insert" />
</DbProviderFactories>
</system.data>

Expand Down Expand Up @@ -74,7 +74,7 @@
<dependentAssembly xdt:Transform="Insert">
<publisherPolicy apply="no"/>
<assemblyIdentity name="Oracle.ManagedDataAccess" publicKeyToken="89b483f429c47342" culture="neutral" />
<bindingRedirect oldVersion="4.121.0.0 - 4.65535.65535.65535" newVersion="4.121.2.0" />
<bindingRedirect oldVersion="4.121.0.0 - 4.65535.65535.65535" newVersion="4.122.1.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0"?>
<?xml version="1.0"?>
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">

<!-- remove existing entry -->
Expand Down Expand Up @@ -61,4 +61,4 @@

<oracle.manageddataaccess.client xdt:Transform="RemoveAll" xdt:Locator="Condition(count(*)=0)" />

</configuration>
</configuration>
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<!-- insert new entry -->
<configSections xdt:Locator="XPath(/configuration/configSections[last()])">
<section name="oracle.manageddataaccess.client" type="OracleInternal.Common.ODPMSectionHandler, Oracle.ManagedDataAccess, Version=4.121.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342" xdt:Transform="Insert" />
<section name="oracle.manageddataaccess.client" type="OracleInternal.Common.ODPMSectionHandler, Oracle.ManagedDataAccess, Version=4.122.1.0, Culture=neutral, PublicKeyToken=89b483f429c47342" xdt:Transform="Insert" />
</configSections>

<configSections xdt:Transform="RemoveAll" xdt:Locator="Condition(count(*)=0)" />
Expand Down Expand Up @@ -43,7 +43,7 @@
<system.data>
<DbProviderFactories>
<remove invariant="Oracle.ManagedDataAccess.Client" xdt:Transform="Insert"/>
<add name="ODP.NET, Managed Driver" invariant="Oracle.ManagedDataAccess.Client" description="Oracle Data Provider for .NET, Managed Driver" type="Oracle.ManagedDataAccess.Client.OracleClientFactory, Oracle.ManagedDataAccess, Version=4.121.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342" xdt:Transform="Insert" />
<add name="ODP.NET, Managed Driver" invariant="Oracle.ManagedDataAccess.Client" description="Oracle Data Provider for .NET, Managed Driver" type="Oracle.ManagedDataAccess.Client.OracleClientFactory, Oracle.ManagedDataAccess, Version=4.122.1.0, Culture=neutral, PublicKeyToken=89b483f429c47342" xdt:Transform="Insert" />
</DbProviderFactories>
</system.data>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0"?>
<?xml version="1.0"?>
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">

<!-- remove existing entry -->
Expand Down Expand Up @@ -61,4 +61,4 @@

<oracle.manageddataaccess.client xdt:Transform="RemoveAll" xdt:Locator="Condition(count(*)=0)" />

</configuration>
</configuration>
Binary file not shown.
Loading

0 comments on commit f46ff6a

Please sign in to comment.