namespace DataCheck;
///
/// 数据校验规则
///
[AttributeUsage(AttributeTargets.Property)]
public class DataRulesAttribute(bool allowNull = false, string regexRule = ".*") : Attribute
{
///
/// 是否允许空值
///
public readonly bool AllowNull = allowNull;
///
/// 正则表达式
///
public readonly string RegexRule = regexRule;
}