摘要:
using System;
using System.ComponentModel.DataAnnotations;
using System.Data.Entity;
namespace Zwj.TEMS.Base
{
///
/// 唯一性标识
///
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
public class UniqueAttribute : ValidationAttribute
{
protected string tableName;
protected string filedName;
public UniqueAttribute(string tableName, string filedName)
{
this.tab 阅读全文
posted @ 2015-04-01 17:42
梦在旅途
阅读(2794)
评论(0)
推荐(1)
浙公网安备 33010602011771号