From cf4f191dda2b6658f7b70e2ce14a3d0de0212533 Mon Sep 17 00:00:00 2001 From: Jon X Date: Thu, 14 Mar 2024 16:21:18 +0800 Subject: [PATCH] Add file header --- src/Leo.Data.Domain/Dtos/MemberDetailDto.cs | 4 +++- src/Leo.Data.Domain/Dtos/MemberDto.cs | 4 +++- src/Leo.Data.Domain/Entities/Customer.cs | 4 +++- src/Leo.Data.Domain/Entities/CustomerDetail.cs | 4 +++- src/Leo.Data.Domain/Entities/Gender.cs | 4 +++- src/Leo.Data.Domain/Entities/IAuditableEntity.cs | 4 +++- src/Leo.Data.Domain/Extensions/AuditableEntityExtensions.cs | 4 +++- src/Leo.Data.Domain/Extensions/ServiceCollectionExtensions.cs | 4 +++- src/Leo.Data.Domain/Mapper/LeoProfile.cs | 4 +++- src/Leo.UI.Services/Abstractions/IAuthenticationService.cs | 4 +++- src/Leo.UI.Services/Abstractions/ICustomerDetailService.cs | 4 +++- src/Leo.UI.Services/Abstractions/ICustomerService.cs | 4 +++- src/Leo.UI.Services/Extensions/ServiceCollectionExtensions.cs | 4 +++- src/Leo.UI.Services/Options/WebOptions.cs | 4 +++- src/Leo.UI.Services/Services/AuthenticationService.cs | 4 +++- src/Leo.UI.Services/Services/CustomerDetailService.cs | 4 +++- src/Leo.UI.Services/Services/CustomerService.cs | 4 +++- src/Leo.Web.Api/Controllers/CustomerDetailsController.cs | 2 ++ src/Leo.Web.Api/Controllers/CustomersController.cs | 2 ++ src/Leo.Web.Api/Controllers/EchoWebSocketController.cs | 4 +++- src/Leo.Web.Api/Routing/SlugifyParameterTransformer.cs | 4 +++- src/Leo.Web.Api/Startup.cs | 4 +++- .../Extensions/ServiceCollectionExtensions.cs | 2 ++ .../Repositories/CustomerDetailRepository.cs | 4 +++- src/Leo.Web.Data.SQLite/Repositories/CustomerRepository.cs | 4 +++- src/Leo.Web.Data.SQLite/Services/DatabaseService.cs | 4 +++- src/Leo.Web.Data.SQLite/Services/DbConnectionFactory.cs | 4 +++- src/Leo.Web.Data.SQLite/Services/UnitOfWork.cs | 4 +++- src/Leo.Web.Data.SQLite/TypeHandlers/GuidToStringHandler.cs | 4 +++- .../Extensions/ServiceCollectionExtensions.cs | 4 +++- .../Repositories/CustomerDetailRepository.cs | 4 +++- src/Leo.Web.Data.SqlServer/Repositories/CustomerRepository.cs | 4 +++- src/Leo.Web.Data.SqlServer/Services/DatabaseService.cs | 4 +++- src/Leo.Web.Data.SqlServer/Services/DbConnectionFactory.cs | 4 +++- src/Leo.Web.Data.SqlServer/Services/UnitOfWork.cs | 4 +++- src/Leo.Web.Data/Abstractions/IDatabaseService.cs | 4 +++- src/Leo.Web.Data/Abstractions/IDbConnectionFactory.cs | 4 +++- src/Leo.Web.Data/Abstractions/IUnitOfWork.cs | 4 +++- src/Leo.Web.Data/Commands/CreateCustomerDetailRequest.cs | 4 +++- src/Leo.Web.Data/Commands/CreateCustomerRequest.cs | 4 +++- .../Commands/Handlers/CreateCustomerDetailRequestHandler.cs | 4 +++- .../Commands/Handlers/CreateCustomerRequestHandler.cs | 4 +++- .../Commands/Handlers/UpdateCustomerRequestHandler.cs | 4 +++- src/Leo.Web.Data/Commands/UpdateCustomerRequest.cs | 4 +++- src/Leo.Web.Data/Extensions/ServiceCollectionExtensions.cs | 4 +++- src/Leo.Web.Data/Queries/GetCustomerByIdRequest.cs | 4 +++- src/Leo.Web.Data/Queries/GetCustomerDetailByIdRequest.cs | 4 +++- .../Queries/GetCustomerDetailsByCustomerIdRequest.cs | 4 +++- src/Leo.Web.Data/Queries/GetCustomersRequest.cs | 4 +++- .../Queries/Handlers/GetMemberByIdRequestHandler.cs | 4 +++- .../Queries/Handlers/GetMemberDetailByIdRequestHandler.cs | 4 +++- .../Handlers/GetMemberDetailsByMemberIdRequestHandler.cs | 4 +++- .../Queries/Handlers/GetMembersRequesttHandler.cs | 4 +++- src/Leo.Web.Data/Repositories/ICustomerDetailRepository.cs | 4 +++- src/Leo.Web.Data/Repositories/ICustomerRepository.cs | 4 +++- src/Leo.Web.Host/Program.cs | 4 +++- src/Leo.Windows.App/Extensions/ServiceCollectionExtensions.cs | 4 +++- src/Leo.Windows.App/Forms/EchoForm.cs | 4 +++- src/Leo.Windows.App/Forms/FindForm.cs | 2 ++ src/Leo.Windows.App/Forms/MainForm.cs | 4 +++- src/Leo.Windows.App/Forms/NewForm.cs | 2 ++ src/Leo.Windows.App/Forms/RecordForm.cs | 2 ++ src/Leo.Windows.App/Mapper/LeoProfile.cs | 4 +++- src/Leo.Windows.App/Program.cs | 4 +++- src/Leo.Windows.App/ViewModels/CustomerDetailViewModel.cs | 4 +++- src/Leo.Windows.App/ViewModels/CustomerViewModel.cs | 4 +++- src/Leo.Wpf.App/Abstractions/ICustomerEditorWindowService.cs | 4 +++- src/Leo.Wpf.App/Abstractions/IEchoWindowService.cs | 4 +++- src/Leo.Wpf.App/Abstractions/IFindWindowService.cs | 4 +++- src/Leo.Wpf.App/Abstractions/IMainWindowService.cs | 4 +++- .../Abstractions/INewCustomerDetailWindowService.cs | 4 +++- src/Leo.Wpf.App/Abstractions/INewCustomerWindowService.cs | 4 +++- src/Leo.Wpf.App/App.xaml.cs | 4 +++- .../Behaviors/DataGridMouseDoubleClickCommandBehavior.cs | 4 +++- src/Leo.Wpf.App/Converters/BooleanInverseConverter.cs | 4 +++- src/Leo.Wpf.App/Converters/GenderToStringConverter.cs | 4 +++- src/Leo.Wpf.App/Extensions/ServiceCollectionExtensions.cs | 4 +++- src/Leo.Wpf.App/Infrastructure/Constants/Constants.Genders.cs | 4 +++- src/Leo.Wpf.App/InternalsVisibleTo.cs | 4 +++- src/Leo.Wpf.App/Mapper/LeoProfile.cs | 4 +++- src/Leo.Wpf.App/Messages/CustomerCreatedMessage.cs | 4 +++- src/Leo.Wpf.App/Messages/CustomerDetailCreatedMessage.cs | 4 +++- src/Leo.Wpf.App/Messages/CustomerFoundMessage.cs | 4 +++- src/Leo.Wpf.App/Services/CustomerEditorWindowService.cs | 4 +++- src/Leo.Wpf.App/Services/EchoWindowService.cs | 4 +++- src/Leo.Wpf.App/Services/FindWindowService.cs | 4 +++- src/Leo.Wpf.App/Services/MainWindowService.cs | 4 +++- src/Leo.Wpf.App/Services/NewCustomerDetailWindowService.cs | 4 +++- src/Leo.Wpf.App/Services/NewCustomerWindowService.cs | 4 +++- src/Leo.Wpf.App/ViewModels/CustomerEditorViewModel.cs | 4 +++- src/Leo.Wpf.App/ViewModels/CustomerViewModel.cs | 4 +++- src/Leo.Wpf.App/ViewModels/EchoViewModel.cs | 4 +++- src/Leo.Wpf.App/ViewModels/FindCustomerViewModel.cs | 4 +++- src/Leo.Wpf.App/ViewModels/MainWindowViewModel.cs | 4 +++- src/Leo.Wpf.App/ViewModels/NewCustomerDetailViewModel.cs | 4 +++- src/Leo.Wpf.App/ViewModels/NewCustomerViewModel.cs | 4 +++- src/Leo.Wpf.App/Views/CustomerEditorWindow.xaml.cs | 4 +++- src/Leo.Wpf.App/Views/EchoWindow.xaml.cs | 4 +++- src/Leo.Wpf.App/Views/FindWindow.xaml.cs | 4 +++- src/Leo.Wpf.App/Views/MainWindow.xaml.cs | 4 +++- src/Leo.Wpf.App/Views/NewCustomerDetailWindow.xaml.cs | 4 +++- src/Leo.Wpf.App/Views/NewCustomerWindow.xaml.cs | 4 +++- test/Leo.Data.Domain.Tests/GlobalUsings.cs | 2 ++ test/Leo.Data.Domain.Tests/MapperConfigurationTests.cs | 2 ++ .../EndpointsTests.CustomerDetailsController.cs | 2 ++ test/Leo.Web.Api.Tests/EndpointsTests.CustomersController.cs | 2 ++ test/Leo.Web.Api.Tests/EndpointsTests.HealthCheck.cs | 2 ++ test/Leo.Web.Api.Tests/EndpointsTests.cs | 2 ++ test/Leo.Web.Api.Tests/GlobalUsings.cs | 2 ++ test/Leo.Web.Api.Tests/LeoAuthenticationHandler.cs | 4 +++- test/Leo.Web.Api.Tests/LeoWebApplicationFactory.cs | 4 +++- test/Leo.Wpf.App.Tests/GlobalUsings.cs | 2 ++ test/Leo.Wpf.App.Tests/MapperConfigurationTests.cs | 2 ++ 113 files changed, 324 insertions(+), 98 deletions(-) diff --git a/src/Leo.Data.Domain/Dtos/MemberDetailDto.cs b/src/Leo.Data.Domain/Dtos/MemberDetailDto.cs index 727fe62..6f4df2c 100644 --- a/src/Leo.Data.Domain/Dtos/MemberDetailDto.cs +++ b/src/Leo.Data.Domain/Dtos/MemberDetailDto.cs @@ -1,4 +1,6 @@ -using System.ComponentModel.DataAnnotations; +// MIT License + +using System.ComponentModel.DataAnnotations; namespace Leo.Data.Domain.Dtos { diff --git a/src/Leo.Data.Domain/Dtos/MemberDto.cs b/src/Leo.Data.Domain/Dtos/MemberDto.cs index 760d960..c54eb95 100644 --- a/src/Leo.Data.Domain/Dtos/MemberDto.cs +++ b/src/Leo.Data.Domain/Dtos/MemberDto.cs @@ -1,4 +1,6 @@ -using Leo.Data.Domain.Entities; +// MIT License + +using Leo.Data.Domain.Entities; using System.ComponentModel.DataAnnotations; using System.Text.Json.Serialization; diff --git a/src/Leo.Data.Domain/Entities/Customer.cs b/src/Leo.Data.Domain/Entities/Customer.cs index 2442813..228b77f 100644 --- a/src/Leo.Data.Domain/Entities/Customer.cs +++ b/src/Leo.Data.Domain/Entities/Customer.cs @@ -1,4 +1,6 @@ -namespace Leo.Data.Domain.Entities +// MIT License + +namespace Leo.Data.Domain.Entities { public class Customer : IAuditableEntity { diff --git a/src/Leo.Data.Domain/Entities/CustomerDetail.cs b/src/Leo.Data.Domain/Entities/CustomerDetail.cs index f988a84..d6ee431 100644 --- a/src/Leo.Data.Domain/Entities/CustomerDetail.cs +++ b/src/Leo.Data.Domain/Entities/CustomerDetail.cs @@ -1,4 +1,6 @@ -namespace Leo.Data.Domain.Entities +// MIT License + +namespace Leo.Data.Domain.Entities { public class CustomerDetail : IAuditableEntity { diff --git a/src/Leo.Data.Domain/Entities/Gender.cs b/src/Leo.Data.Domain/Entities/Gender.cs index c68df9e..f775cd2 100644 --- a/src/Leo.Data.Domain/Entities/Gender.cs +++ b/src/Leo.Data.Domain/Entities/Gender.cs @@ -1,4 +1,6 @@ -namespace Leo.Data.Domain.Entities +// MIT License + +namespace Leo.Data.Domain.Entities { public enum Gender { diff --git a/src/Leo.Data.Domain/Entities/IAuditableEntity.cs b/src/Leo.Data.Domain/Entities/IAuditableEntity.cs index 8210994..97c02cc 100644 --- a/src/Leo.Data.Domain/Entities/IAuditableEntity.cs +++ b/src/Leo.Data.Domain/Entities/IAuditableEntity.cs @@ -1,4 +1,6 @@ -namespace Leo.Data.Domain.Entities +// MIT License + +namespace Leo.Data.Domain.Entities { public interface IAuditableEntity { diff --git a/src/Leo.Data.Domain/Extensions/AuditableEntityExtensions.cs b/src/Leo.Data.Domain/Extensions/AuditableEntityExtensions.cs index 944c7bc..16ecbde 100644 --- a/src/Leo.Data.Domain/Extensions/AuditableEntityExtensions.cs +++ b/src/Leo.Data.Domain/Extensions/AuditableEntityExtensions.cs @@ -1,4 +1,6 @@ -using Leo.Data.Domain.Entities; +// MIT License + +using Leo.Data.Domain.Entities; using System.Security.Claims; namespace Leo.Data.Domain diff --git a/src/Leo.Data.Domain/Extensions/ServiceCollectionExtensions.cs b/src/Leo.Data.Domain/Extensions/ServiceCollectionExtensions.cs index 4900a69..149c2cf 100644 --- a/src/Leo.Data.Domain/Extensions/ServiceCollectionExtensions.cs +++ b/src/Leo.Data.Domain/Extensions/ServiceCollectionExtensions.cs @@ -1,4 +1,6 @@ -using System.Reflection; +// MIT License + +using System.Reflection; namespace Microsoft.Extensions.DependencyInjection { diff --git a/src/Leo.Data.Domain/Mapper/LeoProfile.cs b/src/Leo.Data.Domain/Mapper/LeoProfile.cs index db0896a..7f1ea84 100644 --- a/src/Leo.Data.Domain/Mapper/LeoProfile.cs +++ b/src/Leo.Data.Domain/Mapper/LeoProfile.cs @@ -1,4 +1,6 @@ -using AutoMapper; +// MIT License + +using AutoMapper; using Leo.Data.Domain.Dtos; using Leo.Data.Domain.Entities; using System.Runtime.CompilerServices; diff --git a/src/Leo.UI.Services/Abstractions/IAuthenticationService.cs b/src/Leo.UI.Services/Abstractions/IAuthenticationService.cs index 044a525..5324e64 100644 --- a/src/Leo.UI.Services/Abstractions/IAuthenticationService.cs +++ b/src/Leo.UI.Services/Abstractions/IAuthenticationService.cs @@ -1,4 +1,6 @@ -using Microsoft.Identity.Client; +// MIT License + +using Microsoft.Identity.Client; namespace Leo.UI.Services { diff --git a/src/Leo.UI.Services/Abstractions/ICustomerDetailService.cs b/src/Leo.UI.Services/Abstractions/ICustomerDetailService.cs index 05c135c..e5c46ec 100644 --- a/src/Leo.UI.Services/Abstractions/ICustomerDetailService.cs +++ b/src/Leo.UI.Services/Abstractions/ICustomerDetailService.cs @@ -1,4 +1,6 @@ -using Leo.Data.Domain.Dtos; +// MIT License + +using Leo.Data.Domain.Dtos; namespace Leo.UI { diff --git a/src/Leo.UI.Services/Abstractions/ICustomerService.cs b/src/Leo.UI.Services/Abstractions/ICustomerService.cs index 3e4dcbe..b29a6ba 100644 --- a/src/Leo.UI.Services/Abstractions/ICustomerService.cs +++ b/src/Leo.UI.Services/Abstractions/ICustomerService.cs @@ -1,4 +1,6 @@ -using Leo.Data.Domain.Dtos; +// MIT License + +using Leo.Data.Domain.Dtos; namespace Leo.UI { diff --git a/src/Leo.UI.Services/Extensions/ServiceCollectionExtensions.cs b/src/Leo.UI.Services/Extensions/ServiceCollectionExtensions.cs index 9ce6790..8951c86 100644 --- a/src/Leo.UI.Services/Extensions/ServiceCollectionExtensions.cs +++ b/src/Leo.UI.Services/Extensions/ServiceCollectionExtensions.cs @@ -1,4 +1,6 @@ -using Leo.UI.Options; +// MIT License + +using Leo.UI.Options; using Leo.UI.Services.Services; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Options; diff --git a/src/Leo.UI.Services/Options/WebOptions.cs b/src/Leo.UI.Services/Options/WebOptions.cs index d17d60d..6b1f1ac 100644 --- a/src/Leo.UI.Services/Options/WebOptions.cs +++ b/src/Leo.UI.Services/Options/WebOptions.cs @@ -1,4 +1,6 @@ -namespace Leo.UI.Options +// MIT License + +namespace Leo.UI.Options { public sealed class WebOptions { diff --git a/src/Leo.UI.Services/Services/AuthenticationService.cs b/src/Leo.UI.Services/Services/AuthenticationService.cs index 8ca65c1..3463447 100644 --- a/src/Leo.UI.Services/Services/AuthenticationService.cs +++ b/src/Leo.UI.Services/Services/AuthenticationService.cs @@ -1,4 +1,6 @@ -using Microsoft.Extensions.Options; +// MIT License + +using Microsoft.Extensions.Options; using Microsoft.Identity.Client; namespace Leo.UI.Services.Services diff --git a/src/Leo.UI.Services/Services/CustomerDetailService.cs b/src/Leo.UI.Services/Services/CustomerDetailService.cs index d4677c4..a43af46 100644 --- a/src/Leo.UI.Services/Services/CustomerDetailService.cs +++ b/src/Leo.UI.Services/Services/CustomerDetailService.cs @@ -1,4 +1,6 @@ -using Leo.Data.Domain.Dtos; +// MIT License + +using Leo.Data.Domain.Dtos; using Microsoft.Extensions.Logging; using System.Net.Http.Headers; using System.Net.Http.Json; diff --git a/src/Leo.UI.Services/Services/CustomerService.cs b/src/Leo.UI.Services/Services/CustomerService.cs index f339cd0..337324d 100644 --- a/src/Leo.UI.Services/Services/CustomerService.cs +++ b/src/Leo.UI.Services/Services/CustomerService.cs @@ -1,4 +1,6 @@ -using Leo.Data.Domain.Dtos; +// MIT License + +using Leo.Data.Domain.Dtos; using Microsoft.Extensions.Logging; using System.Net.Http.Headers; using System.Net.Http.Json; diff --git a/src/Leo.Web.Api/Controllers/CustomerDetailsController.cs b/src/Leo.Web.Api/Controllers/CustomerDetailsController.cs index 32a57d4..ab31c13 100644 --- a/src/Leo.Web.Api/Controllers/CustomerDetailsController.cs +++ b/src/Leo.Web.Api/Controllers/CustomerDetailsController.cs @@ -1,3 +1,5 @@ +// MIT License + using Alyio.AspNetCore.ApiMessages; using Leo.Data.Domain.Dtos; using Leo.Web.Data.Commands; diff --git a/src/Leo.Web.Api/Controllers/CustomersController.cs b/src/Leo.Web.Api/Controllers/CustomersController.cs index 9a44f8d..720e1aa 100644 --- a/src/Leo.Web.Api/Controllers/CustomersController.cs +++ b/src/Leo.Web.Api/Controllers/CustomersController.cs @@ -1,3 +1,5 @@ +// MIT License + using Alyio.AspNetCore.ApiMessages; using Leo.Data.Domain.Dtos; using Leo.Web.Data.Commands; diff --git a/src/Leo.Web.Api/Controllers/EchoWebSocketController.cs b/src/Leo.Web.Api/Controllers/EchoWebSocketController.cs index dcac8c8..937ed4c 100644 --- a/src/Leo.Web.Api/Controllers/EchoWebSocketController.cs +++ b/src/Leo.Web.Api/Controllers/EchoWebSocketController.cs @@ -1,4 +1,6 @@ -using Microsoft.AspNetCore.Mvc; +// MIT License + +using Microsoft.AspNetCore.Mvc; using System.Net.WebSockets; namespace Leo.Web.Controllers diff --git a/src/Leo.Web.Api/Routing/SlugifyParameterTransformer.cs b/src/Leo.Web.Api/Routing/SlugifyParameterTransformer.cs index 5f684c9..e80b289 100644 --- a/src/Leo.Web.Api/Routing/SlugifyParameterTransformer.cs +++ b/src/Leo.Web.Api/Routing/SlugifyParameterTransformer.cs @@ -1,4 +1,6 @@ -using System.Globalization; +// MIT License + +using System.Globalization; using System.Text.RegularExpressions; namespace Leo.Web.Routing diff --git a/src/Leo.Web.Api/Startup.cs b/src/Leo.Web.Api/Startup.cs index f2928c3..906acb8 100644 --- a/src/Leo.Web.Api/Startup.cs +++ b/src/Leo.Web.Api/Startup.cs @@ -1,4 +1,6 @@ -using Alyio.AspNetCore.ApiMessages; +// MIT License + +using Alyio.AspNetCore.ApiMessages; using Leo.Web.Routing; using Microsoft.AspNetCore.Authentication.JwtBearer; using Microsoft.AspNetCore.Authorization; diff --git a/src/Leo.Web.Data.SQLite/Extensions/ServiceCollectionExtensions.cs b/src/Leo.Web.Data.SQLite/Extensions/ServiceCollectionExtensions.cs index af2dd91..5fb574d 100644 --- a/src/Leo.Web.Data.SQLite/Extensions/ServiceCollectionExtensions.cs +++ b/src/Leo.Web.Data.SQLite/Extensions/ServiceCollectionExtensions.cs @@ -1,3 +1,5 @@ +// MIT License + using Dapper; using Leo.Web.Data.SQLite.Repositories; using Leo.Web.Data.SQLite.Services; diff --git a/src/Leo.Web.Data.SQLite/Repositories/CustomerDetailRepository.cs b/src/Leo.Web.Data.SQLite/Repositories/CustomerDetailRepository.cs index b7f10ae..4793f86 100644 --- a/src/Leo.Web.Data.SQLite/Repositories/CustomerDetailRepository.cs +++ b/src/Leo.Web.Data.SQLite/Repositories/CustomerDetailRepository.cs @@ -1,4 +1,6 @@ -using Dapper; +// MIT License + +using Dapper; using Leo.Data.Domain.Entities; using System.Data; diff --git a/src/Leo.Web.Data.SQLite/Repositories/CustomerRepository.cs b/src/Leo.Web.Data.SQLite/Repositories/CustomerRepository.cs index d3b943f..01cfdcb 100644 --- a/src/Leo.Web.Data.SQLite/Repositories/CustomerRepository.cs +++ b/src/Leo.Web.Data.SQLite/Repositories/CustomerRepository.cs @@ -1,4 +1,6 @@ -using Dapper; +// MIT License + +using Dapper; using Leo.Data.Domain.Entities; using System.Data; diff --git a/src/Leo.Web.Data.SQLite/Services/DatabaseService.cs b/src/Leo.Web.Data.SQLite/Services/DatabaseService.cs index 1cb8308..927c7c3 100644 --- a/src/Leo.Web.Data.SQLite/Services/DatabaseService.cs +++ b/src/Leo.Web.Data.SQLite/Services/DatabaseService.cs @@ -1,4 +1,6 @@ -using Dapper; +// MIT License + +using Dapper; namespace Leo.Web.Data.SQLite.Services { diff --git a/src/Leo.Web.Data.SQLite/Services/DbConnectionFactory.cs b/src/Leo.Web.Data.SQLite/Services/DbConnectionFactory.cs index 623dba8..4b50376 100644 --- a/src/Leo.Web.Data.SQLite/Services/DbConnectionFactory.cs +++ b/src/Leo.Web.Data.SQLite/Services/DbConnectionFactory.cs @@ -1,4 +1,6 @@ -using Microsoft.Extensions.Configuration; +// MIT License + +using Microsoft.Extensions.Configuration; using System.Data.Common; using System.Data.SQLite; diff --git a/src/Leo.Web.Data.SQLite/Services/UnitOfWork.cs b/src/Leo.Web.Data.SQLite/Services/UnitOfWork.cs index c87b8c8..1417786 100644 --- a/src/Leo.Web.Data.SQLite/Services/UnitOfWork.cs +++ b/src/Leo.Web.Data.SQLite/Services/UnitOfWork.cs @@ -1,4 +1,6 @@ -namespace Leo.Web.Data.SQLite.Services +// MIT License + +namespace Leo.Web.Data.SQLite.Services { internal sealed class UnitOfWork : IUnitOfWork { diff --git a/src/Leo.Web.Data.SQLite/TypeHandlers/GuidToStringHandler.cs b/src/Leo.Web.Data.SQLite/TypeHandlers/GuidToStringHandler.cs index 405ebbd..d6f46cf 100644 --- a/src/Leo.Web.Data.SQLite/TypeHandlers/GuidToStringHandler.cs +++ b/src/Leo.Web.Data.SQLite/TypeHandlers/GuidToStringHandler.cs @@ -1,4 +1,6 @@ -using Dapper; +// MIT License + +using Dapper; using System.Data; namespace Leo.Web.Data.SQLite.TypeHandlers diff --git a/src/Leo.Web.Data.SqlServer/Extensions/ServiceCollectionExtensions.cs b/src/Leo.Web.Data.SqlServer/Extensions/ServiceCollectionExtensions.cs index 0ada438..109719e 100644 --- a/src/Leo.Web.Data.SqlServer/Extensions/ServiceCollectionExtensions.cs +++ b/src/Leo.Web.Data.SqlServer/Extensions/ServiceCollectionExtensions.cs @@ -1,4 +1,6 @@ -using Leo.Web.Data.SqlServer.Repositories; +// MIT License + +using Leo.Web.Data.SqlServer.Repositories; using Leo.Web.Data.SqlServer.Services; using Microsoft.Extensions.DependencyInjection; diff --git a/src/Leo.Web.Data.SqlServer/Repositories/CustomerDetailRepository.cs b/src/Leo.Web.Data.SqlServer/Repositories/CustomerDetailRepository.cs index 2cdb251..5aaae00 100644 --- a/src/Leo.Web.Data.SqlServer/Repositories/CustomerDetailRepository.cs +++ b/src/Leo.Web.Data.SqlServer/Repositories/CustomerDetailRepository.cs @@ -1,4 +1,6 @@ -using Dapper; +// MIT License + +using Dapper; using Leo.Data.Domain.Entities; namespace Leo.Web.Data.SqlServer.Repositories diff --git a/src/Leo.Web.Data.SqlServer/Repositories/CustomerRepository.cs b/src/Leo.Web.Data.SqlServer/Repositories/CustomerRepository.cs index 6f81613..0d9b27a 100644 --- a/src/Leo.Web.Data.SqlServer/Repositories/CustomerRepository.cs +++ b/src/Leo.Web.Data.SqlServer/Repositories/CustomerRepository.cs @@ -1,4 +1,6 @@ -using Dapper; +// MIT License + +using Dapper; using Leo.Data.Domain.Entities; namespace Leo.Web.Data.SqlServer.Repositories diff --git a/src/Leo.Web.Data.SqlServer/Services/DatabaseService.cs b/src/Leo.Web.Data.SqlServer/Services/DatabaseService.cs index a9c101b..790c3b4 100644 --- a/src/Leo.Web.Data.SqlServer/Services/DatabaseService.cs +++ b/src/Leo.Web.Data.SqlServer/Services/DatabaseService.cs @@ -1,4 +1,6 @@ -namespace Leo.Web.Data.SqlServer.Services +// MIT License + +namespace Leo.Web.Data.SqlServer.Services { internal sealed class DatabaseService : IDatabaseService { diff --git a/src/Leo.Web.Data.SqlServer/Services/DbConnectionFactory.cs b/src/Leo.Web.Data.SqlServer/Services/DbConnectionFactory.cs index 22bc7cb..f998bd3 100644 --- a/src/Leo.Web.Data.SqlServer/Services/DbConnectionFactory.cs +++ b/src/Leo.Web.Data.SqlServer/Services/DbConnectionFactory.cs @@ -1,4 +1,6 @@ -using Microsoft.Data.SqlClient; +// MIT License + +using Microsoft.Data.SqlClient; using Microsoft.Extensions.Configuration; using System.Data.Common; diff --git a/src/Leo.Web.Data.SqlServer/Services/UnitOfWork.cs b/src/Leo.Web.Data.SqlServer/Services/UnitOfWork.cs index 48bb905..e891262 100644 --- a/src/Leo.Web.Data.SqlServer/Services/UnitOfWork.cs +++ b/src/Leo.Web.Data.SqlServer/Services/UnitOfWork.cs @@ -1,4 +1,6 @@ -namespace Leo.Web.Data.SqlServer.Services +// MIT License + +namespace Leo.Web.Data.SqlServer.Services { internal sealed class UnitOfWork : IUnitOfWork { diff --git a/src/Leo.Web.Data/Abstractions/IDatabaseService.cs b/src/Leo.Web.Data/Abstractions/IDatabaseService.cs index 273492a..d934825 100644 --- a/src/Leo.Web.Data/Abstractions/IDatabaseService.cs +++ b/src/Leo.Web.Data/Abstractions/IDatabaseService.cs @@ -1,4 +1,6 @@ -namespace Leo.Web.Data +// MIT License + +namespace Leo.Web.Data { public interface IDatabaseService { diff --git a/src/Leo.Web.Data/Abstractions/IDbConnectionFactory.cs b/src/Leo.Web.Data/Abstractions/IDbConnectionFactory.cs index b2ec0ef..7aa7fe5 100644 --- a/src/Leo.Web.Data/Abstractions/IDbConnectionFactory.cs +++ b/src/Leo.Web.Data/Abstractions/IDbConnectionFactory.cs @@ -1,4 +1,6 @@ -using System.Data.Common; +// MIT License + +using System.Data.Common; namespace Leo.Web.Data { diff --git a/src/Leo.Web.Data/Abstractions/IUnitOfWork.cs b/src/Leo.Web.Data/Abstractions/IUnitOfWork.cs index cc372da..0b73600 100644 --- a/src/Leo.Web.Data/Abstractions/IUnitOfWork.cs +++ b/src/Leo.Web.Data/Abstractions/IUnitOfWork.cs @@ -1,4 +1,6 @@ -namespace Leo.Web.Data +// MIT License + +namespace Leo.Web.Data { public interface IUnitOfWork { diff --git a/src/Leo.Web.Data/Commands/CreateCustomerDetailRequest.cs b/src/Leo.Web.Data/Commands/CreateCustomerDetailRequest.cs index d57a034..f90bb61 100644 --- a/src/Leo.Web.Data/Commands/CreateCustomerDetailRequest.cs +++ b/src/Leo.Web.Data/Commands/CreateCustomerDetailRequest.cs @@ -1,4 +1,6 @@ -using Leo.Data.Domain.Dtos; +// MIT License + +using Leo.Data.Domain.Dtos; using MediatR; using System.Security.Claims; diff --git a/src/Leo.Web.Data/Commands/CreateCustomerRequest.cs b/src/Leo.Web.Data/Commands/CreateCustomerRequest.cs index 279f83a..ed56d56 100644 --- a/src/Leo.Web.Data/Commands/CreateCustomerRequest.cs +++ b/src/Leo.Web.Data/Commands/CreateCustomerRequest.cs @@ -1,4 +1,6 @@ -using Leo.Data.Domain.Dtos; +// MIT License + +using Leo.Data.Domain.Dtos; using MediatR; using System.Security.Claims; diff --git a/src/Leo.Web.Data/Commands/Handlers/CreateCustomerDetailRequestHandler.cs b/src/Leo.Web.Data/Commands/Handlers/CreateCustomerDetailRequestHandler.cs index b04f962..8ee7bb5 100644 --- a/src/Leo.Web.Data/Commands/Handlers/CreateCustomerDetailRequestHandler.cs +++ b/src/Leo.Web.Data/Commands/Handlers/CreateCustomerDetailRequestHandler.cs @@ -1,4 +1,6 @@ -using AutoMapper; +// MIT License + +using AutoMapper; using Leo.Data.Domain; using Leo.Data.Domain.Entities; using MediatR; diff --git a/src/Leo.Web.Data/Commands/Handlers/CreateCustomerRequestHandler.cs b/src/Leo.Web.Data/Commands/Handlers/CreateCustomerRequestHandler.cs index f01c4b2..a205e3d 100644 --- a/src/Leo.Web.Data/Commands/Handlers/CreateCustomerRequestHandler.cs +++ b/src/Leo.Web.Data/Commands/Handlers/CreateCustomerRequestHandler.cs @@ -1,4 +1,6 @@ -using AutoMapper; +// MIT License + +using AutoMapper; using Leo.Data.Domain; using Leo.Data.Domain.Entities; using MediatR; diff --git a/src/Leo.Web.Data/Commands/Handlers/UpdateCustomerRequestHandler.cs b/src/Leo.Web.Data/Commands/Handlers/UpdateCustomerRequestHandler.cs index 912c886..4c3749d 100644 --- a/src/Leo.Web.Data/Commands/Handlers/UpdateCustomerRequestHandler.cs +++ b/src/Leo.Web.Data/Commands/Handlers/UpdateCustomerRequestHandler.cs @@ -1,4 +1,6 @@ -using AutoMapper; +// MIT License + +using AutoMapper; using Leo.Data.Domain; using Leo.Data.Domain.Entities; using MediatR; diff --git a/src/Leo.Web.Data/Commands/UpdateCustomerRequest.cs b/src/Leo.Web.Data/Commands/UpdateCustomerRequest.cs index 665bf43..930c574 100644 --- a/src/Leo.Web.Data/Commands/UpdateCustomerRequest.cs +++ b/src/Leo.Web.Data/Commands/UpdateCustomerRequest.cs @@ -1,4 +1,6 @@ -using Leo.Data.Domain.Dtos; +// MIT License + +using Leo.Data.Domain.Dtos; using MediatR; using System.Security.Claims; diff --git a/src/Leo.Web.Data/Extensions/ServiceCollectionExtensions.cs b/src/Leo.Web.Data/Extensions/ServiceCollectionExtensions.cs index beff921..6f45814 100644 --- a/src/Leo.Web.Data/Extensions/ServiceCollectionExtensions.cs +++ b/src/Leo.Web.Data/Extensions/ServiceCollectionExtensions.cs @@ -1,4 +1,6 @@ -using Microsoft.Extensions.DependencyInjection; +// MIT License + +using Microsoft.Extensions.DependencyInjection; using System.Reflection; namespace Leo.Web.Data diff --git a/src/Leo.Web.Data/Queries/GetCustomerByIdRequest.cs b/src/Leo.Web.Data/Queries/GetCustomerByIdRequest.cs index efacb42..7e641cf 100644 --- a/src/Leo.Web.Data/Queries/GetCustomerByIdRequest.cs +++ b/src/Leo.Web.Data/Queries/GetCustomerByIdRequest.cs @@ -1,4 +1,6 @@ -using Leo.Data.Domain.Dtos; +// MIT License + +using Leo.Data.Domain.Dtos; using MediatR; namespace Leo.Web.Data.Queries diff --git a/src/Leo.Web.Data/Queries/GetCustomerDetailByIdRequest.cs b/src/Leo.Web.Data/Queries/GetCustomerDetailByIdRequest.cs index f668e97..42926dc 100644 --- a/src/Leo.Web.Data/Queries/GetCustomerDetailByIdRequest.cs +++ b/src/Leo.Web.Data/Queries/GetCustomerDetailByIdRequest.cs @@ -1,4 +1,6 @@ -using Leo.Data.Domain.Dtos; +// MIT License + +using Leo.Data.Domain.Dtos; using MediatR; namespace Leo.Web.Data.Queries diff --git a/src/Leo.Web.Data/Queries/GetCustomerDetailsByCustomerIdRequest.cs b/src/Leo.Web.Data/Queries/GetCustomerDetailsByCustomerIdRequest.cs index 595b0f9..9cafc9c 100644 --- a/src/Leo.Web.Data/Queries/GetCustomerDetailsByCustomerIdRequest.cs +++ b/src/Leo.Web.Data/Queries/GetCustomerDetailsByCustomerIdRequest.cs @@ -1,4 +1,6 @@ -using Leo.Data.Domain.Dtos; +// MIT License + +using Leo.Data.Domain.Dtos; using MediatR; namespace Leo.Web.Data.Queries diff --git a/src/Leo.Web.Data/Queries/GetCustomersRequest.cs b/src/Leo.Web.Data/Queries/GetCustomersRequest.cs index 8a57ce0..f8bfec7 100644 --- a/src/Leo.Web.Data/Queries/GetCustomersRequest.cs +++ b/src/Leo.Web.Data/Queries/GetCustomersRequest.cs @@ -1,4 +1,6 @@ -using Leo.Data.Domain.Dtos; +// MIT License + +using Leo.Data.Domain.Dtos; using MediatR; namespace Leo.Web.Data.Queries diff --git a/src/Leo.Web.Data/Queries/Handlers/GetMemberByIdRequestHandler.cs b/src/Leo.Web.Data/Queries/Handlers/GetMemberByIdRequestHandler.cs index d7239fa..61f3ec0 100644 --- a/src/Leo.Web.Data/Queries/Handlers/GetMemberByIdRequestHandler.cs +++ b/src/Leo.Web.Data/Queries/Handlers/GetMemberByIdRequestHandler.cs @@ -1,4 +1,6 @@ -using AutoMapper; +// MIT License + +using AutoMapper; using Leo.Data.Domain.Dtos; using MediatR; diff --git a/src/Leo.Web.Data/Queries/Handlers/GetMemberDetailByIdRequestHandler.cs b/src/Leo.Web.Data/Queries/Handlers/GetMemberDetailByIdRequestHandler.cs index 1aebe23..e497828 100644 --- a/src/Leo.Web.Data/Queries/Handlers/GetMemberDetailByIdRequestHandler.cs +++ b/src/Leo.Web.Data/Queries/Handlers/GetMemberDetailByIdRequestHandler.cs @@ -1,4 +1,6 @@ -using AutoMapper; +// MIT License + +using AutoMapper; using Leo.Data.Domain.Dtos; using MediatR; diff --git a/src/Leo.Web.Data/Queries/Handlers/GetMemberDetailsByMemberIdRequestHandler.cs b/src/Leo.Web.Data/Queries/Handlers/GetMemberDetailsByMemberIdRequestHandler.cs index 1307be0..0fe667b 100644 --- a/src/Leo.Web.Data/Queries/Handlers/GetMemberDetailsByMemberIdRequestHandler.cs +++ b/src/Leo.Web.Data/Queries/Handlers/GetMemberDetailsByMemberIdRequestHandler.cs @@ -1,4 +1,6 @@ -using AutoMapper; +// MIT License + +using AutoMapper; using Leo.Data.Domain.Dtos; using MediatR; diff --git a/src/Leo.Web.Data/Queries/Handlers/GetMembersRequesttHandler.cs b/src/Leo.Web.Data/Queries/Handlers/GetMembersRequesttHandler.cs index 6fae05e..5597c6c 100644 --- a/src/Leo.Web.Data/Queries/Handlers/GetMembersRequesttHandler.cs +++ b/src/Leo.Web.Data/Queries/Handlers/GetMembersRequesttHandler.cs @@ -1,4 +1,6 @@ -using AutoMapper; +// MIT License + +using AutoMapper; using Leo.Data.Domain.Dtos; using MediatR; diff --git a/src/Leo.Web.Data/Repositories/ICustomerDetailRepository.cs b/src/Leo.Web.Data/Repositories/ICustomerDetailRepository.cs index e338f9d..b67c433 100644 --- a/src/Leo.Web.Data/Repositories/ICustomerDetailRepository.cs +++ b/src/Leo.Web.Data/Repositories/ICustomerDetailRepository.cs @@ -1,4 +1,6 @@ -using Leo.Data.Domain.Entities; +// MIT License + +using Leo.Data.Domain.Entities; namespace Leo.Web.Data { diff --git a/src/Leo.Web.Data/Repositories/ICustomerRepository.cs b/src/Leo.Web.Data/Repositories/ICustomerRepository.cs index f3f1efc..db4b109 100644 --- a/src/Leo.Web.Data/Repositories/ICustomerRepository.cs +++ b/src/Leo.Web.Data/Repositories/ICustomerRepository.cs @@ -1,4 +1,6 @@ -using Leo.Data.Domain.Entities; +// MIT License + +using Leo.Data.Domain.Entities; namespace Leo.Web.Data { diff --git a/src/Leo.Web.Host/Program.cs b/src/Leo.Web.Host/Program.cs index eb94792..13bb547 100644 --- a/src/Leo.Web.Host/Program.cs +++ b/src/Leo.Web.Host/Program.cs @@ -1,4 +1,6 @@ -using Leo.Web.Data; +// MIT License + +using Leo.Web.Data; namespace Leo.Web { diff --git a/src/Leo.Windows.App/Extensions/ServiceCollectionExtensions.cs b/src/Leo.Windows.App/Extensions/ServiceCollectionExtensions.cs index 1369101..44efc1e 100644 --- a/src/Leo.Windows.App/Extensions/ServiceCollectionExtensions.cs +++ b/src/Leo.Windows.App/Extensions/ServiceCollectionExtensions.cs @@ -1,4 +1,6 @@ -using System.Reflection; +// MIT License + +using System.Reflection; namespace Microsoft.Extensions.DependencyInjection { diff --git a/src/Leo.Windows.App/Forms/EchoForm.cs b/src/Leo.Windows.App/Forms/EchoForm.cs index 801633a..d70bae0 100644 --- a/src/Leo.Windows.App/Forms/EchoForm.cs +++ b/src/Leo.Windows.App/Forms/EchoForm.cs @@ -1,4 +1,6 @@ -using Leo.UI.Options; +// MIT License + +using Leo.UI.Options; using Leo.UI.Services; using Microsoft.Extensions.Options; using Microsoft.Net.Http.Headers; diff --git a/src/Leo.Windows.App/Forms/FindForm.cs b/src/Leo.Windows.App/Forms/FindForm.cs index a735e09..aaeef98 100644 --- a/src/Leo.Windows.App/Forms/FindForm.cs +++ b/src/Leo.Windows.App/Forms/FindForm.cs @@ -1,3 +1,5 @@ +// MIT License + using Leo.Windows.ViewModels; using System.Diagnostics.CodeAnalysis; diff --git a/src/Leo.Windows.App/Forms/MainForm.cs b/src/Leo.Windows.App/Forms/MainForm.cs index 4211356..606bc13 100644 --- a/src/Leo.Windows.App/Forms/MainForm.cs +++ b/src/Leo.Windows.App/Forms/MainForm.cs @@ -1,4 +1,6 @@ -using AutoMapper; +// MIT License + +using AutoMapper; using Leo.Data.Domain.Dtos; using Leo.UI; using Leo.UI.Services; diff --git a/src/Leo.Windows.App/Forms/NewForm.cs b/src/Leo.Windows.App/Forms/NewForm.cs index f911a2d..6351188 100644 --- a/src/Leo.Windows.App/Forms/NewForm.cs +++ b/src/Leo.Windows.App/Forms/NewForm.cs @@ -1,3 +1,5 @@ +// MIT License + using Leo.Windows.ViewModels; namespace Leo.Windows.Forms diff --git a/src/Leo.Windows.App/Forms/RecordForm.cs b/src/Leo.Windows.App/Forms/RecordForm.cs index 6d2933c..37cb2a2 100644 --- a/src/Leo.Windows.App/Forms/RecordForm.cs +++ b/src/Leo.Windows.App/Forms/RecordForm.cs @@ -1,3 +1,5 @@ +// MIT License + using Leo.Windows.ViewModels; namespace Leo.Windows.Forms diff --git a/src/Leo.Windows.App/Mapper/LeoProfile.cs b/src/Leo.Windows.App/Mapper/LeoProfile.cs index 82a8c89..a77cdac 100644 --- a/src/Leo.Windows.App/Mapper/LeoProfile.cs +++ b/src/Leo.Windows.App/Mapper/LeoProfile.cs @@ -1,4 +1,6 @@ -using AutoMapper; +// MIT License + +using AutoMapper; using Leo.Data.Domain.Dtos; using Leo.Windows.ViewModels; diff --git a/src/Leo.Windows.App/Program.cs b/src/Leo.Windows.App/Program.cs index 899e82c..03e2996 100644 --- a/src/Leo.Windows.App/Program.cs +++ b/src/Leo.Windows.App/Program.cs @@ -1,4 +1,6 @@ -using Leo.UI.Options; +// MIT License + +using Leo.UI.Options; using Leo.UI.Services; using Leo.Windows.Forms; using Microsoft.AspNetCore.Hosting; diff --git a/src/Leo.Windows.App/ViewModels/CustomerDetailViewModel.cs b/src/Leo.Windows.App/ViewModels/CustomerDetailViewModel.cs index d19a8ec..91ca331 100644 --- a/src/Leo.Windows.App/ViewModels/CustomerDetailViewModel.cs +++ b/src/Leo.Windows.App/ViewModels/CustomerDetailViewModel.cs @@ -1,4 +1,6 @@ -using System.ComponentModel; +// MIT License + +using System.ComponentModel; using System.Runtime.CompilerServices; namespace Leo.Windows.ViewModels diff --git a/src/Leo.Windows.App/ViewModels/CustomerViewModel.cs b/src/Leo.Windows.App/ViewModels/CustomerViewModel.cs index 7ed3ae3..3265ebf 100644 --- a/src/Leo.Windows.App/ViewModels/CustomerViewModel.cs +++ b/src/Leo.Windows.App/ViewModels/CustomerViewModel.cs @@ -1,4 +1,6 @@ -using System.ComponentModel; +// MIT License + +using System.ComponentModel; using System.Globalization; using System.Runtime.CompilerServices; diff --git a/src/Leo.Wpf.App/Abstractions/ICustomerEditorWindowService.cs b/src/Leo.Wpf.App/Abstractions/ICustomerEditorWindowService.cs index 02266fa..583766e 100644 --- a/src/Leo.Wpf.App/Abstractions/ICustomerEditorWindowService.cs +++ b/src/Leo.Wpf.App/Abstractions/ICustomerEditorWindowService.cs @@ -1,4 +1,6 @@ -namespace Leo.Wpf.App +// MIT License + +namespace Leo.Wpf.App { public interface ICustomerEditorWindowService { diff --git a/src/Leo.Wpf.App/Abstractions/IEchoWindowService.cs b/src/Leo.Wpf.App/Abstractions/IEchoWindowService.cs index 434d4a0..df73f72 100644 --- a/src/Leo.Wpf.App/Abstractions/IEchoWindowService.cs +++ b/src/Leo.Wpf.App/Abstractions/IEchoWindowService.cs @@ -1,4 +1,6 @@ -namespace Leo.Wpf.App +// MIT License + +namespace Leo.Wpf.App { public interface IEchoWindowService { diff --git a/src/Leo.Wpf.App/Abstractions/IFindWindowService.cs b/src/Leo.Wpf.App/Abstractions/IFindWindowService.cs index 8689b84..e165186 100644 --- a/src/Leo.Wpf.App/Abstractions/IFindWindowService.cs +++ b/src/Leo.Wpf.App/Abstractions/IFindWindowService.cs @@ -1,4 +1,6 @@ -namespace Leo.Wpf.App +// MIT License + +namespace Leo.Wpf.App { public interface IFindWindowService { diff --git a/src/Leo.Wpf.App/Abstractions/IMainWindowService.cs b/src/Leo.Wpf.App/Abstractions/IMainWindowService.cs index 2cb59ca..ab5792a 100644 --- a/src/Leo.Wpf.App/Abstractions/IMainWindowService.cs +++ b/src/Leo.Wpf.App/Abstractions/IMainWindowService.cs @@ -1,4 +1,6 @@ -namespace Leo.Wpf.App +// MIT License + +namespace Leo.Wpf.App { public interface IMainWindowService { diff --git a/src/Leo.Wpf.App/Abstractions/INewCustomerDetailWindowService.cs b/src/Leo.Wpf.App/Abstractions/INewCustomerDetailWindowService.cs index 1e5bd3e..757b5f8 100644 --- a/src/Leo.Wpf.App/Abstractions/INewCustomerDetailWindowService.cs +++ b/src/Leo.Wpf.App/Abstractions/INewCustomerDetailWindowService.cs @@ -1,4 +1,6 @@ -namespace Leo.Wpf.App +// MIT License + +namespace Leo.Wpf.App { public interface INewCustomerDetailWindowService { diff --git a/src/Leo.Wpf.App/Abstractions/INewCustomerWindowService.cs b/src/Leo.Wpf.App/Abstractions/INewCustomerWindowService.cs index fe55023..055d85f 100644 --- a/src/Leo.Wpf.App/Abstractions/INewCustomerWindowService.cs +++ b/src/Leo.Wpf.App/Abstractions/INewCustomerWindowService.cs @@ -1,4 +1,6 @@ -namespace Leo.Wpf.App +// MIT License + +namespace Leo.Wpf.App { public interface INewCustomerWindowService { diff --git a/src/Leo.Wpf.App/App.xaml.cs b/src/Leo.Wpf.App/App.xaml.cs index 6ebdcde..3f5e5a2 100644 --- a/src/Leo.Wpf.App/App.xaml.cs +++ b/src/Leo.Wpf.App/App.xaml.cs @@ -1,4 +1,6 @@ -using Leo.UI.Options; +// MIT License + +using Leo.UI.Options; using Leo.UI.Services; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Hosting.Server; diff --git a/src/Leo.Wpf.App/Behaviors/DataGridMouseDoubleClickCommandBehavior.cs b/src/Leo.Wpf.App/Behaviors/DataGridMouseDoubleClickCommandBehavior.cs index 7d2d152..b3babbf 100644 --- a/src/Leo.Wpf.App/Behaviors/DataGridMouseDoubleClickCommandBehavior.cs +++ b/src/Leo.Wpf.App/Behaviors/DataGridMouseDoubleClickCommandBehavior.cs @@ -1,4 +1,6 @@ -using Microsoft.Xaml.Behaviors; +// MIT License + +using Microsoft.Xaml.Behaviors; using System.Windows; using System.Windows.Controls; using System.Windows.Input; diff --git a/src/Leo.Wpf.App/Converters/BooleanInverseConverter.cs b/src/Leo.Wpf.App/Converters/BooleanInverseConverter.cs index bd01363..3d044b0 100644 --- a/src/Leo.Wpf.App/Converters/BooleanInverseConverter.cs +++ b/src/Leo.Wpf.App/Converters/BooleanInverseConverter.cs @@ -1,4 +1,6 @@ -using System.Globalization; +// MIT License + +using System.Globalization; using System.Windows.Data; namespace Leo.Wpf.App.Converters diff --git a/src/Leo.Wpf.App/Converters/GenderToStringConverter.cs b/src/Leo.Wpf.App/Converters/GenderToStringConverter.cs index 702219d..04eaedb 100644 --- a/src/Leo.Wpf.App/Converters/GenderToStringConverter.cs +++ b/src/Leo.Wpf.App/Converters/GenderToStringConverter.cs @@ -1,4 +1,6 @@ -using Leo.Data.Domain.Entities; +// MIT License + +using Leo.Data.Domain.Entities; using Leo.Wpf.App.Infrastructure; using System.Globalization; using System.Windows.Data; diff --git a/src/Leo.Wpf.App/Extensions/ServiceCollectionExtensions.cs b/src/Leo.Wpf.App/Extensions/ServiceCollectionExtensions.cs index f3f8209..235adf8 100644 --- a/src/Leo.Wpf.App/Extensions/ServiceCollectionExtensions.cs +++ b/src/Leo.Wpf.App/Extensions/ServiceCollectionExtensions.cs @@ -1,4 +1,6 @@ -using CommunityToolkit.Mvvm.Messaging; +// MIT License + +using CommunityToolkit.Mvvm.Messaging; using Leo.Wpf.App; using Leo.Wpf.App.Services; using Leo.Wpf.App.ViewModels; diff --git a/src/Leo.Wpf.App/Infrastructure/Constants/Constants.Genders.cs b/src/Leo.Wpf.App/Infrastructure/Constants/Constants.Genders.cs index 2a3b573..f3e07fc 100644 --- a/src/Leo.Wpf.App/Infrastructure/Constants/Constants.Genders.cs +++ b/src/Leo.Wpf.App/Infrastructure/Constants/Constants.Genders.cs @@ -1,4 +1,6 @@ -using System.Globalization; +// MIT License + +using System.Globalization; namespace Leo.Wpf.App.Infrastructure { diff --git a/src/Leo.Wpf.App/InternalsVisibleTo.cs b/src/Leo.Wpf.App/InternalsVisibleTo.cs index bd84d34..2c7e47a 100644 --- a/src/Leo.Wpf.App/InternalsVisibleTo.cs +++ b/src/Leo.Wpf.App/InternalsVisibleTo.cs @@ -1,3 +1,5 @@ -using System.Runtime.CompilerServices; +// MIT License + +using System.Runtime.CompilerServices; [assembly: InternalsVisibleTo("Leo.Wpf.App.Tests")] \ No newline at end of file diff --git a/src/Leo.Wpf.App/Mapper/LeoProfile.cs b/src/Leo.Wpf.App/Mapper/LeoProfile.cs index 679c9b5..7fe4ca9 100644 --- a/src/Leo.Wpf.App/Mapper/LeoProfile.cs +++ b/src/Leo.Wpf.App/Mapper/LeoProfile.cs @@ -1,4 +1,6 @@ -using AutoMapper; +// MIT License + +using AutoMapper; using Leo.Data.Domain.Dtos; using Leo.Wpf.App.ViewModels; using static Leo.Wpf.App.ViewModels.CustomerViewModel; diff --git a/src/Leo.Wpf.App/Messages/CustomerCreatedMessage.cs b/src/Leo.Wpf.App/Messages/CustomerCreatedMessage.cs index e55e638..96a910c 100644 --- a/src/Leo.Wpf.App/Messages/CustomerCreatedMessage.cs +++ b/src/Leo.Wpf.App/Messages/CustomerCreatedMessage.cs @@ -1,4 +1,6 @@ -namespace Leo.Wpf.App.Messages +// MIT License + +namespace Leo.Wpf.App.Messages { public record CustomerCreatedMessage(string? Id); } diff --git a/src/Leo.Wpf.App/Messages/CustomerDetailCreatedMessage.cs b/src/Leo.Wpf.App/Messages/CustomerDetailCreatedMessage.cs index 48921c3..b684b72 100644 --- a/src/Leo.Wpf.App/Messages/CustomerDetailCreatedMessage.cs +++ b/src/Leo.Wpf.App/Messages/CustomerDetailCreatedMessage.cs @@ -1,4 +1,6 @@ -namespace Leo.Wpf.App.Messages +// MIT License + +namespace Leo.Wpf.App.Messages { public record CustomerDetailCreatedMessage(string? customerId, string? detailId); } diff --git a/src/Leo.Wpf.App/Messages/CustomerFoundMessage.cs b/src/Leo.Wpf.App/Messages/CustomerFoundMessage.cs index 1b307bd..9912109 100644 --- a/src/Leo.Wpf.App/Messages/CustomerFoundMessage.cs +++ b/src/Leo.Wpf.App/Messages/CustomerFoundMessage.cs @@ -1,4 +1,6 @@ -namespace Leo.Wpf.App.Messages +// MIT License + +namespace Leo.Wpf.App.Messages { public record CustomerFoundMessage(string? Id); } diff --git a/src/Leo.Wpf.App/Services/CustomerEditorWindowService.cs b/src/Leo.Wpf.App/Services/CustomerEditorWindowService.cs index f0b50db..b9af2d1 100644 --- a/src/Leo.Wpf.App/Services/CustomerEditorWindowService.cs +++ b/src/Leo.Wpf.App/Services/CustomerEditorWindowService.cs @@ -1,4 +1,6 @@ -using Leo.Wpf.App.ViewModels; +// MIT License + +using Leo.Wpf.App.ViewModels; using Leo.Wpf.App.Views; using Microsoft.Extensions.DependencyInjection; using System.Windows; diff --git a/src/Leo.Wpf.App/Services/EchoWindowService.cs b/src/Leo.Wpf.App/Services/EchoWindowService.cs index b3fb1ff..ed3e2d2 100644 --- a/src/Leo.Wpf.App/Services/EchoWindowService.cs +++ b/src/Leo.Wpf.App/Services/EchoWindowService.cs @@ -1,4 +1,6 @@ -using Leo.Wpf.App.ViewModels; +// MIT License + +using Leo.Wpf.App.ViewModels; using Leo.Wpf.App.Views; using Microsoft.Extensions.DependencyInjection; using System.Windows; diff --git a/src/Leo.Wpf.App/Services/FindWindowService.cs b/src/Leo.Wpf.App/Services/FindWindowService.cs index 41437aa..625f45a 100644 --- a/src/Leo.Wpf.App/Services/FindWindowService.cs +++ b/src/Leo.Wpf.App/Services/FindWindowService.cs @@ -1,4 +1,6 @@ -using CommunityToolkit.Mvvm.Messaging; +// MIT License + +using CommunityToolkit.Mvvm.Messaging; using Leo.Wpf.App.ViewModels; using Leo.Wpf.App.Views; using Microsoft.Extensions.DependencyInjection; diff --git a/src/Leo.Wpf.App/Services/MainWindowService.cs b/src/Leo.Wpf.App/Services/MainWindowService.cs index 81e1112..97c499a 100644 --- a/src/Leo.Wpf.App/Services/MainWindowService.cs +++ b/src/Leo.Wpf.App/Services/MainWindowService.cs @@ -1,4 +1,6 @@ -using Leo.Wpf.App.ViewModels; +// MIT License + +using Leo.Wpf.App.ViewModels; using Leo.Wpf.App.Views; namespace Leo.Wpf.App.Services diff --git a/src/Leo.Wpf.App/Services/NewCustomerDetailWindowService.cs b/src/Leo.Wpf.App/Services/NewCustomerDetailWindowService.cs index 4e754b7..1eaa1c6 100644 --- a/src/Leo.Wpf.App/Services/NewCustomerDetailWindowService.cs +++ b/src/Leo.Wpf.App/Services/NewCustomerDetailWindowService.cs @@ -1,4 +1,6 @@ -using CommunityToolkit.Mvvm.Messaging; +// MIT License + +using CommunityToolkit.Mvvm.Messaging; using Leo.Wpf.App.ViewModels; using Leo.Wpf.App.Views; using Microsoft.Extensions.DependencyInjection; diff --git a/src/Leo.Wpf.App/Services/NewCustomerWindowService.cs b/src/Leo.Wpf.App/Services/NewCustomerWindowService.cs index f3b06a8..286c090 100644 --- a/src/Leo.Wpf.App/Services/NewCustomerWindowService.cs +++ b/src/Leo.Wpf.App/Services/NewCustomerWindowService.cs @@ -1,4 +1,6 @@ -using Leo.Wpf.App.ViewModels; +// MIT License + +using Leo.Wpf.App.ViewModels; using Leo.Wpf.App.Views; using Microsoft.Extensions.DependencyInjection; using System.Windows; diff --git a/src/Leo.Wpf.App/ViewModels/CustomerEditorViewModel.cs b/src/Leo.Wpf.App/ViewModels/CustomerEditorViewModel.cs index e44006e..00cee55 100644 --- a/src/Leo.Wpf.App/ViewModels/CustomerEditorViewModel.cs +++ b/src/Leo.Wpf.App/ViewModels/CustomerEditorViewModel.cs @@ -1,4 +1,6 @@ -using AutoMapper; +// MIT License + +using AutoMapper; using CommunityToolkit.Mvvm.ComponentModel; using CommunityToolkit.Mvvm.Input; using CommunityToolkit.Mvvm.Messaging; diff --git a/src/Leo.Wpf.App/ViewModels/CustomerViewModel.cs b/src/Leo.Wpf.App/ViewModels/CustomerViewModel.cs index 1f6e6ed..85c22bf 100644 --- a/src/Leo.Wpf.App/ViewModels/CustomerViewModel.cs +++ b/src/Leo.Wpf.App/ViewModels/CustomerViewModel.cs @@ -1,4 +1,6 @@ -using CommunityToolkit.Mvvm.ComponentModel; +// MIT License + +using CommunityToolkit.Mvvm.ComponentModel; using System.Collections.ObjectModel; using System.Globalization; diff --git a/src/Leo.Wpf.App/ViewModels/EchoViewModel.cs b/src/Leo.Wpf.App/ViewModels/EchoViewModel.cs index d9c3dbd..7cd22fd 100644 --- a/src/Leo.Wpf.App/ViewModels/EchoViewModel.cs +++ b/src/Leo.Wpf.App/ViewModels/EchoViewModel.cs @@ -1,4 +1,6 @@ -using CommunityToolkit.Mvvm.ComponentModel; +// MIT License + +using CommunityToolkit.Mvvm.ComponentModel; using CommunityToolkit.Mvvm.Input; using Leo.UI.Options; using Leo.UI.Services; diff --git a/src/Leo.Wpf.App/ViewModels/FindCustomerViewModel.cs b/src/Leo.Wpf.App/ViewModels/FindCustomerViewModel.cs index 6560a97..3f860cd 100644 --- a/src/Leo.Wpf.App/ViewModels/FindCustomerViewModel.cs +++ b/src/Leo.Wpf.App/ViewModels/FindCustomerViewModel.cs @@ -1,4 +1,6 @@ -using AutoMapper; +// MIT License + +using AutoMapper; using CommunityToolkit.Mvvm.ComponentModel; using CommunityToolkit.Mvvm.Input; using CommunityToolkit.Mvvm.Messaging; diff --git a/src/Leo.Wpf.App/ViewModels/MainWindowViewModel.cs b/src/Leo.Wpf.App/ViewModels/MainWindowViewModel.cs index a8dc1fb..8fddc57 100644 --- a/src/Leo.Wpf.App/ViewModels/MainWindowViewModel.cs +++ b/src/Leo.Wpf.App/ViewModels/MainWindowViewModel.cs @@ -1,4 +1,6 @@ -using AutoMapper; +// MIT License + +using AutoMapper; using CommunityToolkit.Mvvm.ComponentModel; using CommunityToolkit.Mvvm.Input; using CommunityToolkit.Mvvm.Messaging; diff --git a/src/Leo.Wpf.App/ViewModels/NewCustomerDetailViewModel.cs b/src/Leo.Wpf.App/ViewModels/NewCustomerDetailViewModel.cs index a36757f..f23002a 100644 --- a/src/Leo.Wpf.App/ViewModels/NewCustomerDetailViewModel.cs +++ b/src/Leo.Wpf.App/ViewModels/NewCustomerDetailViewModel.cs @@ -1,4 +1,6 @@ -using AutoMapper; +// MIT License + +using AutoMapper; using CommunityToolkit.Mvvm.ComponentModel; using CommunityToolkit.Mvvm.Input; using CommunityToolkit.Mvvm.Messaging; diff --git a/src/Leo.Wpf.App/ViewModels/NewCustomerViewModel.cs b/src/Leo.Wpf.App/ViewModels/NewCustomerViewModel.cs index 5e77a6a..892b4bf 100644 --- a/src/Leo.Wpf.App/ViewModels/NewCustomerViewModel.cs +++ b/src/Leo.Wpf.App/ViewModels/NewCustomerViewModel.cs @@ -1,4 +1,6 @@ -using AutoMapper; +// MIT License + +using AutoMapper; using CommunityToolkit.Mvvm.ComponentModel; using CommunityToolkit.Mvvm.Input; using CommunityToolkit.Mvvm.Messaging; diff --git a/src/Leo.Wpf.App/Views/CustomerEditorWindow.xaml.cs b/src/Leo.Wpf.App/Views/CustomerEditorWindow.xaml.cs index 63baadb..eb5b886 100644 --- a/src/Leo.Wpf.App/Views/CustomerEditorWindow.xaml.cs +++ b/src/Leo.Wpf.App/Views/CustomerEditorWindow.xaml.cs @@ -1,4 +1,6 @@ -using Leo.Wpf.App.ViewModels; +// MIT License + +using Leo.Wpf.App.ViewModels; using System.Windows; namespace Leo.Wpf.App.Views diff --git a/src/Leo.Wpf.App/Views/EchoWindow.xaml.cs b/src/Leo.Wpf.App/Views/EchoWindow.xaml.cs index 6f9aa06..7e269eb 100644 --- a/src/Leo.Wpf.App/Views/EchoWindow.xaml.cs +++ b/src/Leo.Wpf.App/Views/EchoWindow.xaml.cs @@ -1,4 +1,6 @@ -using Leo.Wpf.App.ViewModels; +// MIT License + +using Leo.Wpf.App.ViewModels; using System.Windows; namespace Leo.Wpf.App.Views diff --git a/src/Leo.Wpf.App/Views/FindWindow.xaml.cs b/src/Leo.Wpf.App/Views/FindWindow.xaml.cs index b07f5dc..99f6285 100644 --- a/src/Leo.Wpf.App/Views/FindWindow.xaml.cs +++ b/src/Leo.Wpf.App/Views/FindWindow.xaml.cs @@ -1,4 +1,6 @@ -using CommunityToolkit.Mvvm.Messaging; +// MIT License + +using CommunityToolkit.Mvvm.Messaging; using Leo.Wpf.App.ViewModels; using System.Windows; diff --git a/src/Leo.Wpf.App/Views/MainWindow.xaml.cs b/src/Leo.Wpf.App/Views/MainWindow.xaml.cs index 4434861..6a7141c 100644 --- a/src/Leo.Wpf.App/Views/MainWindow.xaml.cs +++ b/src/Leo.Wpf.App/Views/MainWindow.xaml.cs @@ -1,4 +1,6 @@ -using Leo.Wpf.App.ViewModels; +// MIT License + +using Leo.Wpf.App.ViewModels; using System.Windows; namespace Leo.Wpf.App.Views diff --git a/src/Leo.Wpf.App/Views/NewCustomerDetailWindow.xaml.cs b/src/Leo.Wpf.App/Views/NewCustomerDetailWindow.xaml.cs index 40a0ffe..9077e9d 100644 --- a/src/Leo.Wpf.App/Views/NewCustomerDetailWindow.xaml.cs +++ b/src/Leo.Wpf.App/Views/NewCustomerDetailWindow.xaml.cs @@ -1,4 +1,6 @@ -using CommunityToolkit.Mvvm.Messaging; +// MIT License + +using CommunityToolkit.Mvvm.Messaging; using Leo.Wpf.App.ViewModels; using System.Windows; diff --git a/src/Leo.Wpf.App/Views/NewCustomerWindow.xaml.cs b/src/Leo.Wpf.App/Views/NewCustomerWindow.xaml.cs index 84da586..5195808 100644 --- a/src/Leo.Wpf.App/Views/NewCustomerWindow.xaml.cs +++ b/src/Leo.Wpf.App/Views/NewCustomerWindow.xaml.cs @@ -1,4 +1,6 @@ -using Leo.Wpf.App.ViewModels; +// MIT License + +using Leo.Wpf.App.ViewModels; using System.Windows; namespace Leo.Wpf.App.Views diff --git a/test/Leo.Data.Domain.Tests/GlobalUsings.cs b/test/Leo.Data.Domain.Tests/GlobalUsings.cs index 8c927eb..d570433 100644 --- a/test/Leo.Data.Domain.Tests/GlobalUsings.cs +++ b/test/Leo.Data.Domain.Tests/GlobalUsings.cs @@ -1 +1,3 @@ +// MIT License + global using Xunit; \ No newline at end of file diff --git a/test/Leo.Data.Domain.Tests/MapperConfigurationTests.cs b/test/Leo.Data.Domain.Tests/MapperConfigurationTests.cs index 44497d4..cad0334 100644 --- a/test/Leo.Data.Domain.Tests/MapperConfigurationTests.cs +++ b/test/Leo.Data.Domain.Tests/MapperConfigurationTests.cs @@ -1,3 +1,5 @@ +// MIT License + using AutoMapper; using Leo.Data.Domain.Mapper; diff --git a/test/Leo.Web.Api.Tests/EndpointsTests.CustomerDetailsController.cs b/test/Leo.Web.Api.Tests/EndpointsTests.CustomerDetailsController.cs index 692178c..9545035 100644 --- a/test/Leo.Web.Api.Tests/EndpointsTests.CustomerDetailsController.cs +++ b/test/Leo.Web.Api.Tests/EndpointsTests.CustomerDetailsController.cs @@ -1,3 +1,5 @@ +// MIT License + using Leo.Data.Domain.Dtos; using Microsoft.AspNetCore.Http; using System.Net; diff --git a/test/Leo.Web.Api.Tests/EndpointsTests.CustomersController.cs b/test/Leo.Web.Api.Tests/EndpointsTests.CustomersController.cs index 79b8e7e..8cb29eb 100644 --- a/test/Leo.Web.Api.Tests/EndpointsTests.CustomersController.cs +++ b/test/Leo.Web.Api.Tests/EndpointsTests.CustomersController.cs @@ -1,3 +1,5 @@ +// MIT License + using Leo.Data.Domain.Dtos; using Microsoft.AspNetCore.Http; using System.Net; diff --git a/test/Leo.Web.Api.Tests/EndpointsTests.HealthCheck.cs b/test/Leo.Web.Api.Tests/EndpointsTests.HealthCheck.cs index 1cfa725..9e4a50b 100644 --- a/test/Leo.Web.Api.Tests/EndpointsTests.HealthCheck.cs +++ b/test/Leo.Web.Api.Tests/EndpointsTests.HealthCheck.cs @@ -1,3 +1,5 @@ +// MIT License + using System.Net; namespace Leo.Web.Api.Tests diff --git a/test/Leo.Web.Api.Tests/EndpointsTests.cs b/test/Leo.Web.Api.Tests/EndpointsTests.cs index 20cee55..cc80dc6 100644 --- a/test/Leo.Web.Api.Tests/EndpointsTests.cs +++ b/test/Leo.Web.Api.Tests/EndpointsTests.cs @@ -1,3 +1,5 @@ +// MIT License + namespace Leo.Web.Api.Tests { public partial class EndpointsTests : IClassFixture> diff --git a/test/Leo.Web.Api.Tests/GlobalUsings.cs b/test/Leo.Web.Api.Tests/GlobalUsings.cs index 8c927eb..d570433 100644 --- a/test/Leo.Web.Api.Tests/GlobalUsings.cs +++ b/test/Leo.Web.Api.Tests/GlobalUsings.cs @@ -1 +1,3 @@ +// MIT License + global using Xunit; \ No newline at end of file diff --git a/test/Leo.Web.Api.Tests/LeoAuthenticationHandler.cs b/test/Leo.Web.Api.Tests/LeoAuthenticationHandler.cs index 31bb18d..9da6e5d 100644 --- a/test/Leo.Web.Api.Tests/LeoAuthenticationHandler.cs +++ b/test/Leo.Web.Api.Tests/LeoAuthenticationHandler.cs @@ -1,4 +1,6 @@ -using Microsoft.AspNetCore.Authentication; +// MIT License + +using Microsoft.AspNetCore.Authentication; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; using Microsoft.Identity.Web; diff --git a/test/Leo.Web.Api.Tests/LeoWebApplicationFactory.cs b/test/Leo.Web.Api.Tests/LeoWebApplicationFactory.cs index 857c03c..9c9085b 100644 --- a/test/Leo.Web.Api.Tests/LeoWebApplicationFactory.cs +++ b/test/Leo.Web.Api.Tests/LeoWebApplicationFactory.cs @@ -1,4 +1,6 @@ -using Microsoft.AspNetCore.Authentication; +// MIT License + +using Microsoft.AspNetCore.Authentication; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Mvc.Testing; using Microsoft.AspNetCore.TestHost; diff --git a/test/Leo.Wpf.App.Tests/GlobalUsings.cs b/test/Leo.Wpf.App.Tests/GlobalUsings.cs index 8c927eb..d570433 100644 --- a/test/Leo.Wpf.App.Tests/GlobalUsings.cs +++ b/test/Leo.Wpf.App.Tests/GlobalUsings.cs @@ -1 +1,3 @@ +// MIT License + global using Xunit; \ No newline at end of file diff --git a/test/Leo.Wpf.App.Tests/MapperConfigurationTests.cs b/test/Leo.Wpf.App.Tests/MapperConfigurationTests.cs index de9a394..f4e979c 100644 --- a/test/Leo.Wpf.App.Tests/MapperConfigurationTests.cs +++ b/test/Leo.Wpf.App.Tests/MapperConfigurationTests.cs @@ -1,3 +1,5 @@ +// MIT License + using AutoMapper; using Leo.Windows.Mapper;