[0] 自定义特性AttributeUsage

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Fxframe.BaseORMappers.Mapping
{
    [AttributeUsage(AttributeTargets.Class)]
    public class TableAttribute:Attribute
    {
        public string Name
        {
            get;
            set;
        }

        public TableAttribute() { }

        public TableAttribute(string name)
        {
            Name=Name;
        }
    }
}

posted on 2013-12-03 20:13  范兵  阅读(150)  评论(0编辑  收藏  举报

导航