public Sta() { XmlService x = new XmlService(); String connectionString = x.GetConnectionString(); this.SecoundConstructor(connectionString); }
public Sta(int conIndex) { XmlConfigService xmlc = new XmlConfigService(); XmlService x = new XmlService(); string conStr = x.GetConnectionString(conIndex); //this.url = conStr; //if (this.url.ToLower().IndexOf("Provider=MSDAORA;".ToLower()) >= 0) //{ // this.dbType = DbType.OleDb; //} //else if (this.url.ToLower().IndexOf("charset=utf8;".ToLower()) >= 0) //{ // this.dbType = DbType.MySQL; //} //else //{ // this.dbType = DbType.Oracle; //} this.SecoundConstructor(conStr); }