using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Reflection;
|
using System.Text;
|
using System.Threading.Tasks;
|
|
namespace IWareDataAccess.Helper
|
{
|
public class AttributeHelper
|
{
|
/// <summary>
|
/// 获取特性【非数据库字段过滤属性】
|
/// </summary>
|
/// <typeparam name="T"></typeparam>
|
/// <param name="t"></param>
|
/// <param name="pro"></param>
|
/// <returns></returns>
|
public static object[] GetNoDbFilterAttributeByPro(PropertyInfo pro)
|
{
|
object[] Attributes = pro.GetCustomAttributes(typeof(NoDbFilterAttribute), false);
|
return Attributes;
|
}
|
}
|
}
|