init lserp cs 5.0
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
|
||||
namespace Zhaizj.Framework.ORM {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// email 批注,验证对象的属性是否是合法的 email
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class EmailAttribute : PatternAttribute {
|
||||
|
||||
public EmailAttribute() {
|
||||
Regexp = RegPattern.Email;
|
||||
}
|
||||
|
||||
public EmailAttribute( String msg ) {
|
||||
Regexp = RegPattern.Email;
|
||||
Message = msg;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user