优化resultmo

This commit is contained in:
Kevin
2017-01-12 17:09:00 +08:00
parent b8514770ec
commit 41f2700a77
6 changed files with 70 additions and 18 deletions
+17 -1
View File
@@ -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
{
/// <summary>
///
/// </summary>
public static class ConvertExtention
{
#region DataReader转化部分
@@ -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
+8 -4
View File
@@ -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
+14 -1
View File
@@ -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
{
@@ -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
{
/// <summary>
///
/// </summary>
[AttributeUsage(AttributeTargets.All, AllowMultiple = true, Inherited = true)]
public abstract class BaseValidateAttribute : Attribute
{
@@ -37,6 +39,10 @@ namespace OS.Common.Extention
/// </summary>
public class OSRequiredAttribute : BaseValidateAttribute
{
/// <summary>
///
/// </summary>
/// <param name="_errorMessage"></param>
public OSRequiredAttribute(string _errorMessage=null)
{
errorMessage = _errorMessage;
@@ -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