0
|
1 using System;
|
|
2 using System.Data;
|
|
3
|
|
4 namespace BLToolkit.DataAccess
|
|
5 {
|
|
6 [AttributeUsage(AttributeTargets.Method)]
|
|
7 public class CommandBehaviorAttribute : Attribute
|
|
8 {
|
|
9 public CommandBehaviorAttribute()
|
|
10 {
|
|
11 _commandBehavior = CommandBehavior.Default;
|
|
12 }
|
|
13
|
|
14 public CommandBehaviorAttribute(CommandBehavior commandBehavior)
|
|
15 {
|
|
16 _commandBehavior = commandBehavior;
|
|
17 }
|
|
18
|
|
19 private CommandBehavior _commandBehavior;
|
|
20 public CommandBehavior CommandBehavior
|
|
21 {
|
|
22 get { return _commandBehavior; }
|
|
23 set { _commandBehavior = value; }
|
|
24 }
|
|
25 }
|
|
26 }
|