comparison Source/DataAccess/ScalarSourceAttribute.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.Data;
4
5 namespace BLToolkit.DataAccess
6 {
7 [AttributeUsage(AttributeTargets.Method)]
8 public class ScalarSourceAttribute : ScalarFieldNameAttribute
9 {
10 public ScalarSourceAttribute(ScalarSourceType scalarType)
11 : base(0)
12 {
13 _scalarType = scalarType;
14 }
15
16 public ScalarSourceAttribute(ScalarSourceType scalarType, string name)
17 : base(name)
18 {
19 _scalarType = scalarType;
20 }
21
22 public ScalarSourceAttribute(ScalarSourceType scalarType, int index)
23 : base(index)
24 {
25 _scalarType = scalarType;
26 }
27
28 private ScalarSourceType _scalarType;
29 public ScalarSourceType ScalarType
30 {
31 get { return _scalarType; }
32 set { _scalarType = value; }
33 }
34 }
35 }