refactor: improve code formatting and readability in query-related interfaces
This commit is contained in:
@@ -1,3 +1,6 @@
|
|||||||
namespace Shop.Query.Abstractions;
|
namespace Shop.Query.Abstractions;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Marker interface for query models.
|
||||||
|
/// </summary>
|
||||||
public interface IQueryMarker;
|
public interface IQueryMarker;
|
||||||
@@ -11,7 +11,8 @@ public interface IQueryModel;
|
|||||||
/// Represents the interface for a query model with a generic key type.
|
/// Represents the interface for a query model with a generic key type.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <typeparam name="TKey">The type of the key.</typeparam>
|
/// <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>
|
/// <summary>
|
||||||
/// Gets the ID of the query model.
|
/// Gets the ID of the query model.
|
||||||
|
|||||||
@@ -19,7 +19,8 @@ public interface IReadDbContext : IDisposable
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <typeparam name="TQueryModel">The type of the query model.</typeparam>
|
/// <typeparam name="TQueryModel">The type of the query model.</typeparam>
|
||||||
/// <returns>The MongoDB collection for the specified query model.</returns>
|
/// <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>
|
/// <summary>
|
||||||
/// Creates collections in the database for all query models.
|
/// Creates collections in the database for all query models.
|
||||||
|
|||||||
Reference in New Issue
Block a user