Mercurial > pub > bltoolkit
comparison Source/DataAccess/PrimaryKeyAttribute.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 namespace BLToolkit.DataAccess | |
4 { | |
5 [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)] | |
6 public sealed class PrimaryKeyAttribute : Attribute | |
7 { | |
8 public PrimaryKeyAttribute() | |
9 { | |
10 _order = -1; | |
11 } | |
12 | |
13 public PrimaryKeyAttribute(int order) | |
14 { | |
15 _order = order; | |
16 } | |
17 | |
18 private readonly int _order; | |
19 public int Order | |
20 { | |
21 get { return _order; } | |
22 } | |
23 } | |
24 } |