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));