28 lines
572 B
C#
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;
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|
|
|