From 56571ab003d9e88a87306762d6b7be24014a87a3 Mon Sep 17 00:00:00 2001 From: Jean Gatto Date: Fri, 22 Aug 2025 09:29:05 -0300 Subject: [PATCH] refactor: improve code formatting and readability in query-related interfaces --- src/Shop.Query/Abstractions/IQueryMarker.cs | 3 +++ src/Shop.Query/Abstractions/IQueryModel.cs | 3 ++- src/Shop.Query/Abstractions/IReadDbContext.cs | 3 ++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/Shop.Query/Abstractions/IQueryMarker.cs b/src/Shop.Query/Abstractions/IQueryMarker.cs index 4005a5e..6b045be 100644 --- a/src/Shop.Query/Abstractions/IQueryMarker.cs +++ b/src/Shop.Query/Abstractions/IQueryMarker.cs @@ -1,3 +1,6 @@ namespace Shop.Query.Abstractions; +/// +/// Marker interface for query models. +/// public interface IQueryMarker; \ No newline at end of file diff --git a/src/Shop.Query/Abstractions/IQueryModel.cs b/src/Shop.Query/Abstractions/IQueryModel.cs index 72c7ad8..70812e7 100644 --- a/src/Shop.Query/Abstractions/IQueryModel.cs +++ b/src/Shop.Query/Abstractions/IQueryModel.cs @@ -11,7 +11,8 @@ public interface IQueryModel; /// Represents the interface for a query model with a generic key type. /// /// The type of the key. -public interface IQueryModel : IQueryModel where TKey : IEquatable +public interface IQueryModel : IQueryModel + where TKey : IEquatable { /// /// Gets the ID of the query model. diff --git a/src/Shop.Query/Abstractions/IReadDbContext.cs b/src/Shop.Query/Abstractions/IReadDbContext.cs index 17da9c0..241f747 100644 --- a/src/Shop.Query/Abstractions/IReadDbContext.cs +++ b/src/Shop.Query/Abstractions/IReadDbContext.cs @@ -19,7 +19,8 @@ public interface IReadDbContext : IDisposable /// /// The type of the query model. /// The MongoDB collection for the specified query model. - IMongoCollection GetCollection() where TQueryModel : IQueryModel; + IMongoCollection GetCollection() + where TQueryModel : IQueryModel; /// /// Creates collections in the database for all query models.