2019-12-23 02:13:35 +00:00
|
|
|
|
using Encompass.Exceptions;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
|
|
|
|
namespace Encompass
|
|
|
|
|
{
|
|
|
|
|
[AttributeUsage(AttributeTargets.Class)]
|
|
|
|
|
public class QueryWithout : Attribute
|
|
|
|
|
{
|
2020-03-20 07:09:57 +00:00
|
|
|
|
public readonly HashSet<Type> QueryWithoutTypes = new HashSet<Type>();
|
2019-12-23 02:13:35 +00:00
|
|
|
|
|
|
|
|
|
public QueryWithout(params Type[] queryWithoutTypes)
|
|
|
|
|
{
|
|
|
|
|
foreach (var type in queryWithoutTypes)
|
|
|
|
|
{
|
2020-03-20 22:45:58 +00:00
|
|
|
|
QueryWithoutTypes.Add(type);
|
2019-12-23 02:13:35 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|