Skip to content

Commit

Permalink
Add file header
Browse files Browse the repository at this point in the history
  • Loading branch information
ousiax committed Mar 14, 2024
1 parent 54492e7 commit cf4f191
Show file tree
Hide file tree
Showing 113 changed files with 324 additions and 98 deletions.
4 changes: 3 additions & 1 deletion src/Leo.Data.Domain/Dtos/MemberDetailDto.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using System.ComponentModel.DataAnnotations;
// MIT License

using System.ComponentModel.DataAnnotations;

namespace Leo.Data.Domain.Dtos
{
Expand Down
4 changes: 3 additions & 1 deletion src/Leo.Data.Domain/Dtos/MemberDto.cs
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
4 changes: 3 additions & 1 deletion src/Leo.Data.Domain/Entities/Customer.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
namespace Leo.Data.Domain.Entities
// MIT License

namespace Leo.Data.Domain.Entities
{
public class Customer : IAuditableEntity
{
Expand Down
4 changes: 3 additions & 1 deletion src/Leo.Data.Domain/Entities/CustomerDetail.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
namespace Leo.Data.Domain.Entities
// MIT License

namespace Leo.Data.Domain.Entities
{
public class CustomerDetail : IAuditableEntity
{
Expand Down
4 changes: 3 additions & 1 deletion src/Leo.Data.Domain/Entities/Gender.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
namespace Leo.Data.Domain.Entities
// MIT License

namespace Leo.Data.Domain.Entities
{
public enum Gender
{
Expand Down
4 changes: 3 additions & 1 deletion src/Leo.Data.Domain/Entities/IAuditableEntity.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
namespace Leo.Data.Domain.Entities
// MIT License

namespace Leo.Data.Domain.Entities
{
public interface IAuditableEntity
{
Expand Down
4 changes: 3 additions & 1 deletion src/Leo.Data.Domain/Extensions/AuditableEntityExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using Leo.Data.Domain.Entities;
// MIT License

using Leo.Data.Domain.Entities;
using System.Security.Claims;

namespace Leo.Data.Domain
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using System.Reflection;
// MIT License

using System.Reflection;

namespace Microsoft.Extensions.DependencyInjection
{
Expand Down
4 changes: 3 additions & 1 deletion src/Leo.Data.Domain/Mapper/LeoProfile.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using AutoMapper;
// MIT License

using AutoMapper;
using Leo.Data.Domain.Dtos;
using Leo.Data.Domain.Entities;
using System.Runtime.CompilerServices;
Expand Down
4 changes: 3 additions & 1 deletion src/Leo.UI.Services/Abstractions/IAuthenticationService.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using Microsoft.Identity.Client;
// MIT License

using Microsoft.Identity.Client;

namespace Leo.UI.Services
{
Expand Down
4 changes: 3 additions & 1 deletion src/Leo.UI.Services/Abstractions/ICustomerDetailService.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using Leo.Data.Domain.Dtos;
// MIT License

using Leo.Data.Domain.Dtos;

namespace Leo.UI
{
Expand Down
4 changes: 3 additions & 1 deletion src/Leo.UI.Services/Abstractions/ICustomerService.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using Leo.Data.Domain.Dtos;
// MIT License

using Leo.Data.Domain.Dtos;

namespace Leo.UI
{
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
4 changes: 3 additions & 1 deletion src/Leo.UI.Services/Options/WebOptions.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
namespace Leo.UI.Options
// MIT License

namespace Leo.UI.Options
{
public sealed class WebOptions
{
Expand Down
4 changes: 3 additions & 1 deletion src/Leo.UI.Services/Services/AuthenticationService.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using Microsoft.Extensions.Options;
// MIT License

using Microsoft.Extensions.Options;
using Microsoft.Identity.Client;

namespace Leo.UI.Services.Services
Expand Down
4 changes: 3 additions & 1 deletion src/Leo.UI.Services/Services/CustomerDetailService.cs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
4 changes: 3 additions & 1 deletion src/Leo.UI.Services/Services/CustomerService.cs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
2 changes: 2 additions & 0 deletions src/Leo.Web.Api/Controllers/CustomerDetailsController.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// MIT License

using Alyio.AspNetCore.ApiMessages;
using Leo.Data.Domain.Dtos;
using Leo.Web.Data.Commands;
Expand Down
2 changes: 2 additions & 0 deletions src/Leo.Web.Api/Controllers/CustomersController.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// MIT License

using Alyio.AspNetCore.ApiMessages;
using Leo.Data.Domain.Dtos;
using Leo.Web.Data.Commands;
Expand Down
4 changes: 3 additions & 1 deletion src/Leo.Web.Api/Controllers/EchoWebSocketController.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using Microsoft.AspNetCore.Mvc;
// MIT License

using Microsoft.AspNetCore.Mvc;
using System.Net.WebSockets;

namespace Leo.Web.Controllers
Expand Down
4 changes: 3 additions & 1 deletion src/Leo.Web.Api/Routing/SlugifyParameterTransformer.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using System.Globalization;
// MIT License

using System.Globalization;
using System.Text.RegularExpressions;

namespace Leo.Web.Routing
Expand Down
4 changes: 3 additions & 1 deletion src/Leo.Web.Api/Startup.cs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// MIT License

using Dapper;
using Leo.Web.Data.SQLite.Repositories;
using Leo.Web.Data.SQLite.Services;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using Dapper;
// MIT License

using Dapper;
using Leo.Data.Domain.Entities;
using System.Data;

Expand Down
4 changes: 3 additions & 1 deletion src/Leo.Web.Data.SQLite/Repositories/CustomerRepository.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using Dapper;
// MIT License

using Dapper;
using Leo.Data.Domain.Entities;
using System.Data;

Expand Down
4 changes: 3 additions & 1 deletion src/Leo.Web.Data.SQLite/Services/DatabaseService.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using Dapper;
// MIT License

using Dapper;

namespace Leo.Web.Data.SQLite.Services
{
Expand Down
4 changes: 3 additions & 1 deletion src/Leo.Web.Data.SQLite/Services/DbConnectionFactory.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using Microsoft.Extensions.Configuration;
// MIT License

using Microsoft.Extensions.Configuration;
using System.Data.Common;
using System.Data.SQLite;

Expand Down
4 changes: 3 additions & 1 deletion src/Leo.Web.Data.SQLite/Services/UnitOfWork.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
namespace Leo.Web.Data.SQLite.Services
// MIT License

namespace Leo.Web.Data.SQLite.Services
{
internal sealed class UnitOfWork : IUnitOfWork
{
Expand Down
4 changes: 3 additions & 1 deletion src/Leo.Web.Data.SQLite/TypeHandlers/GuidToStringHandler.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using Dapper;
// MIT License

using Dapper;
using System.Data;

namespace Leo.Web.Data.SQLite.TypeHandlers
Expand Down
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using Dapper;
// MIT License

using Dapper;
using Leo.Data.Domain.Entities;

namespace Leo.Web.Data.SqlServer.Repositories
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using Dapper;
// MIT License

using Dapper;
using Leo.Data.Domain.Entities;

namespace Leo.Web.Data.SqlServer.Repositories
Expand Down
4 changes: 3 additions & 1 deletion src/Leo.Web.Data.SqlServer/Services/DatabaseService.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
namespace Leo.Web.Data.SqlServer.Services
// MIT License

namespace Leo.Web.Data.SqlServer.Services
{
internal sealed class DatabaseService : IDatabaseService
{
Expand Down
4 changes: 3 additions & 1 deletion src/Leo.Web.Data.SqlServer/Services/DbConnectionFactory.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using Microsoft.Data.SqlClient;
// MIT License

using Microsoft.Data.SqlClient;
using Microsoft.Extensions.Configuration;
using System.Data.Common;

Expand Down
4 changes: 3 additions & 1 deletion src/Leo.Web.Data.SqlServer/Services/UnitOfWork.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
namespace Leo.Web.Data.SqlServer.Services
// MIT License

namespace Leo.Web.Data.SqlServer.Services
{
internal sealed class UnitOfWork : IUnitOfWork
{
Expand Down
4 changes: 3 additions & 1 deletion src/Leo.Web.Data/Abstractions/IDatabaseService.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
namespace Leo.Web.Data
// MIT License

namespace Leo.Web.Data
{
public interface IDatabaseService
{
Expand Down
4 changes: 3 additions & 1 deletion src/Leo.Web.Data/Abstractions/IDbConnectionFactory.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using System.Data.Common;
// MIT License

using System.Data.Common;

namespace Leo.Web.Data
{
Expand Down
4 changes: 3 additions & 1 deletion src/Leo.Web.Data/Abstractions/IUnitOfWork.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
namespace Leo.Web.Data
// MIT License

namespace Leo.Web.Data
{
public interface IUnitOfWork
{
Expand Down
4 changes: 3 additions & 1 deletion src/Leo.Web.Data/Commands/CreateCustomerDetailRequest.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using Leo.Data.Domain.Dtos;
// MIT License

using Leo.Data.Domain.Dtos;
using MediatR;
using System.Security.Claims;

Expand Down
4 changes: 3 additions & 1 deletion src/Leo.Web.Data/Commands/CreateCustomerRequest.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using Leo.Data.Domain.Dtos;
// MIT License

using Leo.Data.Domain.Dtos;
using MediatR;
using System.Security.Claims;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using AutoMapper;
// MIT License

using AutoMapper;
using Leo.Data.Domain;
using Leo.Data.Domain.Entities;
using MediatR;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using AutoMapper;
// MIT License

using AutoMapper;
using Leo.Data.Domain;
using Leo.Data.Domain.Entities;
using MediatR;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using AutoMapper;
// MIT License

using AutoMapper;
using Leo.Data.Domain;
using Leo.Data.Domain.Entities;
using MediatR;
Expand Down
4 changes: 3 additions & 1 deletion src/Leo.Web.Data/Commands/UpdateCustomerRequest.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using Leo.Data.Domain.Dtos;
// MIT License

using Leo.Data.Domain.Dtos;
using MediatR;
using System.Security.Claims;

Expand Down
4 changes: 3 additions & 1 deletion src/Leo.Web.Data/Extensions/ServiceCollectionExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using Microsoft.Extensions.DependencyInjection;
// MIT License

using Microsoft.Extensions.DependencyInjection;
using System.Reflection;

namespace Leo.Web.Data
Expand Down
4 changes: 3 additions & 1 deletion src/Leo.Web.Data/Queries/GetCustomerByIdRequest.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using Leo.Data.Domain.Dtos;
// MIT License

using Leo.Data.Domain.Dtos;
using MediatR;

namespace Leo.Web.Data.Queries
Expand Down
4 changes: 3 additions & 1 deletion src/Leo.Web.Data/Queries/GetCustomerDetailByIdRequest.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using Leo.Data.Domain.Dtos;
// MIT License

using Leo.Data.Domain.Dtos;
using MediatR;

namespace Leo.Web.Data.Queries
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using Leo.Data.Domain.Dtos;
// MIT License

using Leo.Data.Domain.Dtos;
using MediatR;

namespace Leo.Web.Data.Queries
Expand Down
4 changes: 3 additions & 1 deletion src/Leo.Web.Data/Queries/GetCustomersRequest.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using Leo.Data.Domain.Dtos;
// MIT License

using Leo.Data.Domain.Dtos;
using MediatR;

namespace Leo.Web.Data.Queries
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using AutoMapper;
// MIT License

using AutoMapper;
using Leo.Data.Domain.Dtos;
using MediatR;

Expand Down
Loading

0 comments on commit cf4f191

Please sign in to comment.