ImportSetManagerStartImport Method |
Namespace: Law.EdaIntegration.Import
public void StartImport( ImportSetBuilder builder )
using Law.EdaIntegration; using Law.EdaIntegration.Case; using Law.EdaIntegration.Import; class Sample { public static void Main() { string connectionString = @"Data Source=localhost;Initial Catalog=EDA_Management;Integrated Security=False;User ID=myUserId;Password=myPassword"; EdaIntegration edaIntegration = new EdaIntegration(); edaIntegration.InitializeEnvironment(connectionString); Case edaCase = edaIntegration.Cases.OpenCaseByName("Case 1"); var inputFiles = new List<string> () { @"C:\Temp\SomeFolder\Data1", @"C:\Temp\SomeFolder\Data2", @"C:\Temp\AnotherFolder\Data", }; ImportSetBuilder builder = _apiCase.Imports.ImportSets.GetNewBuilder(); builder.AddSources(inputFiles, true); _apiCase.Imports.ImportSets.StartImport(builder); } }