摘要:
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 阅读全文