Mercurial > pub > bltoolkit
comparison Source/DataAccess/CommandBehaviorAttribute.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 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 } |