view Source/Data/Sql/SqlProvider/SequenceNameAttribute.cs @ 1:8f65451dc28f

Исправлена проблема с фабрикой и выборкой нескольких объектов в linq выражении
author cin
date Fri, 28 Mar 2014 01:04:56 +0400
parents f990fcb411a9
children
line wrap: on
line source

using System;

namespace BLToolkit.Data.Sql.SqlProvider
{
	[AttributeUsageAttribute(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = true)]
	public class SequenceNameAttribute : Attribute
	{
		public SequenceNameAttribute(string providerName, string sequenceName)
		{
			ProviderName = providerName;
			SequenceName = sequenceName;
		}

		public SequenceNameAttribute(string sequenceName)
		{
			SequenceName = sequenceName;
		}

		private string _providerName; public string ProviderName { get { return _providerName; } set { _providerName = value; } }
		private string _sequenceName; public string SequenceName { get { return _sequenceName; } set { _sequenceName = value; } }
	}
}