mirror of
https://github.com/KevinWG/OSS.Common.git
synced 2026-10-21 17:13:19 +08:00
添加注释
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user