mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Change name of Importer to Import
This commit is contained in:
@@ -68,7 +68,7 @@
|
||||
<ItemGroup>
|
||||
<Compile Include="Converters.cs" />
|
||||
<Compile Include="Generate.cs" />
|
||||
<Compile Include="Importer.cs" />
|
||||
<Compile Include="Import.cs" />
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Remapping.cs" />
|
||||
@@ -78,6 +78,10 @@
|
||||
<None Include="App.config" />
|
||||
<None Include="packages.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="Assist\" />
|
||||
<Folder Include="Core\" />
|
||||
</ItemGroup>
|
||||
<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')" />
|
||||
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
|
||||
|
||||
@@ -9,7 +9,7 @@ using System.Reflection;
|
||||
|
||||
namespace DATabase
|
||||
{
|
||||
public class Importer
|
||||
public class Import
|
||||
{
|
||||
// Private instance variables
|
||||
private string _filepath;
|
||||
@@ -50,7 +50,7 @@ namespace DATabase
|
||||
}
|
||||
|
||||
// Constructor
|
||||
public Importer(string filepath, string connectionString)
|
||||
public Import(string filepath, string connectionString)
|
||||
{
|
||||
if (File.Exists(filepath))
|
||||
{
|
||||
@@ -39,7 +39,7 @@ namespace DATabase
|
||||
if (args.Length > 1 && File.Exists(args[1]))
|
||||
{
|
||||
Console.WriteLine(args[1]);
|
||||
Importer imp = new Importer(args[1], _connectionString);
|
||||
Import imp = new Import(args[1], _connectionString);
|
||||
imp.ImportData();
|
||||
}
|
||||
// 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))
|
||||
{
|
||||
Console.WriteLine(filename);
|
||||
Importer imp = new Importer(filename, _connectionString);
|
||||
Import imp = new Import(filename, _connectionString);
|
||||
imp.ImportData();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user