view Source/DataAccess/TableNameAttribute.cs @ 4:f757da6161a1

!bug 100 + 2h fixed gregression
author cin
date Sun, 24 Aug 2014 17:57:42 +0400
parents f990fcb411a9
children
line wrap: on
line source

using System;

namespace BLToolkit.DataAccess
{
	[AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface)]
	public class TableNameAttribute : Attribute
	{
		public TableNameAttribute()
		{
		}

		public TableNameAttribute(string name)
		{
			_name = name;
		}

		public TableNameAttribute(string database, string name)
		{
			_database = database;
			_name     = name;
		}

		public TableNameAttribute(string database, string owner, string name)
		{
			_database = database;
			_owner    = owner;
			_name     = name;
		}

		private string _database; public virtual string Database { get { return _database; } set { _database = value; } }
		private string _owner;    public virtual string Owner    { get { return _owner;    } set { _owner = value;    } }
		private string _name;     public virtual string Name     { get { return _name;     } set { _name = value;     } }
	}
}