comparison Source/Mapping/MapFieldAttribute.cs @ 0:f990fcb411a9

Копия текущей версии из github
author cin
date Thu, 27 Mar 2014 21:46:09 +0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:f990fcb411a9
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 }