22 lines
508 B
C#
22 lines
508 B
C#
using Encompass.Exceptions;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
|
|
namespace Encompass
|
|
{
|
|
[AttributeUsage(AttributeTargets.Class)]
|
|
public class QueryWithout : Attribute
|
|
{
|
|
public readonly HashSet<Type> QueryWithoutTypes = new HashSet<Type>();
|
|
|
|
public QueryWithout(params Type[] queryWithoutTypes)
|
|
{
|
|
foreach (var type in queryWithoutTypes)
|
|
{
|
|
QueryWithoutTypes.Add(type);
|
|
}
|
|
}
|
|
}
|
|
}
|