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); } }
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); } }