From e6a93b1b6a86b3842e8fce8eebc73c28d0870481 Mon Sep 17 00:00:00 2001 From: ByteDecoder Date: Mon, 23 Oct 2023 11:13:49 -0600 Subject: [PATCH] documentation updated --- src/Queryology.Abstractions/IQuery.cs | 1 - src/Queryology/QueryologyEngine.cs | 20 +++++++++++--------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/src/Queryology.Abstractions/IQuery.cs b/src/Queryology.Abstractions/IQuery.cs index de2d899..2f7ba31 100644 --- a/src/Queryology.Abstractions/IQuery.cs +++ b/src/Queryology.Abstractions/IQuery.cs @@ -45,4 +45,3 @@ public interface IQuery /// void Execute(); } - diff --git a/src/Queryology/QueryologyEngine.cs b/src/Queryology/QueryologyEngine.cs index c920a26..ecb150a 100644 --- a/src/Queryology/QueryologyEngine.cs +++ b/src/Queryology/QueryologyEngine.cs @@ -17,9 +17,10 @@ public class QueryologyEngine : IQueryologyEngine private bool _ignoreExcludedQueries; /// - /// + /// Initializes a new instance of the class. /// - /// + /// Expect and instance of instance of + /// the class. public QueryologyEngine(QueryologyEngineOptions queryologyOptions) : this( queryologyOptions.DataContextProvider, @@ -45,10 +46,11 @@ public QueryologyEngine( } /// - /// + /// LINQ deferred query operator to filter the query execution if queries are + /// Executable or ignore that object state. /// /// The default is true, otherwise all queries will executed even if they are mark as not executable - /// + /// returns the IQueryologyEngine of type T instance. public IQueryologyEngine IgnoreExcludedQueries(bool ignoreQueries) { _ignoreExcludedQueries = ignoreQueries; @@ -56,9 +58,9 @@ public IQueryologyEngine IgnoreExcludedQueries(bool ignoreQueries) } /// - /// Execute each query object IQuery, loaded in the Current AppDomain + /// Execute each query object IQuery, loaded in the Current AppDomain. /// - /// Total executed queries + /// Total executed queries. public int Execute() { var totalExecQueries = 0; @@ -71,16 +73,16 @@ public int Execute() query.Execute(); checked { totalExecQueries++; } - }; + } _ignoreExcludedQueries = true; return totalExecQueries; } /// - /// + /// Scan the assembly for all types assignable to IQuery and create an instance of each. /// - /// An enumerator for each of the Query Types registered in the loaded assemblies + /// An enumerator for each of the Query Types registered in the loaded assemblies. private IEnumerable> RegisteredQueries() { var loadedTypes = GetLoadedTypes(typeof(IQuery));