Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Created Factory and Generator classes for SqlServer2012
Set up the structure needed to add Sql Server 2012 specfic changes to FluentMigrator. At the moment, functionality is exactly the same as Sql Server 2008.
- Loading branch information
Showing
5 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
src/FluentMigrator.Runner/Generators/SqlServer/SqlServer2012Generator.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
namespace FluentMigrator.Runner.Generators.SqlServer | ||
{ | ||
public class SqlServer2012Generator : SqlServer2008Generator | ||
{ | ||
public SqlServer2012Generator() | ||
:base(new SqlServerColumn(new SqlServer2008TypeMap())) | ||
{ | ||
} | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
src/FluentMigrator.Runner/Processors/SqlServer/SqlServer2012ProcessorFactory.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using FluentMigrator.Runner.Generators.SqlServer; | ||
|
||
namespace FluentMigrator.Runner.Processors.SqlServer | ||
{ | ||
public class SqlServer2012ProcessorFactory : MigrationProcessorFactory | ||
{ | ||
public override IMigrationProcessor Create(string connectionString, IAnnouncer announcer, IMigrationProcessorOptions options) | ||
{ | ||
var factory = new SqlServerDbFactory(); | ||
var connection = factory.CreateConnection(connectionString); | ||
return new SqlServerProcessor(connection, new SqlServer2012Generator(), announcer, options, factory); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters