0
|
1 using System;
|
|
2
|
|
3 using BLToolkit.Common;
|
|
4
|
|
5 namespace BLToolkit.DataAccess
|
|
6 {
|
|
7 [AttributeUsage(AttributeTargets.Method)]
|
|
8 public class ScalarFieldNameAttribute : Attribute
|
|
9 {
|
|
10 public ScalarFieldNameAttribute(string name)
|
|
11 {
|
|
12 _nameOrIndex = name;
|
|
13 }
|
|
14
|
|
15 public ScalarFieldNameAttribute(int index)
|
|
16 {
|
|
17 _nameOrIndex = index;
|
|
18 }
|
|
19
|
|
20 private NameOrIndexParameter _nameOrIndex;
|
|
21 public NameOrIndexParameter NameOrIndex
|
|
22 {
|
|
23 get { return _nameOrIndex; }
|
|
24 set { _nameOrIndex = value; }
|
|
25 }
|
|
26 }
|
|
27 }
|