Mercurial > pub > bltoolkit
annotate Source/DataAccess/PrimaryKeyAttribute.cs @ 5:f7d63a092920
Исправлено условие Where в тех случаях, когда репозитарий не является генериком
author | cin |
---|---|
date | Tue, 10 Mar 2015 16:02:11 +0300 |
parents | f990fcb411a9 |
children |
rev | line source |
---|---|
0 | 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 } |