Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.
C# aspnet-corecsharpdockerdotnetecommerceecommerce-platformmongodbmulti-storemulti-vendornosqlonline-shopshoppingcart
Remove unused using
KrzysztofPajakf79971428c16
diff --git a/src/Business/Grand.Business.System/Services/Installation/InstallationService.cs b/src/Business/Grand.Business.System/Services/Installation/InstallationService.csindex 8c7aa75ba..9ab6813ea 100644--- a/src/Business/Grand.Business.System/Services/Installation/InstallationService.cs+++ b/src/Business/Grand.Business.System/Services/Installation/InstallationService.cs@@ -1,4 +1,3 @@-using Grand.Business.Common.Extensions;using Grand.Business.Common.Interfaces.Directory;using Grand.Business.Customers.Interfaces;using Grand.Business.Customers.Utilities;@@ -30,7 +29,6 @@ using Grand.Domain.Tasks;using Grand.Domain.Tax;using Grand.Domain.Vendors;using Grand.Infrastructure;-using Grand.Infrastructure.Data;using Grand.Infrastructure.TypeSearchers;using Grand.SharedKernel;using Microsoft.AspNetCore.Hosting;@@ -238,8 +236,7 @@ namespace Grand.Business.System.Services.Installationprotected virtual async Task InstallVersion(){- var version = new GrandNodeVersion- {+ var version = new GrandNodeVersion {DataBaseVersion = GrandVersion.SupportedDBVersion};await _versionRepository.InsertAsync(version);@@ -415,7 +412,7 @@ namespace Grand.Business.System.Services.Installationawait _orderRepository.Collection.Indexes.CreateOneAsync(new CreateIndexModel<Order>((Builders<Order>.IndexKeys.Ascending("OrderItems.ProductId")), new CreateIndexOptions() { Name = "OrderItemsProductId" }));await _orderRepository.Collection.Indexes.CreateOneAsync(new CreateIndexModel<Order>((Builders<Order>.IndexKeys.Ascending("OrderItems._id")), new CreateIndexOptions() { Name = "OrderItemId" }));- await _orderStatusRepository.Collection.Indexes.CreateOneAsync(new CreateIndexModel<OrderStatus>((Builders<OrderStatus>.IndexKeys.Ascending(x=>x.StatusId)), new CreateIndexOptions() { Name = "StatusId", Unique = true }));+ await _orderStatusRepository.Collection.Indexes.CreateOneAsync(new CreateIndexModel<OrderStatus>((Builders<OrderStatus>.IndexKeys.Ascending(x => x.StatusId)), new CreateIndexOptions() { Name = "StatusId", Unique = true }));await _orderNoteRepository.Collection.Indexes.CreateOneAsync(new CreateIndexModel<OrderNote>((Builders<OrderNote>.IndexKeys.Ascending(x => x.OrderId).Descending(x => x.CreatedOnUtc)), new CreateIndexOptions() { Name = "Id", Unique = false, Background = true }));@@ -463,7 +460,7 @@ namespace Grand.Business.System.Services.Installationvar databaseName = mongourl.DatabaseName;var mongodb = new MongoClient(connectionString).GetDatabase(databaseName);var mongoDBContext = new MongoDBContext(mongodb);-+var typeSearcher = _serviceProvider.GetRequiredService<ITypeSearcher>();var q = typeSearcher.GetAssemblies().FirstOrDefault(x => x.GetName().Name == "Grand.Domain");foreach (var item in q.GetTypes())