refactor: improve code formatting and readability in query-related interfaces
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
namespace Shop.Query.Abstractions;
|
||||
|
||||
/// <summary>
|
||||
/// Marker interface for query models.
|
||||
/// </summary>
|
||||
public interface IQueryMarker;
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user