refactor: improve code formatting and readability in query-related interfaces

This commit is contained in:
Jean Gatto
2025-08-22 09:29:05 -03:00
parent 76ec7698d0
commit 56571ab003
3 changed files with 7 additions and 2 deletions
@@ -1,3 +1,6 @@
namespace Shop.Query.Abstractions;
/// <summary>
/// Marker interface for query models.
/// </summary>
public interface IQueryMarker;
+2 -1
View File
@@ -11,7 +11,8 @@ public interface IQueryModel;
/// Represents the interface for a query model with a generic key type.
/// </summary>
/// <typeparam name="TKey">The type of the key.</typeparam>
public interface IQueryModel<out TKey> : IQueryModel where TKey : IEquatable<TKey>
public interface IQueryModel<out TKey> : IQueryModel
where TKey : IEquatable<TKey>
{
/// <summary>
/// Gets the ID of the query model.
@@ -19,7 +19,8 @@ public interface IReadDbContext : IDisposable
/// </summary>
/// <typeparam name="TQueryModel">The type of the query model.</typeparam>
/// <returns>The MongoDB collection for the specified query model.</returns>
IMongoCollection<TQueryModel> GetCollection<TQueryModel>() where TQueryModel : IQueryModel;
IMongoCollection<TQueryModel> GetCollection<TQueryModel>()
where TQueryModel : IQueryModel;
/// <summary>
/// Creates collections in the database for all query models.