0
|
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 }
|