Exemplo n.º 1
0
        public static string GetConStr(Type type, String KeyName)
        {
            var con = new ConSet()
            {
                type = type, ViewName = KeyName
            };

            if (table.ContainsKey(type))
            {
                return(table[type].ToString());
            }
            else
            {
                return(ConStr);
            }
        }
Exemplo n.º 2
0
        public static void RegSqlCon(Type type, string KeyName, String SqlCon)
        {
            var con = new ConSet()
            {
                type = type, ViewName = KeyName
            };

            if (table.ContainsKey(type))
            {
                table[type] = SqlCon;
            }
            else
            {
                table.Add(type, SqlCon);
            }
        }