Change name of Importer to Import

This commit is contained in:
Matt Nadareski
2016-03-24 12:46:02 -07:00
parent 91df64c8d5
commit c4d94c9921
3 changed files with 9 additions and 5 deletions

View File

@@ -68,7 +68,7 @@
<ItemGroup> <ItemGroup>
<Compile Include="Converters.cs" /> <Compile Include="Converters.cs" />
<Compile Include="Generate.cs" /> <Compile Include="Generate.cs" />
<Compile Include="Importer.cs" /> <Compile Include="Import.cs" />
<Compile Include="Program.cs" /> <Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Remapping.cs" /> <Compile Include="Remapping.cs" />
@@ -78,6 +78,10 @@
<None Include="App.config" /> <None Include="App.config" />
<None Include="packages.config" /> <None Include="packages.config" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<Folder Include="Assist\" />
<Folder Include="Core\" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="..\packages\System.Data.SQLite.Core.1.0.99.0\build\net451\System.Data.SQLite.Core.targets" Condition="Exists('..\packages\System.Data.SQLite.Core.1.0.99.0\build\net451\System.Data.SQLite.Core.targets')" /> <Import Project="..\packages\System.Data.SQLite.Core.1.0.99.0\build\net451\System.Data.SQLite.Core.targets" Condition="Exists('..\packages\System.Data.SQLite.Core.1.0.99.0\build\net451\System.Data.SQLite.Core.targets')" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">

View File

@@ -9,7 +9,7 @@ using System.Reflection;
namespace DATabase namespace DATabase
{ {
public class Importer public class Import
{ {
// Private instance variables // Private instance variables
private string _filepath; private string _filepath;
@@ -50,7 +50,7 @@ namespace DATabase
} }
// Constructor // Constructor
public Importer(string filepath, string connectionString) public Import(string filepath, string connectionString)
{ {
if (File.Exists(filepath)) if (File.Exists(filepath))
{ {

View File

@@ -39,7 +39,7 @@ namespace DATabase
if (args.Length > 1 && File.Exists(args[1])) if (args.Length > 1 && File.Exists(args[1]))
{ {
Console.WriteLine(args[1]); Console.WriteLine(args[1]);
Importer imp = new Importer(args[1], _connectionString); Import imp = new Import(args[1], _connectionString);
imp.ImportData(); imp.ImportData();
} }
// Check to see if the second argument is a directory that exists // Check to see if the second argument is a directory that exists
@@ -48,7 +48,7 @@ namespace DATabase
foreach (string filename in Directory.GetFiles(args[1], "*", SearchOption.TopDirectoryOnly)) foreach (string filename in Directory.GetFiles(args[1], "*", SearchOption.TopDirectoryOnly))
{ {
Console.WriteLine(filename); Console.WriteLine(filename);
Importer imp = new Importer(filename, _connectionString); Import imp = new Import(filename, _connectionString);
imp.ImportData(); imp.ImportData();
} }
} }