24 lines
495 B
C#
24 lines
495 B
C#
|
|
using System;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using System.Linq;
|
|||
|
|
using System.Text;
|
|||
|
|
|
|||
|
|
namespace WMS.Attirubte
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
/// 表的映射时,设计主键
|
|||
|
|
/// </summary>
|
|||
|
|
[System.AttributeUsage(System.AttributeTargets.Class |
|
|||
|
|
System.AttributeTargets.Struct)]
|
|||
|
|
|
|||
|
|
public class TableKeyAttribute : Attribute
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
/// 表的主键
|
|||
|
|
/// </summary>
|
|||
|
|
public string keyTable = string.Empty;
|
|||
|
|
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
}
|