Skip to content

Commit

Permalink
Code doumentation updated
Browse files Browse the repository at this point in the history
  • Loading branch information
ByteDecoder committed Oct 19, 2023
1 parent 7f86536 commit a2b972c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
11 changes: 6 additions & 5 deletions src/Queryology/Extensions/QueryExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@ public static class QueryExtensions
/// <summary>
/// LINQ deferred query operator to filter the query execution if queries are Executable or ignore that object state.
/// </summary>
/// <param name="source">source enumerable sequence</param>
/// <param name="ignoreQueries">The default is true, otherwise all queries will executed even if they are mark as not executable</param>
/// <returns>Sequence affected after applying the query operator</returns>
/// <param name="source">source enumerable sequence.</param>
/// <param name="ignoreQueries">The default is true, otherwise all queries will executed even if they are mark as not executable.</param>
/// <typeparam name="T">Generic type.</typeparam>
/// <returns>Sequence affected after applying the query operator.</returns>
public static IEnumerable<IQuery<T>> IgnoreExcludedQueries<T>(
this IEnumerable<IQuery<T>> source,
bool ignoreQueries = true) where T : DbContext
this IEnumerable<IQuery<T>> source, bool ignoreQueries = true)
where T : DbContext
{
ArgumentNullException.ThrowIfNull(source, nameof(source));

Expand Down
6 changes: 3 additions & 3 deletions src/Queryology/QueryologyEngine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,10 @@ private IEnumerable<IQuery<T>> RegisteredQueries()
}

/// <summary>
/// From the loaded Assembly, finds the types assignable to the targetType
/// From the loaded Assembly, finds the types assignable to the targetType.
/// </summary>
/// <param name="targetType">Target Type to find</param>
/// <returns></returns>
/// <param name="targetType">Target Type to find.</param>
/// <returns>IEnumerable of Type.</returns>
private IEnumerable<Type> GetLoadedTypes(Type targetType) =>
AppDomain.CurrentDomain.GetAssemblies()
.SelectMany(assembly => assembly.GetTypes())
Expand Down

0 comments on commit a2b972c

Please sign in to comment.