添加注释

This commit is contained in:
Kevin
2017-02-19 18:54:22 +08:00
parent 751bce9244
commit cb68f973f4
5 changed files with 25 additions and 11 deletions
+3
View File
@@ -11,6 +11,9 @@
#endregion
namespace OSS.Common.ComModels.Enums
{
/// <summary>
/// 排序类型
/// </summary>
public enum SortType
{
/// <summary>
@@ -71,6 +71,9 @@ namespace OSS.Common.Extention.DTO
AllowMultiple = false, Inherited = true)]
public class BaseClumnAttribute : Attribute
{
/// <summary>
///
/// </summary>
protected string _alias;
/// <summary>
@@ -80,7 +83,9 @@ namespace OSS.Common.Extention.DTO
{
get { return _alias; }
}
/// <summary>
///
/// </summary>
protected bool _IsAuto;
/// <summary>
@@ -90,16 +95,15 @@ namespace OSS.Common.Extention.DTO
{
get { return _IsAuto; }
}
/// <summary>
///
/// </summary>
protected bool _IsIgnore;
/// <summary>
/// 是否忽略当前列
/// </summary>
public bool IsIgnore
{
get { return _IsIgnore; }
}
public bool IsIgnore => _IsIgnore;
}
@@ -29,10 +29,7 @@ namespace OSS.Common.Extention.Volidate
/// <summary>
/// 错误信息
/// </summary>
public string ErrorMessage
{
get { return errorMessage; }
}
public string ErrorMessage => errorMessage;
}
/// <summary>
/// 必填验证属性
@@ -63,6 +60,12 @@ namespace OSS.Common.Extention.Volidate
public class OsNumberAttribute : BaseValidateAttribute
{
private long min, max;
/// <summary>
///
/// </summary>
/// <param name="_min"></param>
/// <param name="_max"></param>
/// <param name="_errorMessage"></param>
public OsNumberAttribute(long _min=long.MinValue, long _max=long.MaxValue, string _errorMessage=null)
{
min = _min;
@@ -93,7 +93,9 @@ namespace OSS.Common.Extention.Volidate
}
/// <summary>
///
/// </summary>
public static class TypeHelper
{
#if NETFW
+2
View File
@@ -38,6 +38,8 @@
Task扩展方法,如: Task.WaitResult() 等
UrlCode扩展方法,如 "name=n&code=1".UrlEncode();
枚举扩展方法,如: typeof(Enum).ToEnumDirs();
xml序列化扩展方法, 如: "<xml><name>test</name></xml>".DeserializeXml<Type>();
还有自定义验证属性像 OSRequiredAttribute等,可以使用IsOsValidate来验证是否验证通过。
###Modules