OpenSource » Database Migrator » Migrator2
Clone URL:  

Migrator * Fixed DateTime in mapper classes. Needed the '' outside of the string format.
* Ensured assembly id was set in constructor of migrator.

* Added in dlls for sqlite for build.

Changeset eeb1f70b4867

Parent f75d4479e2dd

by brette.forinash

Changes to 7 files · Browse files at eeb1f70b4867 Showing diff from parent f75d4479e2dd Diff from another changeset...

 
17
18
19
20
 
21
22
23
 
17
18
19
 
20
21
22
23
@@ -17,7 +17,7 @@
  {typeof(decimal),value=>{return (value ?? "").ToString();}},     {typeof(bool),value=>{return (Boolean)value? "1" : "0";}}, - {typeof(DateTime),value=>{return ((DateTime)value).ToString("'yyy-MM-dd HH:mm:ss'");}}, + {typeof(DateTime),value=>{return string.Format("'{0}'", ((DateTime)value).ToString("yyy-MM-dd HH:mm:ss"));} },   {typeof(char),value=>{return value == null ? "null" : String.Format("'{0}'", value.ToString());}},   {typeof(Guid),value=>{return value == null ? "null" : String.Format("'{0}'", value.ToString());}},   {typeof(Guid?), value=>{return value == null ? "null" : String.Format("'{0}'", value.ToString());}},
 
17
18
19
20
 
21
22
23
 
17
18
19
 
20
21
22
23
@@ -17,7 +17,7 @@
  {typeof(decimal),value=>{return (value ?? "").ToString();}},     {typeof(bool),value=>{return (Boolean)value? "1" : "0";}}, - {typeof(DateTime),value=>{return ((DateTime)value).ToString("'yyy-MM-dd HH:mm:ss'");}}, + {typeof(DateTime),value=>{return string.Format("'{0}'", ((DateTime)value).ToString("yyy-MM-dd HH:mm:ss")); } },   {typeof(char),value=>{return value == null ? "null" : String.Format("'{0}'", value.ToString());}},   {typeof(Guid),value=>{return value == null ? "null" : String.Format("'{0}'", value.ToString());}},   {typeof(Guid?), value=>{return value == null ? "null" : String.Format("'{0}'", value.ToString());}},
 
182
183
184
 
185
186
187
 
182
183
184
185
186
187
188
@@ -182,6 +182,7 @@
  {   logger = logger ?? new Log4NetLogger();   _provider = provider; + _provider.AssemblyId = assemblyAttribute != null ? assemblyAttribute.Value : null;   _logger = logger;   _provider.Logger = _logger;   BeginMigration = beginMigration ?? new NullMigration();
 
52
53
54
55
 
56
57
58
 
59
60
61
 
52
53
54
 
55
56
57
 
58
59
60
61
@@ -52,10 +52,10 @@
  </Reference>   <Reference Include="System" />   <Reference Include="System.Data" /> - <Reference Include="System.Data.SQLite, Version=1.0.66.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139, processorArchitecture=x86"> + <Reference Include="System.Data.SQLite">   <HintPath>..\..\lib\System.Data.SQLite.DLL</HintPath>   </Reference> - <Reference Include="System.Data.SQLite.Linq, Version=2.0.38.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139, processorArchitecture=MSIL"> + <Reference Include="System.Data.SQLite.Linq">   <HintPath>..\..\lib\System.Data.SQLite.Linq.dll</HintPath>   </Reference>   <Reference Include="System.Web" />
 
 
 
 
 
68
69
70
71
72
73
74
 
68
69
70
 
71
72
73
@@ -68,7 +68,6 @@
  <Compile Include="AssemblyInfo.cs" />   <Compile Include="MigrationTypeComparerTest.cs" />   <Compile Include="MigratorTest.cs" /> - <Compile Include="Providers\SqliteTransformationProviderTest.cs" />   <Compile Include="Providers\MySqlTransformationProviderTest.cs" />   <Compile Include="Providers\PostgreSQLTransformationProviderTest.cs" />   <Compile Include="Providers\SqlServerTransformationProviderTest.cs" />