Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
AssociationAttribute.cs
Go to the documentation of this file.
2
4
5[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
6[Obsolete("AssociationAttribute has been deprecated and is not supported.")]
7public sealed class AssociationAttribute : Attribute
8{
9 public string Name { get; }
10
11 public string ThisKey { get; }
12
13 public string OtherKey { get; }
14
15 public bool IsForeignKey { get; set; }
16
18
20
21 public AssociationAttribute(string name, string thisKey, string otherKey)
22 {
23 Name = name;
26 }
27
28 private static string[] GetKeyMembers(string key)
29 {
30 if (key == null)
31 {
32 return Array.Empty<string>();
33 }
34 return key.Replace(" ", string.Empty).Split(',');
35 }
36}
AssociationAttribute(string name, string thisKey, string otherKey)