[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;
}
}
}