|
using System;
using System.Collections.Generic;
using System.Text;
namespace XPeriment.Persistence.PersistentObjects
{
public class ForaignKey:Attribute
{
private Dictionary<string,string> foraignkeys = new Dictionary<string,string>();
public Dictionary<string, string> ForaignKeys
{
get
{
return foraignkeys;
}
set
{
foraignkeys = value;
}
}
public ForaignKey(params string[] keyFields)
{
foreach (string k in keyFields)
{
string[] mapping = k.Split(':');
foraignkeys.Add(mapping[0], mapping[1]);
}
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.