From 3ac8268e8e1c9898e63adcfd164935e359a3e82a Mon Sep 17 00:00:00 2001 From: qinyouzeng Date: Thu, 12 Sep 2024 18:01:30 +0800 Subject: [PATCH] chore: update using --- .../Domain/App/Services/ConfigObjectDomainService.cs | 5 ----- .../App/AppConfigEntityTypeConfiguration.cs | 2 -- .../App/AppPinEntityTypeConfiguration.cs | 2 -- .../App/AppSecretEntityTypeConfiguration.cs | 2 -- .../App/ConfigObjectEntityTypeConfiguration.cs | 2 -- .../App/ConfigObjectReleaseEntityTypeConfiguration.cs | 2 -- .../App/PublicConfigEntityTypeConfiguration.cs | 2 -- .../App/PublicConfigObjectEntityTypeConfiguration.cs | 2 -- .../Label/LabelEntityTypeConfiguration.cs | 2 -- src/Services/Masa.Dcc.Service/_Imports.cs | 3 ++- .../Masa.Dcc.Web.Admin.WebAssembly/Program.cs | 2 +- 11 files changed, 3 insertions(+), 23 deletions(-) diff --git a/src/Services/Masa.Dcc.Service/Domain/App/Services/ConfigObjectDomainService.cs b/src/Services/Masa.Dcc.Service/Domain/App/Services/ConfigObjectDomainService.cs index c06e4f54..292f6439 100644 --- a/src/Services/Masa.Dcc.Service/Domain/App/Services/ConfigObjectDomainService.cs +++ b/src/Services/Masa.Dcc.Service/Domain/App/Services/ConfigObjectDomainService.cs @@ -1,11 +1,6 @@ // Copyright (c) MASA Stack All rights reserved. // Licensed under the Apache License. See LICENSE.txt in the project root for license information. -using Masa.BuildingBlocks.Configuration; -using Masa.BuildingBlocks.Data; -using Masa.BuildingBlocks.StackSdks.Dcc.Contracts.Enum; -using Masa.Dcc.Service.Admin.Domain.App.Aggregates; - namespace Masa.Dcc.Service.Admin.Domain.App.Services { public class ConfigObjectDomainService : DomainService diff --git a/src/Services/Masa.Dcc.Service/Infrastructure/EntityConfigurations/App/AppConfigEntityTypeConfiguration.cs b/src/Services/Masa.Dcc.Service/Infrastructure/EntityConfigurations/App/AppConfigEntityTypeConfiguration.cs index 69398faf..af2be3e5 100644 --- a/src/Services/Masa.Dcc.Service/Infrastructure/EntityConfigurations/App/AppConfigEntityTypeConfiguration.cs +++ b/src/Services/Masa.Dcc.Service/Infrastructure/EntityConfigurations/App/AppConfigEntityTypeConfiguration.cs @@ -1,8 +1,6 @@ // Copyright (c) MASA Stack All rights reserved. // Licensed under the Apache License. See LICENSE.txt in the project root for license information. -using Microsoft.EntityFrameworkCore.Metadata.Builders; - namespace Masa.Dcc.Service.Admin.Infrastructure.EntityConfigurations.App { public class AppConfigEntityTypeConfiguration : IEntityTypeConfiguration diff --git a/src/Services/Masa.Dcc.Service/Infrastructure/EntityConfigurations/App/AppPinEntityTypeConfiguration.cs b/src/Services/Masa.Dcc.Service/Infrastructure/EntityConfigurations/App/AppPinEntityTypeConfiguration.cs index 6fffb31b..f9eef7cf 100644 --- a/src/Services/Masa.Dcc.Service/Infrastructure/EntityConfigurations/App/AppPinEntityTypeConfiguration.cs +++ b/src/Services/Masa.Dcc.Service/Infrastructure/EntityConfigurations/App/AppPinEntityTypeConfiguration.cs @@ -1,8 +1,6 @@ // Copyright (c) MASA Stack All rights reserved. // Licensed under the Apache License. See LICENSE.txt in the project root for license information. -using Microsoft.EntityFrameworkCore.Metadata.Builders; - namespace Masa.Dcc.Service.Admin.Infrastructure.EntityConfigurations.App { public class AppPinEntityTypeConfiguration : IEntityTypeConfiguration diff --git a/src/Services/Masa.Dcc.Service/Infrastructure/EntityConfigurations/App/AppSecretEntityTypeConfiguration.cs b/src/Services/Masa.Dcc.Service/Infrastructure/EntityConfigurations/App/AppSecretEntityTypeConfiguration.cs index 83f7b613..93a789a3 100644 --- a/src/Services/Masa.Dcc.Service/Infrastructure/EntityConfigurations/App/AppSecretEntityTypeConfiguration.cs +++ b/src/Services/Masa.Dcc.Service/Infrastructure/EntityConfigurations/App/AppSecretEntityTypeConfiguration.cs @@ -1,8 +1,6 @@ // Copyright (c) MASA Stack All rights reserved. // Licensed under the Apache License. See LICENSE.txt in the project root for license information. -using Microsoft.EntityFrameworkCore.Metadata.Builders; - namespace Masa.Dcc.Service.Admin.Infrastructure.EntityConfigurations.App { public class AppSecretEntityTypeConfiguration : IEntityTypeConfiguration diff --git a/src/Services/Masa.Dcc.Service/Infrastructure/EntityConfigurations/App/ConfigObjectEntityTypeConfiguration.cs b/src/Services/Masa.Dcc.Service/Infrastructure/EntityConfigurations/App/ConfigObjectEntityTypeConfiguration.cs index 834b1a19..e5b7fbab 100644 --- a/src/Services/Masa.Dcc.Service/Infrastructure/EntityConfigurations/App/ConfigObjectEntityTypeConfiguration.cs +++ b/src/Services/Masa.Dcc.Service/Infrastructure/EntityConfigurations/App/ConfigObjectEntityTypeConfiguration.cs @@ -1,8 +1,6 @@ // Copyright (c) MASA Stack All rights reserved. // Licensed under the Apache License. See LICENSE.txt in the project root for license information. -using Microsoft.EntityFrameworkCore.Metadata.Builders; - namespace Masa.Dcc.Service.Admin.Infrastructure.EntityConfigurations.App { public class ConfigObjectEntityTypeConfiguration : IEntityTypeConfiguration diff --git a/src/Services/Masa.Dcc.Service/Infrastructure/EntityConfigurations/App/ConfigObjectReleaseEntityTypeConfiguration.cs b/src/Services/Masa.Dcc.Service/Infrastructure/EntityConfigurations/App/ConfigObjectReleaseEntityTypeConfiguration.cs index df8ff7b3..3caba81f 100644 --- a/src/Services/Masa.Dcc.Service/Infrastructure/EntityConfigurations/App/ConfigObjectReleaseEntityTypeConfiguration.cs +++ b/src/Services/Masa.Dcc.Service/Infrastructure/EntityConfigurations/App/ConfigObjectReleaseEntityTypeConfiguration.cs @@ -1,8 +1,6 @@ // Copyright (c) MASA Stack All rights reserved. // Licensed under the Apache License. See LICENSE.txt in the project root for license information. -using Microsoft.EntityFrameworkCore.Metadata.Builders; - namespace Masa.Dcc.Service.Admin.Infrastructure.EntityConfigurations.App { public class ConfigObjectReleaseEntityTypeConfiguration : IEntityTypeConfiguration diff --git a/src/Services/Masa.Dcc.Service/Infrastructure/EntityConfigurations/App/PublicConfigEntityTypeConfiguration.cs b/src/Services/Masa.Dcc.Service/Infrastructure/EntityConfigurations/App/PublicConfigEntityTypeConfiguration.cs index d104b8b8..d474a401 100644 --- a/src/Services/Masa.Dcc.Service/Infrastructure/EntityConfigurations/App/PublicConfigEntityTypeConfiguration.cs +++ b/src/Services/Masa.Dcc.Service/Infrastructure/EntityConfigurations/App/PublicConfigEntityTypeConfiguration.cs @@ -1,8 +1,6 @@ // Copyright (c) MASA Stack All rights reserved. // Licensed under the Apache License. See LICENSE.txt in the project root for license information. -using Microsoft.EntityFrameworkCore.Metadata.Builders; - namespace Masa.Dcc.Service.Admin.Infrastructure.EntityConfigurations.App { public class PublicConfigEntityTypeConfiguration : IEntityTypeConfiguration diff --git a/src/Services/Masa.Dcc.Service/Infrastructure/EntityConfigurations/App/PublicConfigObjectEntityTypeConfiguration.cs b/src/Services/Masa.Dcc.Service/Infrastructure/EntityConfigurations/App/PublicConfigObjectEntityTypeConfiguration.cs index 1431f2fa..bc75ea15 100644 --- a/src/Services/Masa.Dcc.Service/Infrastructure/EntityConfigurations/App/PublicConfigObjectEntityTypeConfiguration.cs +++ b/src/Services/Masa.Dcc.Service/Infrastructure/EntityConfigurations/App/PublicConfigObjectEntityTypeConfiguration.cs @@ -1,8 +1,6 @@ // Copyright (c) MASA Stack All rights reserved. // Licensed under the Apache License. See LICENSE.txt in the project root for license information. -using Microsoft.EntityFrameworkCore.Metadata.Builders; - namespace Masa.Dcc.Service.Admin.Infrastructure.EntityConfigurations.App { public class PublicConfigObjectEntityTypeConfiguration : IEntityTypeConfiguration diff --git a/src/Services/Masa.Dcc.Service/Infrastructure/EntityConfigurations/Label/LabelEntityTypeConfiguration.cs b/src/Services/Masa.Dcc.Service/Infrastructure/EntityConfigurations/Label/LabelEntityTypeConfiguration.cs index ea01d1bb..3b9fe4e2 100644 --- a/src/Services/Masa.Dcc.Service/Infrastructure/EntityConfigurations/Label/LabelEntityTypeConfiguration.cs +++ b/src/Services/Masa.Dcc.Service/Infrastructure/EntityConfigurations/Label/LabelEntityTypeConfiguration.cs @@ -1,8 +1,6 @@ // Copyright (c) MASA Stack All rights reserved. // Licensed under the Apache License. See LICENSE.txt in the project root for license information. -using Microsoft.EntityFrameworkCore.Metadata.Builders; - namespace Masa.Dcc.Service.Admin.Infrastructure.EntityConfigurations.Label { public class LabelEntityTypeConfiguration : IEntityTypeConfiguration diff --git a/src/Services/Masa.Dcc.Service/_Imports.cs b/src/Services/Masa.Dcc.Service/_Imports.cs index c33b3f4f..718e02f8 100644 --- a/src/Services/Masa.Dcc.Service/_Imports.cs +++ b/src/Services/Masa.Dcc.Service/_Imports.cs @@ -15,6 +15,7 @@ global using Mapster; global using Masa.BuildingBlocks.Authentication.Identity; global using Masa.BuildingBlocks.Caching; +global using Masa.BuildingBlocks.Configuration; global using Masa.BuildingBlocks.Data.UoW; global using Masa.BuildingBlocks.Ddd.Domain.Entities.Full; global using Masa.BuildingBlocks.Ddd.Domain.Events; @@ -63,4 +64,4 @@ global using Microsoft.AspNetCore.Mvc; global using Microsoft.EntityFrameworkCore; global using Microsoft.EntityFrameworkCore.Design; -global using Masa.BuildingBlocks.Configuration; +global using Microsoft.EntityFrameworkCore.Metadata.Builders; diff --git a/src/Web/Masa.Dcc.Web.Admin/Masa.Dcc.Web.Admin.WebAssembly/Program.cs b/src/Web/Masa.Dcc.Web.Admin/Masa.Dcc.Web.Admin.WebAssembly/Program.cs index fd8ce7a3..3ec93b7a 100644 --- a/src/Web/Masa.Dcc.Web.Admin/Masa.Dcc.Web.Admin.WebAssembly/Program.cs +++ b/src/Web/Masa.Dcc.Web.Admin/Masa.Dcc.Web.Admin.WebAssembly/Program.cs @@ -1,4 +1,4 @@ -using Masa.Dcc.Web.Admin.Rcl.Global; +using Masa.Dcc.Web.Admin.Rcl.Global; using Masa.Dcc.Web.Admin.Rcl; using Microsoft.AspNetCore.Components.Web; using Microsoft.AspNetCore.Components.WebAssembly.Hosting;