mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-04-28 13:42:51 +08:00
29 lines
685 B
C#
29 lines
685 B
C#
using System;
|
|
using System.Linq;
|
|
|
|
namespace FreeSql.DataAnnotations
|
|
{
|
|
|
|
[AttributeUsage(AttributeTargets.Property, AllowMultiple = true)]
|
|
public class AggregateRootBoundaryAttribute : Attribute
|
|
{
|
|
public string Name { get; set; }
|
|
/// <summary>
|
|
/// 边界是否终止
|
|
/// </summary>
|
|
public bool Break { get; set; }
|
|
/// <summary>
|
|
/// 边界是否终止向下探测
|
|
/// </summary>
|
|
public bool BreakThen { get; set; }
|
|
|
|
public AggregateRootBoundaryAttribute(string name)
|
|
{
|
|
this.Name = name;
|
|
}
|
|
public AggregateRootBoundaryAttribute()
|
|
{
|
|
}
|
|
}
|
|
}
|