-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
⚡ refactor: Global using organization and use UtcNow (#363)
* feat: Support PostgreSQL * ⚡ refactor: Global using organization and use UtcNow
- Loading branch information
Showing
19 changed files
with
84 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<MasaFrameworkPackageVersion>1.2.0-preview.5</MasaFrameworkPackageVersion> | ||
<MasaStackSdksPackageVersion>1.2.1-preview.8</MasaStackSdksPackageVersion> | ||
<MasaStackSdksPackageVersion>1.2.1-preview.9</MasaStackSdksPackageVersion> | ||
<MicrosoftPackageVersion>6.0.8</MicrosoftPackageVersion> | ||
</PropertyGroup> | ||
</Project> |
10 changes: 10 additions & 0 deletions
10
src/Application/Masa.Alert.Application.Contracts/AlarmRules/Dtos/AlarmRuleSearchTimeTypes.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// Copyright (c) MASA Stack All rights reserved. | ||
// Licensed under the Apache License. See LICENSE.txt in the project root for license information. | ||
|
||
namespace Masa.Alert.Application.Contracts.AlarmRules.Dtos; | ||
|
||
public enum AlarmRuleSearchTimeTypes | ||
{ | ||
ModificationTime = 1, | ||
CreationTime, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
// Copyright (c) MASA Stack All rights reserved. | ||
// Licensed under the Apache License. See LICENSE.txt in the project root for license information. | ||
|
||
global using System.Runtime.CompilerServices; | ||
global using Masa.BuildingBlocks.Data.Contracts; | ||
global using System.Runtime.CompilerServices; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,39 @@ | ||
// Copyright (c) MASA Stack All rights reserved. | ||
// Licensed under the Apache License. See LICENSE.txt in the project root for license information. | ||
|
||
global using Masa.BuildingBlocks.Ddd.Domain.Entities.Full; | ||
global using Masa.BuildingBlocks.Ddd.Domain.Entities; | ||
global using Masa.Alert.Domain.Shared.AlarmRules; | ||
// System Namespaces | ||
global using System.Collections.Concurrent; | ||
global using System.Collections.ObjectModel; | ||
|
||
// MASA Building Blocks and Contrib Packages | ||
global using Masa.BuildingBlocks.Caching; | ||
global using Masa.BuildingBlocks.Data; | ||
global using Masa.BuildingBlocks.Data.Contracts; | ||
global using Masa.BuildingBlocks.Ddd.Domain.Entities.Full; | ||
global using Masa.BuildingBlocks.Ddd.Domain.Events; | ||
global using Masa.BuildingBlocks.Ddd.Domain.Repositories; | ||
global using Masa.Alert.Domain.Shared.Enums; | ||
global using Masa.BuildingBlocks.Ddd.Domain.Services; | ||
global using Masa.BuildingBlocks.Ddd.Domain.Values; | ||
global using Masa.Contrib.Ddd.Domain; | ||
global using Masa.BuildingBlocks.Ddd.Domain.Events; | ||
global using Masa.BuildingBlocks.RulesEngine; | ||
global using Masa.Contrib.RulesEngine.MicrosoftRulesEngine; | ||
global using System.Collections.Concurrent; | ||
global using Masa.BuildingBlocks.Dispatcher.Events; | ||
global using Masa.Alert.Domain.AlarmRules.Aggregates; | ||
global using Masa.BuildingBlocks.Data; | ||
global using Masa.Alert.Domain.AlarmRules.Repositories; | ||
global using FluentValidation.Results; | ||
global using Masa.Contrib.Dispatcher.Events; | ||
global using Microsoft.Extensions.Logging; | ||
|
||
// MASA Alert Domain Shared | ||
global using Masa.Alert.Domain.Shared.AlarmRules; | ||
global using Masa.Alert.Domain.Shared.AlarmHistory; | ||
global using Masa.Alert.Domain.AlarmHistories; | ||
global using Masa.Alert.Domain.AlarmHistories.Events; | ||
global using Masa.Alert.Domain.Shared; | ||
global using Masa.Alert.Domain.Shared.Consts; | ||
|
||
// MASA Alert Domain Aggregates | ||
global using Masa.Alert.Domain.AlarmRules.Aggregates; | ||
global using Masa.Alert.Domain.AlarmHistories.Aggregates; | ||
global using Masa.Alert.Domain.AlarmHistories.Repositories; | ||
global using Masa.BuildingBlocks.ReadWriteSplitting.Cqrs.Commands; | ||
global using Masa.Alert.Infrastructure.Common.Utils; | ||
global using System.Threading.Channels; | ||
global using Masa.Alert.Domain.AlarmRules.Events; | ||
global using Masa.Alert.Domain.WebHooks.Aggregates; | ||
|
||
// MASA Alert Domain Events | ||
global using Masa.Alert.Domain.AlarmRules.Events; | ||
global using Masa.Alert.Domain.AlarmHistories.Events; | ||
global using Masa.Alert.Domain.WebHooks.Events; | ||
global using System.Text.Json.Serialization; | ||
global using Masa.BuildingBlocks.Data.Contracts; | ||
global using Masa.BuildingBlocks.Data.UoW; | ||
global using Masa.BuildingBlocks.Ddd.Domain.Services; | ||
global using Masa.BuildingBlocks.Caching; | ||
global using Masa.Alert.Domain.Shared.Consts; | ||
|
||
// MASA Alert Domain Repositories | ||
global using Masa.Alert.Domain.AlarmRules.Repositories; | ||
|
||
// MASA Alert Infrastructure | ||
global using Masa.Alert.Infrastructure.Common.Utils; |
3 changes: 1 addition & 2 deletions
3
src/Infrastructure/Masa.Alert.EntityFrameworkCore.PostgreSql/_Imports.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
global using Microsoft.EntityFrameworkCore; | ||
global using Microsoft.EntityFrameworkCore.Design; | ||
global using Microsoft.Extensions.Configuration; | ||
global using Masa.Alert.EntityFrameworkCore; | ||
global using Microsoft.Extensions.Configuration; |
2 changes: 0 additions & 2 deletions
2
src/Infrastructure/Masa.Alert.EntityFrameworkCore.SqlServer/_Imports.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
global using Microsoft.EntityFrameworkCore; | ||
global using Microsoft.EntityFrameworkCore.Metadata.Builders; | ||
global using Masa.BuildingBlocks.Data.Contracts; | ||
global using Microsoft.EntityFrameworkCore.Design; | ||
global using Microsoft.Extensions.Configuration; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,33 @@ | ||
// Copyright (c) MASA Stack All rights reserved. | ||
// Licensed under the Apache License. See LICENSE.txt in the project root for license information. | ||
|
||
global using Mapster; | ||
global using Microsoft.AspNetCore.ResponseCompression; | ||
global using BlazorDownloadFile; | ||
global using Masa.Stack.Components; | ||
// System Namespaces | ||
global using System.Security.Cryptography.X509Certificates; | ||
|
||
// Microsoft Namespaces | ||
global using Microsoft.AspNetCore.Authentication; | ||
global using Microsoft.AspNetCore.Authentication.Cookies; | ||
global using Microsoft.AspNetCore.Authentication.OpenIdConnect; | ||
global using Microsoft.AspNetCore.Hosting.StaticWebAssets; | ||
global using Microsoft.AspNetCore.Mvc; | ||
global using Microsoft.AspNetCore.Mvc.RazorPages; | ||
global using Microsoft.AspNetCore.Hosting.StaticWebAssets; | ||
global using System.Net.NetworkInformation; | ||
global using Microsoft.AspNetCore.Authentication.Cookies; | ||
global using Masa.BuildingBlocks.Configuration; | ||
global using Masa.Alert.Infrastructure.Common.Extensions; | ||
global using Masa.Stack.Components.Models; | ||
global using System.Security.Cryptography.X509Certificates; | ||
global using Masa.Alert.ApiGateways.Caller.Extensions; | ||
global using Masa.Contrib.Configuration.ConfigurationApi.Dcc; | ||
global using Masa.Stack.Components.Extensions.OpenIdConnect; | ||
global using Masa.Contrib.StackSdks.Tsc; | ||
global using Masa.BuildingBlocks.StackSdks.Config; | ||
global using Masa.Contrib.Configuration.ConfigurationApi.Dcc.Options; | ||
global using Masa.Contrib.StackSdks.Config; | ||
global using Microsoft.AspNetCore.ResponseCompression; | ||
global using Microsoft.IdentityModel.Logging; | ||
global using Masa.Contrib.StackSdks.Caller; | ||
global using Microsoft.AspNetCore.Authentication.OpenIdConnect; | ||
global using Microsoft.IdentityModel.Protocols.OpenIdConnect; | ||
|
||
// Third-party Libraries | ||
global using BlazorDownloadFile; | ||
global using FluentValidation; | ||
global using FluentValidation.Resources; | ||
global using Microsoft.IdentityModel.Protocols.OpenIdConnect; | ||
global using System.Reflection; | ||
global using Mapster; | ||
|
||
// MASA Building Blocks and Contrib Packages | ||
global using Masa.Contrib.StackSdks.Caller; | ||
global using Masa.Contrib.StackSdks.Config; | ||
global using Masa.Contrib.Configuration.ConfigurationApi.Dcc; | ||
global using Masa.Stack.Components; | ||
global using Masa.Stack.Components.Extensions.OpenIdConnect; | ||
|
||
// MASA Alert Infrastructure and Extensions | ||
global using Masa.Alert.Infrastructure.Common.Extensions; | ||
global using Masa.Alert.ApiGateways.Caller.Extensions; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters