global using System.ComponentModel.DataAnnotations; global using SimpleAdmin.Core; namespace SimpleAdmin.Core { [AttributeUsage(AttributeTargets.Property)] public sealed class DataValidationAttribute : Attribute { public DataValidationAttribute(ValidationTypes type) {} } [AttributeUsage(AttributeTargets.Property)] public sealed class IdNotNullAttribute : Attribute { public string ErrorMessage { get; set; } } public enum ValidationTypes { Numeric } public static class Oops { public static Exception Bah(string text) => new InvalidOperationException(text); } } namespace SimpleAdmin.Application { public static class Oops { public static Exception Bah(string text) => new InvalidOperationException(text); } [SqlSugar.SugarTable("ob_contract_template_version")] public sealed class ObContractTemplateVersion { [SqlSugar.SugarColumn(IsPrimaryKey = true)] public long Id { get; set; } public string VersionStatus { get; set; } public DateTime? EffectiveDate { get; set; } public DateTime? ExpiryDate { get; set; } public bool? CompanySealEnabled { get; set; } public bool? AcrossPageSealEnabled { get; set; } } }