0
|
1 using System;
|
|
2
|
|
3 namespace BLToolkit.Data.Sql.SqlProvider
|
|
4 {
|
|
5 [AttributeUsageAttribute(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = true)]
|
|
6 public class SequenceNameAttribute : Attribute
|
|
7 {
|
|
8 public SequenceNameAttribute(string providerName, string sequenceName)
|
|
9 {
|
|
10 ProviderName = providerName;
|
|
11 SequenceName = sequenceName;
|
|
12 }
|
|
13
|
|
14 public SequenceNameAttribute(string sequenceName)
|
|
15 {
|
|
16 SequenceName = sequenceName;
|
|
17 }
|
|
18
|
|
19 private string _providerName; public string ProviderName { get { return _providerName; } set { _providerName = value; } }
|
|
20 private string _sequenceName; public string SequenceName { get { return _sequenceName; } set { _sequenceName = value; } }
|
|
21 }
|
|
22 }
|