comparison Source/DataAccess/ScalarFieldNameAttribute.cs @ 0:f990fcb411a9

Копия текущей версии из github
author cin
date Thu, 27 Mar 2014 21:46:09 +0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:f990fcb411a9
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 }