=== Summary: 675 files | 7 generated | 484 fresh | 4605 untracked | 4268 adopted | 355 marked | 466 validated-ok | 2+0 stale (sig+body) | 0 skipped | 0 failed | elapsed 11:08:11.442 (40091.44s) ===
This commit is contained in:
@@ -9,6 +9,7 @@ namespace adas_core.Infrastructure.Repositories;
|
||||
/// <summary>
|
||||
/// Provides a MongoDB-backed repository implementation for PoCMapping entities.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=34c4715 -->
|
||||
public class PoCMappingRepository : MongoRepository<PoCMapping>, IPoCMappingRepository
|
||||
{
|
||||
private readonly ApiSettings _apiSettings;
|
||||
@@ -30,6 +31,7 @@ public class PoCMappingRepository : MongoRepository<PoCMapping>, IPoCMappingRepo
|
||||
/// Retrieves the name of the mappings collection from the API settings configuration.
|
||||
/// </summary>
|
||||
/// <returns>The mappings collection name as configured in <c>_apiSettings</c>.</returns>
|
||||
/// <!-- aidoc:v1 sig=94e22ff body=140c15b -->
|
||||
public override string GetCollectionName()
|
||||
{
|
||||
return _apiSettings.Mappings;
|
||||
@@ -40,6 +42,7 @@ public class PoCMappingRepository : MongoRepository<PoCMapping>, IPoCMappingRepo
|
||||
/// </summary>
|
||||
/// <param name="key">The unique identifier (Id) of the <see cref="PoCMapping"/> to look up.</param>
|
||||
/// <returns>A Task TResult containing the matching PoCMapping, or <c>null</c> if no document with the specified key exists in the collection.</returns>
|
||||
/// <!-- aidoc:v1 sig=05f7477 body=e2c98c4 -->
|
||||
public async Task<PoCMapping?> FindByKey(string key)
|
||||
{
|
||||
var filterBuilder = Builders<PoCMapping>.Filter;
|
||||
|
||||
Reference in New Issue
Block a user