using Encompass.Exceptions; using System; using System.Collections.Generic; using System.Linq; namespace Encompass { [AttributeUsage(AttributeTargets.Class)] public class QueryWith : Attribute { public readonly HashSet QueryWithTypes = new HashSet(); public QueryWith(params Type[] queryWithTypes) { foreach (var queryWithType in queryWithTypes) { QueryWithTypes.Add(queryWithType); } } } }