encompass-cs/encompass-cs/Attributes/QueryWith.cs

22 lines
508 B
C#
Raw Normal View History

using Encompass.Exceptions;
using System;
using System.Collections.Generic;
using System.Linq;
namespace Encompass
{
[AttributeUsage(AttributeTargets.Class)]
public class QueryWith : Attribute
{
2020-03-20 07:09:57 +00:00
public readonly HashSet<Type> QueryWithTypes = new HashSet<Type>();
public QueryWith(params Type[] queryWithTypes)
{
foreach (var queryWithType in queryWithTypes)
{
2020-03-20 07:09:57 +00:00
QueryWithTypes.Add(queryWithType);
}
}
}
}