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() =>
|
||||
Assembly
|
||||
[.. Assembly
|
||||
.GetExecutingAssembly()
|
||||
.GetAllTypesOf<IQueryModel>()
|
||||
.Select(impl => impl.Name)
|
||||
.Distinct()
|
||||
.ToList();
|
||||
.Distinct()];
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
Reference in New Issue
Block a user