annotate Source/Mapping/AssociationAttribute.cs @ 4:f757da6161a1

!bug 100 + 2h fixed gregression
author cin
date Sun, 24 Aug 2014 17:57:42 +0400
parents f990fcb411a9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
1 using System;
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
2
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
3 namespace BLToolkit.Mapping
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
4 {
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
5 [AttributeUsage(AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Field, AllowMultiple=false)]
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
6 public class AssociationAttribute : Attribute
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
7 {
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
8 private string _thisKey; public string ThisKey { get { return _thisKey; } set { _thisKey = value; } }
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
9 private string _otherKey; public string OtherKey { get { return _otherKey; } set { _otherKey = value; } }
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
10 private string _storage; public string Storage { get { return _storage; } set { _storage = value; } }
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
11 private bool _canBeNull = true; public bool CanBeNull { get { return _canBeNull; } set { _canBeNull = value; } }
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
12
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
13 public string[] GetThisKeys () { return Association.ParseKeys(_thisKey); }
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
14 public string[] GetOtherKeys() { return Association.ParseKeys(_otherKey); }
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
15 }
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
16 }