Files
lserp_cs_5.0/插件库/Zhaizj.Framework/ORM/Attribute/TableAttribute.cs
T
2026-07-10 15:25:05 +08:00

28 lines
572 B
C#

using System;
namespace Zhaizj.Framework.ORM {
/// <summary>
/// 表名称批注,用于标识对象在数据库中对应的表名称
/// </summary>
[Serializable, AttributeUsage( AttributeTargets.Class )]
public class TableAttribute : Attribute {
private String _tableName;
public TableAttribute( String tableName ) {
_tableName = tableName;
}
public String TableName {
get {
return _tableName;
}
set {
_tableName = value;
}
}
}
}