/// <summary> /// Add a database link /// </summary> /// <param name="table"></param> /// <param name="link"></param> /// <param name="condition"></param> public void Add(String table, DbLinks link, LinkCondition condition = null) { Dictionary <DbLinks, LinkCondition> linker = new Dictionary <DbLinks, LinkCondition>(); linker.Add(link, condition); this.links.Add(table, linker); }
/// <summary> /// Add a database link /// </summary> /// <param name="table"></param> /// <param name="link"></param> /// <param name="condition"></param> public void AddDbLink(String table, DbLinks link, LinkCondition condition = null) { this.dbTablesLinks.Add(table, link, condition); }
/// <summary> /// Constructor /// </summary> /// <param name="table"></param> /// <param name="link"></param> /// <param name="condition"></param> public DbTablesLinks(String table, DbLinks link, LinkCondition condition = null) { this.links = new Dictionary <String, Dictionary <DbLinks, LinkCondition> >(); this.Add(table, link, condition); }