0
|
1 using System;
|
|
2
|
|
3 namespace BLToolkit.DataAccess
|
|
4 {
|
|
5 [JetBrains.Annotations.BaseTypeRequired(typeof(DataAccessor))]
|
|
6 [AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface, AllowMultiple = true)]
|
|
7 public class ActualTypeAttribute : Attribute
|
|
8 {
|
|
9 public ActualTypeAttribute(Type baseType, Type actualType)
|
|
10 {
|
|
11 _baseType = baseType;
|
|
12 _actualType = actualType;
|
|
13 }
|
|
14
|
|
15 private readonly Type _baseType;
|
|
16 public Type BaseType
|
|
17 {
|
|
18 get { return _baseType; }
|
|
19 }
|
|
20
|
|
21 private readonly Type _actualType;
|
|
22 public Type ActualType
|
|
23 {
|
|
24 get { return _actualType; }
|
|
25 }
|
|
26 }
|
|
27 }
|