Mercurial > pub > bltoolkit
annotate Source/DataAccess/ObjectTypeAttribute.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 [JetBrains.Annotations.BaseTypeRequired(typeof(DataAccessor))] | |
6 [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method)] | |
7 public class ObjectTypeAttribute : Attribute | |
8 { | |
9 public ObjectTypeAttribute(Type objectType) | |
10 { | |
11 _objectType = objectType; | |
12 } | |
13 | |
14 private readonly Type _objectType; | |
15 public Type ObjectType | |
16 { | |
17 get { return _objectType; } | |
18 } | |
19 } | |
20 } |