Breaking Changes. Upgrade Script in Sql directory. Deployed
This commit is contained in:
18
Tanshu.Accounts.Contracts/Attributes/AllowNullAttribute.cs
Normal file
18
Tanshu.Accounts.Contracts/Attributes/AllowNullAttribute.cs
Normal file
@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace Tanshu.Accounts.Contracts
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
|
||||
public class AllowNullAttribute : Attribute
|
||||
{
|
||||
private string message = string.Empty;
|
||||
public string Message
|
||||
{
|
||||
get { return message; }
|
||||
set { message = value; }
|
||||
}
|
||||
}
|
||||
}
|
||||
24
Tanshu.Accounts.Contracts/Attributes/FormulaAttribute.cs
Normal file
24
Tanshu.Accounts.Contracts/Attributes/FormulaAttribute.cs
Normal file
@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace Tanshu.Accounts.Contracts
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
|
||||
public class FormulaAttribute : Attribute
|
||||
{
|
||||
private string message = string.Empty;
|
||||
public string Message
|
||||
{
|
||||
get { return message; }
|
||||
set { message = value; }
|
||||
}
|
||||
private string formula = string.Empty;
|
||||
public string Formula
|
||||
{
|
||||
get { return formula; }
|
||||
set { formula = value; }
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -6,7 +6,7 @@ using System.Text;
|
||||
namespace Tanshu.Accounts.Contracts
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
|
||||
public class AllowNullAttribute : Attribute
|
||||
public class NotNullAttribute : Attribute
|
||||
{
|
||||
private string message = string.Empty;
|
||||
public string Message
|
||||
|
||||
18
Tanshu.Accounts.Contracts/Attributes/UniqueAttribute.cs
Normal file
18
Tanshu.Accounts.Contracts/Attributes/UniqueAttribute.cs
Normal file
@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace Tanshu.Accounts.Contracts
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
|
||||
public class UniqueAttribute : Attribute
|
||||
{
|
||||
private string message = string.Empty;
|
||||
public string Message
|
||||
{
|
||||
get { return message; }
|
||||
set { message = value; }
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user