refactor: simplify GetCollectionNamesFromAssembly method by using array syntax
This commit is contained in:
@@ -102,12 +102,11 @@ public sealed class NoSqlDbContext : IReadDbContext, ISynchronizeDb
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static List<string> GetCollectionNamesFromAssembly() =>
|
private static List<string> GetCollectionNamesFromAssembly() =>
|
||||||
Assembly
|
[.. Assembly
|
||||||
.GetExecutingAssembly()
|
.GetExecutingAssembly()
|
||||||
.GetAllTypesOf<IQueryModel>()
|
.GetAllTypesOf<IQueryModel>()
|
||||||
.Select(impl => impl.Name)
|
.Select(impl => impl.Name)
|
||||||
.Distinct()
|
.Distinct()];
|
||||||
.ToList();
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user