예제 #1
0
        /// <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);
        }
예제 #2
0
 /// <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);
 }
예제 #3
0
 /// <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);
 }