Merge pull request #108 from BinaryAlley/refactor/ensure-whitespace-consistency

Ensues whitespace consistency
This commit is contained in:
BinaryAlley authored and GitHub committed 2025-01-22 18:14:48 +00:00
commit 836a54a7ac
9 files changed
+18 -21

No files matched your search

@@ -1,4 +1,4 @@
#region ========================================================================= USING =====================================================================================
#region ========================================================================= USING =====================================================================================
using ErrorOr;
using System.Threading.Tasks;
#endregion
@@ -15,4 +15,4 @@ public interface IDeleteAllRepositoryAction
/// </summary>
/// <returns>An <see cref="ErrorOr{TValue}"/> representing either a successful operation, or an error.</returns>
Task<ErrorOr<Deleted>> DeleteAllAsync();
}
}
@@ -1,4 +1,4 @@
#region ========================================================================= USING =====================================================================================
#region ========================================================================= USING =====================================================================================
using ErrorOr;
using System.Threading;
using System.Threading.Tasks;
@@ -19,4 +19,4 @@ public interface IDeleteByIdRepositoryAction<TId> where TId : notnull
/// <param name="cancellationToken">Cancellation token that can be used to stop the execution.</param>
/// <returns>An <see cref="ErrorOr{TValue}"/> representing either a successful operation, or an error.</returns>
Task<ErrorOr<Deleted>> DeleteByIdAsync(TId id, CancellationToken cancellationToken);
}
}
@@ -1,4 +1,4 @@
#region ========================================================================= USING =====================================================================================
#region ========================================================================= USING =====================================================================================
using ErrorOr;
using Lumina.Application.Common.DataAccess.Entities.Common;
using System.Collections.Generic;
@@ -20,4 +20,4 @@ public interface IGetAllRepositoryAction<TModel> where TModel : IStorageEntity
/// <param name="cancellationToken">Cancellation token that can be used to stop the execution.</param>
/// <returns>An <see cref="ErrorOr{TValue}"/> containing either a collection of <typeparamref name="TModel"/>, or an error.</returns>
Task<ErrorOr<IEnumerable<TModel>>> GetAllAsync(CancellationToken cancellationToken);
}
}
@@ -1,4 +1,4 @@
#region ========================================================================= USING =====================================================================================
#region ========================================================================= USING =====================================================================================
using ErrorOr;
using Lumina.Application.Common.DataAccess.Entities.Common;
using System.Threading;
@@ -22,4 +22,4 @@ public interface IGetByIdRepositoryAction<TModel, TId> where TModel : IStorageEn
/// <param name="cancellationToken">Cancellation token that can be used to stop the execution.</param>
/// <returns>An <see cref="ErrorOr{TValue}"/> containing either a <typeparamref name="TModel"/> identified by <paramref name="id"/>, or an error.</returns>
Task<ErrorOr<TModel?>> GetByIdAsync(TId id, CancellationToken cancellationToken);
}
}
@@ -1,4 +1,4 @@
#region ========================================================================= USING =====================================================================================
#region ========================================================================= USING =====================================================================================
using ErrorOr;
using Lumina.Application.Common.DataAccess.Entities.Common;
using System.Threading;
@@ -20,4 +20,4 @@ public interface IInsertRepositoryAction<TModel> where TModel : IStorageEntity
/// <param name="cancellationToken">Cancellation token that can be used to stop the execution.</param>
/// <returns>An <see cref="ErrorOr{TValue}"/> representing either a successful operation, or an error.</returns>
Task<ErrorOr<Created>> InsertAsync(TModel data, CancellationToken cancellationToken);
}
}
@@ -1,4 +1,4 @@
#region ========================================================================= USING =====================================================================================
#region ========================================================================= USING =====================================================================================
using ErrorOr;
using Lumina.Application.Common.DataAccess.Entities.Common;
using System.Threading;
@@ -20,4 +20,4 @@ public interface IUpdateRepositoryAction<TModel> where TModel : IStorageEntity
/// <param name="cancellationToken">Cancellation token that can be used to stop the execution.</param>
/// <returns>An <see cref="ErrorOr{TValue}"/> representing either a successful operation, or an error.</returns>
Task<ErrorOr<Updated>> UpdateAsync(TModel data, CancellationToken cancellationToken);
}
}
@@ -1,8 +1,5 @@
#region ========================================================================= USING =====================================================================================
#region ========================================================================= USING =====================================================================================
using Lumina.Application.Common.DataAccess.Entities.Common;
#endregion
namespace Lumina.Application.Common.DataAccess.Repositories.Common.Base;
@@ -13,4 +10,4 @@ namespace Lumina.Application.Common.DataAccess.Repositories.Common.Base;
/// <typeparam name="TModel">The type used for the repository. It should implement <see cref="IStorageEntity"/>.</typeparam>
public interface IRepository<TModel> where TModel : IStorageEntity
{
}
}
@@ -1,4 +1,4 @@
#region ========================================================================= USING =====================================================================================
#region ========================================================================= USING =====================================================================================
using Lumina.Application.Common.DataAccess.Repositories.Common.Base;
using System;
using System.Collections.Generic;
@@ -61,4 +61,4 @@ public class RepositoryDictionary
{
return (TResult)_container.FirstOrDefault(e => e.Key == key).Value;
}
}
}
+2 -2
View File
@@ -1,4 +1,4 @@
#region ========================================================================= USING =====================================================================================
#region ========================================================================= USING =====================================================================================
using Lumina.Application.Common.DataAccess.Repositories.Common.Base;
using Lumina.Application.Common.DataAccess.UoW;
using Lumina.DataAccess.Core.Repositories.Common.Factory;
@@ -114,4 +114,4 @@ public class UnitOfWork : IUnitOfWork
{
throw new NotImplementedException();
}
}
}