You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
373 B
14 lines
373 B
namespace WTA.Shared.Attributes;
|
|
|
|
[AttributeUsage(AttributeTargets.Property)]
|
|
public class ManyToManyAttribute<TEntity> : Attribute, ITypeAttribute
|
|
{
|
|
public Type Type { get; set; } = null!;
|
|
public string? Property { get; }
|
|
|
|
public ManyToManyAttribute(string? property = null)
|
|
{
|
|
this.Type = typeof(TEntity);
|
|
this.Property = property;
|
|
}
|
|
}
|
|
|