ke_junjie
2025-06-04 101c57ec4c28bc3c36e49c50a926e9e7c0dd0247
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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;
        }
    }
}