0
|
1 using System;
|
|
2
|
|
3 namespace BLToolkit.Mapping
|
|
4 {
|
|
5 [AttributeUsage(
|
|
6 AttributeTargets.Field | AttributeTargets.Property |
|
|
7 AttributeTargets.Class | AttributeTargets.Interface,
|
|
8 AllowMultiple=true)]
|
|
9 public class MapFieldAttribute : Attribute
|
|
10 {
|
|
11 public MapFieldAttribute()
|
|
12 {
|
|
13 }
|
|
14
|
|
15 public MapFieldAttribute(string mapName)
|
|
16 {
|
|
17 MapName = mapName;
|
|
18 }
|
|
19
|
|
20 public MapFieldAttribute(string mapName, string origName)
|
|
21 {
|
|
22 MapName = mapName;
|
|
23 OrigName = origName;
|
|
24 }
|
|
25
|
|
26 public string MapName { get; set; }
|
|
27 public string OrigName { get; set; }
|
|
28 public string Format { get; set; }
|
|
29 public string Storage { get; set; }
|
|
30 public bool IsInheritanceDiscriminator { get; set; }
|
|
31 }
|
|
32 }
|