diff --git a/CosmosClone/CloneConsoleRun/App.config b/CosmosClone/CloneConsoleRun/App.config index 6f12b01..0ee77ab 100644 --- a/CosmosClone/CloneConsoleRun/App.config +++ b/CosmosClone/CloneConsoleRun/App.config @@ -65,6 +65,10 @@ + + + + \ No newline at end of file diff --git a/CosmosClone/CloneConsoleRun/CloneConsoleRun.csproj b/CosmosClone/CloneConsoleRun/CloneConsoleRun.csproj index e5209e4..4314182 100644 --- a/CosmosClone/CloneConsoleRun/CloneConsoleRun.csproj +++ b/CosmosClone/CloneConsoleRun/CloneConsoleRun.csproj @@ -11,6 +11,8 @@ v4.6.1 512 true + + AnyCPU @@ -32,11 +34,36 @@ 4 + + ..\packages\Microsoft.Azure.CosmosDB.BulkExecutor.1.2.0\lib\net451\Microsoft.Azure.CosmosDB.BulkImport.dll + + + ..\packages\Microsoft.Azure.DocumentDB.2.1.3\lib\net461\Microsoft.Azure.Documents.Client.dll + + + ..\packages\MongoDB.Bson.2.4.4\lib\net45\MongoDB.Bson.dll + ..\packages\Newtonsoft.Json.10.0.2\lib\net45\Newtonsoft.Json.dll + + ..\packages\System.Buffers.4.5.0\lib\netstandard2.0\System.Buffers.dll + + + ..\packages\System.Memory.4.5.0\lib\netstandard2.0\System.Memory.dll + + + ..\packages\System.Net.Http.WinHttpHandler.4.5.0\lib\net461\System.Net.Http.WinHttpHandler.dll + + + + ..\packages\System.Numerics.Vectors.4.4.0\lib\net46\System.Numerics.Vectors.dll + + + ..\packages\System.Runtime.CompilerServices.Unsafe.4.5.0\lib\netstandard2.0\System.Runtime.CompilerServices.Unsafe.dll + @@ -47,6 +74,10 @@ + + + + @@ -59,4 +90,11 @@ + + + + This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. + + + \ No newline at end of file diff --git a/CosmosClone/CloneConsoleRun/Program.cs b/CosmosClone/CloneConsoleRun/Program.cs index 8934e25..d989ca9 100644 --- a/CosmosClone/CloneConsoleRun/Program.cs +++ b/CosmosClone/CloneConsoleRun/Program.cs @@ -10,7 +10,6 @@ using CosmosCloneCommon; using CosmosCloneCommon.Migrator; using CosmosCloneCommon.Model; -using CosmosCloneCommon.Sample; using CosmosCloneCommon.Utility; using logger = CosmosCloneCommon.Utility.CloneLogger; using Newtonsoft.Json; diff --git a/CosmosClone/CosmosCloneCommon/Sample/CosmosSampleDBHelper.cs b/CosmosClone/CloneConsoleRun/Sample/CosmosSampleDBHelper.cs similarity index 95% rename from CosmosClone/CosmosCloneCommon/Sample/CosmosSampleDBHelper.cs rename to CosmosClone/CloneConsoleRun/Sample/CosmosSampleDBHelper.cs index 98f1fa5..d2cad27 100644 --- a/CosmosClone/CosmosCloneCommon/Sample/CosmosSampleDBHelper.cs +++ b/CosmosClone/CloneConsoleRun/Sample/CosmosSampleDBHelper.cs @@ -1,19 +1,16 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using Microsoft.Azure.Documents.Client; -using Microsoft.Azure.Documents; -using CosmosCloneCommon.Model; using logger = CosmosCloneCommon.Utility.CloneLogger; -using CosmosCloneCommon.Utility; -namespace CosmosCloneCommon.Sample +namespace CloneConsoleRun.Sample { + using System; + using System.Threading.Tasks; + using CosmosCloneCommon.Utility; + using Microsoft.Azure.Documents; + using Microsoft.Azure.Documents.Client; + public class CosmosSampleDBHelper { private ConnectionPolicy ConnectionPolicy; diff --git a/CosmosClone/CosmosCloneCommon/Sample/Entity.cs b/CosmosClone/CloneConsoleRun/Sample/Entity.cs similarity index 88% rename from CosmosClone/CosmosCloneCommon/Sample/Entity.cs rename to CosmosClone/CloneConsoleRun/Sample/Entity.cs index 3455208..b3412c8 100644 --- a/CosmosClone/CosmosCloneCommon/Sample/Entity.cs +++ b/CosmosClone/CloneConsoleRun/Sample/Entity.cs @@ -2,16 +2,12 @@ // Licensed under the MIT License. -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Threading; -using CosmosCloneCommon.Model; - -namespace CosmosCloneCommon.Sample +namespace CloneConsoleRun.Sample { + using System; + using System.Collections.Generic; + using CosmosCloneCommon.Model; + public class Entity { public int Id { get; set; } @@ -25,7 +21,7 @@ public class Entity public static Entity getRandomEntity() { var entity = new Entity(); - entity.Id = RandomNumberGenerator.getNext(); + entity.Id = RandomNumberGenerator.GetNext(); entity.Name = "Test Sample Name " + entity.Id.ToString(); entity.Description = "Test Sample Description " + entity.Id.ToString(); entity.IsActive = true; @@ -58,10 +54,10 @@ public static CompositeEntity getRandomCompositeEntity() { var compositeEntity = new CompositeEntity(); compositeEntity.id = Guid.NewGuid().ToString(); - compositeEntity.EmployeeId = RandomNumberGenerator.getNext().ToString(); + compositeEntity.EmployeeId = RandomNumberGenerator.GetNext().ToString(); compositeEntity.EntityType = RandomNumberGenerator.GetRandomEntityType(); - compositeEntity.CompositeName = "Test Sample CompositeName " + RandomNumberGenerator.getNext(); - compositeEntity.EmailAddress = "test" + RandomNumberGenerator.getNext() + "@microsoft.com"; + compositeEntity.CompositeName = "Test Sample CompositeName " + RandomNumberGenerator.GetNext(); + compositeEntity.EmailAddress = "test" + RandomNumberGenerator.GetNext() + "@microsoft.com"; compositeEntity.EntityValue = Entity.getRandomEntity(); compositeEntity.SuperKeys = new List(); @@ -82,7 +78,7 @@ public class EntityKey public static EntityKey getRandomEntityKey() { var entityKey = new EntityKey(); - entityKey.KeyId = RandomNumberGenerator.getNext().ToString(); + entityKey.KeyId = RandomNumberGenerator.GetNext().ToString(); entityKey.KeyName = "TestKeyName-" + entityKey.KeyId.ToString(); entityKey.KeyValue = "TestKeyValue-" + entityKey.KeyId.ToString(); return entityKey; diff --git a/CosmosClone/CosmosCloneCommon/Sample/EntityV2.cs b/CosmosClone/CloneConsoleRun/Sample/EntityV2.cs similarity index 81% rename from CosmosClone/CosmosCloneCommon/Sample/EntityV2.cs rename to CosmosClone/CloneConsoleRun/Sample/EntityV2.cs index fa224dc..0658f30 100644 --- a/CosmosClone/CosmosCloneCommon/Sample/EntityV2.cs +++ b/CosmosClone/CloneConsoleRun/Sample/EntityV2.cs @@ -1,16 +1,12 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Threading; -using CosmosCloneCommon.Model; - -namespace CosmosCloneCommon.Sample +namespace CloneConsoleRun.Sample { + using System; + using System.Collections.Generic; + using CosmosCloneCommon.Model; + public class EntityV2 { public string FullName { get; set; } @@ -28,14 +24,14 @@ public class EntityV2 public static EntityV2 getRandomEntity() { var entity = new EntityV2(); - entity.SuperId = RandomNumberGenerator.getNext(); + entity.SuperId = RandomNumberGenerator.GetNext(); entity.id = Guid.NewGuid().ToString(); entity.FullName = "Test Sample Name " + entity.SuperId.ToString(); entity.Description = "Test Sample Description " + entity.SuperId.ToString(); entity.EntityType = RandomNumberGenerator.GetRandomEntityType(); - var employeeid = RandomNumberGenerator.getNext(); + var employeeid = RandomNumberGenerator.GetNext(); entity.EmailAddress = "intialTest"+ employeeid .ToString()+ "@test.com"; - entity.PhoneNumber = RandomNumberGenerator.getNext().ToString(); + entity.PhoneNumber = RandomNumberGenerator.GetNext().ToString(); entity.IsActive = true; entity.ModifiedTime = DateTime.UtcNow; diff --git a/CosmosClone/CosmosCloneCommon/Sample/SampleDBCreator.cs b/CosmosClone/CloneConsoleRun/Sample/SampleDBCreator.cs similarity index 89% rename from CosmosClone/CosmosCloneCommon/Sample/SampleDBCreator.cs rename to CosmosClone/CloneConsoleRun/Sample/SampleDBCreator.cs index 7574450..49741dc 100644 --- a/CosmosClone/CosmosCloneCommon/Sample/SampleDBCreator.cs +++ b/CosmosClone/CloneConsoleRun/Sample/SampleDBCreator.cs @@ -2,23 +2,21 @@ // Licensed under the MIT License. -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using Microsoft.Azure.Documents; -using Microsoft.Azure.Documents.Client; -using CosmosCloneCommon.Utility; //using CollectionMigrator.Model; -using System.Diagnostics; -using Microsoft.Azure.CosmosDB.BulkExecutor; -using Microsoft.Azure.CosmosDB.BulkExecutor.BulkImport; -using Microsoft.Azure.Documents.Linq; using logger = CosmosCloneCommon.Utility.CloneLogger; -namespace CosmosCloneCommon.Sample +namespace CloneConsoleRun.Sample { + using System; + using System.Collections.Generic; + using System.Diagnostics; + using System.Linq; + using System.Threading.Tasks; + using CosmosCloneCommon.Utility; + using Microsoft.Azure.CosmosDB.BulkExecutor.BulkImport; + using Microsoft.Azure.Documents; + using Microsoft.Azure.Documents.Client; + public class SampleDBCreator { #region declare variables diff --git a/CosmosClone/CloneConsoleRun/packages.config b/CosmosClone/CloneConsoleRun/packages.config index 50e4724..3bdc108 100644 --- a/CosmosClone/CloneConsoleRun/packages.config +++ b/CosmosClone/CloneConsoleRun/packages.config @@ -1,4 +1,12 @@  + + + + + + + + \ No newline at end of file diff --git a/CosmosClone/CosmicCloneUI/App.xaml b/CosmosClone/CosmicCloneUI/App.xaml index bf42e4c..0adc324 100644 --- a/CosmosClone/CosmicCloneUI/App.xaml +++ b/CosmosClone/CosmicCloneUI/App.xaml @@ -4,6 +4,36 @@ xmlns:local="clr-namespace:CosmicCloneUI" StartupUri="MainWindow.xaml"> - + + + + + + + + diff --git a/CosmosClone/CosmicCloneUI/CloneOptionsPage.xaml b/CosmosClone/CosmicCloneUI/CloneOptionsPage.xaml index 16c22b5..aacdc40 100644 --- a/CosmosClone/CosmicCloneUI/CloneOptionsPage.xaml +++ b/CosmosClone/CosmicCloneUI/CloneOptionsPage.xaml @@ -7,45 +7,17 @@ mc:Ignorable="d" d:DesignHeight="320" d:DesignWidth="800" Title="CloneOptionsPage"> - - - - - + + \ No newline at end of file diff --git a/CosmosClone/CosmicCloneUI/CopyCollectionPage.xaml b/CosmosClone/CosmicCloneUI/CopyCollectionPage.xaml index 6c3f7e9..a366783 100644 --- a/CosmosClone/CosmicCloneUI/CopyCollectionPage.xaml +++ b/CosmosClone/CosmicCloneUI/CopyCollectionPage.xaml @@ -7,34 +7,34 @@ mc:Ignorable="d" d:DesignHeight="320" d:DesignWidth="800" Title="CopyCollectionPage"> - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + Enter Target connection details + + +