Mercurial > pub > bltoolkit
annotate Source/DataAccess/PrimaryKeyAttribute.cs @ 6:11b6da379593
Исправлена странная ошибка при использовании OfType<...>().Where(...)
author | cin |
---|---|
date | Mon, 05 Dec 2016 05:50:52 +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 } |