Skip to content

Commit

Permalink
Using XDT for transformations.
Browse files Browse the repository at this point in the history
* DNET-883
* dotnet/ef6#953
  • Loading branch information
cincuranet committed Jul 30, 2019
1 parent aa07fb0 commit f60e587
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
9 changes: 9 additions & 0 deletions Provider/src/EntityFramework.Firebird/App.config.install.xdt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<entityFramework>
<defaultConnectionFactory xdt:Transform="Remove" />
<defaultConnectionFactory type="EntityFramework.Firebird.FbConnectionFactory, EntityFramework.Firebird" xdt:Transform="Insert" />
<providers>
<provider invariantName="FirebirdSql.Data.FirebirdClient" type="EntityFramework.Firebird.FbProviderServices, EntityFramework.Firebird" xdt:Transform="InsertIfMissing" xdt:Locator="Match(invariantName)" />
</providers>
</entityFramework>
</configuration>
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
<EmbeddedResource Include="Resources\StoreSchemaMappingVersion3.msl" />
</ItemGroup>
<ItemGroup>
<None Update="install.ps1" Pack="true" PackagePath="tools" />
<None Update="App.config.install.xdt" Pack="true" PackagePath="content" />
<None Update="Web.config.install.xdt" Pack="true" PackagePath="content" />
<None Include="..\..\..\license.txt" Link="license.txt" Pack="true" PackagePath="" />
</ItemGroup>
<ItemGroup>
Expand Down
9 changes: 9 additions & 0 deletions Provider/src/EntityFramework.Firebird/Web.config.install.xdt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<entityFramework>
<defaultConnectionFactory xdt:Transform="Remove" />
<defaultConnectionFactory type="EntityFramework.Firebird.FbConnectionFactory, EntityFramework.Firebird" xdt:Transform="Insert" />
<providers>
<provider invariantName="FirebirdSql.Data.FirebirdClient" type="EntityFramework.Firebird.FbProviderServices, EntityFramework.Firebird" xdt:Transform="InsertIfMissing" xdt:Locator="Match(invariantName)" />
</providers>
</entityFramework>
</configuration>
3 changes: 0 additions & 3 deletions Provider/src/EntityFramework.Firebird/install.ps1

This file was deleted.

0 comments on commit f60e587

Please sign in to comment.