diff --git a/OS.Common/Extention/ConvertExtention.cs b/OS.Common/Extention/ConvertExtention.cs index d0a7abe..986b98e 100644 --- a/OS.Common/Extention/ConvertExtention.cs +++ b/OS.Common/Extention/ConvertExtention.cs @@ -1,9 +1,25 @@ -using System; +#region Copyright (C) 2014 OS系列开源项目 + +/* +   文件功能描述:验证属性attribute + +   创建人:王超 + 创建人Email:1985088337@qq.com + 创建日期:2014.08.25 + +   修改描述: +*/ + +#endregion +using System; using System.Collections.Generic; using System.Text; namespace OS.Common.Extention { + /// + /// + /// public static class ConvertExtention { #region DataReader转化部分 diff --git a/OS.Common/Extention/DTO/ColumnAliasAttribute.cs b/OS.Common/Extention/DTO/ColumnAliasAttribute.cs index 6b3e09e..669f373 100644 --- a/OS.Common/Extention/DTO/ColumnAliasAttribute.cs +++ b/OS.Common/Extention/DTO/ColumnAliasAttribute.cs @@ -1,4 +1,17 @@ -using System; +#region Copyright (C) 2014 OS系列开源项目 + +/* +   文件功能描述:验证属性attribute + +   创建人:王超 + 创建人Email:1985088337@qq.com + 创建日期:2014.08.25 + +   修改描述: +*/ + +#endregion +using System; using System.Reflection; namespace OS.Common.Extention.DTO diff --git a/OS.Common/Extention/DTO/DTOExtetion.cs b/OS.Common/Extention/DTO/DTOExtetion.cs index 6d1bcc1..2852bb8 100644 --- a/OS.Common/Extention/DTO/DTOExtetion.cs +++ b/OS.Common/Extention/DTO/DTOExtetion.cs @@ -6,15 +6,19 @@ using System.Linq; using System.Reflection; using OS.Common.Extention.Volidate; -/* -   文件功能描述:实体映射赋值 +#region Copyright (C) 2014 OS系列开源项目 + +/* +   文件功能描述:验证属性attribute    创建人:王超 -   创建人Email: + 创建人Email:1985088337@qq.com 创建日期:2014.08.25    修改描述: - */ +*/ + +#endregion namespace OS.Common.Extention.DTO diff --git a/OS.Common/Extention/DateTimeExtention.cs b/OS.Common/Extention/DateTimeExtention.cs index 60e4b60..7d5c124 100644 --- a/OS.Common/Extention/DateTimeExtention.cs +++ b/OS.Common/Extention/DateTimeExtention.cs @@ -1,4 +1,17 @@ -using System; +#region Copyright (C) 2014 OS系列开源项目 + +/* +   文件功能描述:验证属性attribute + +   创建人:王超 + 创建人Email:1985088337@qq.com + 创建日期:2014.08.25 + +   修改描述: +*/ + +#endregion +using System; namespace OS.Common.Extention { diff --git a/OS.Common/Extention/Volidate/VolidateAttributes.cs b/OS.Common/Extention/Volidate/VolidateAttributes.cs index 8cc2d64..a3c646b 100644 --- a/OS.Common/Extention/Volidate/VolidateAttributes.cs +++ b/OS.Common/Extention/Volidate/VolidateAttributes.cs @@ -1,23 +1,25 @@ using System; +#region Copyright (C) 2014 OS系列开源项目 -#region Copyright (C) 2014 北京金色世纪商旅网络科技股份有限公司 - -/* +/*    文件功能描述:验证属性attribute    创建人:王超 -   创建人Email:wangchao@jsj.com.cn + 创建人Email:1985088337@qq.com 创建日期:2014.08.25    修改描述: - */ +*/ #endregion -namespace OS.Common.Extention +namespace OS.Common.Extention.Volidate { + /// + /// + /// [AttributeUsage(AttributeTargets.All, AllowMultiple = true, Inherited = true)] public abstract class BaseValidateAttribute : Attribute { @@ -37,6 +39,10 @@ namespace OS.Common.Extention /// public class OSRequiredAttribute : BaseValidateAttribute { + /// + /// + /// + /// public OSRequiredAttribute(string _errorMessage=null) { errorMessage = _errorMessage; diff --git a/OS.Common/Extention/Volidate/VolidateExtention.cs b/OS.Common/Extention/Volidate/VolidateExtention.cs index c300590..97b724e 100644 --- a/OS.Common/Extention/Volidate/VolidateExtention.cs +++ b/OS.Common/Extention/Volidate/VolidateExtention.cs @@ -4,17 +4,17 @@ using System.Collections.Generic; using System.Linq; using System.Reflection; -#region Copyright (C) 2014 北京金色世纪商旅网络科技股份有限公司 +#region Copyright (C) 2014 OS系列开源项目 -/* -   文件功能描述:验证属性扩展方法 +/* +   文件功能描述:验证属性attribute    创建人:王超 -   创建人Email:wangchao@jsj.com.cn + 创建人Email:1985088337@qq.com 创建日期:2014.08.25    修改描述: - */ +*/ #endregion