/// <summary> /// load file xml /// </summary> public Connection() { Entities.SQL sql = new Entities.SQL(); Common.Utilities com = new Common.Utilities(); sql = com.ConnectionsName(); strConnect = "Data Source=" + sql.ServerName + ";User ID=" + sql.UserName + ";password="******";Initial Catalog=" + sql.DatabaseName; }
/// <summary> /// lay gia tri tu file xml /// </summary> public Connection() { Entities.SQL sql = new Entities.SQL(); Common.Utilities com = new Common.Utilities(); sql = com.ConnectionsName(); strConnect = "Data Source=" + sql.ServerName + ";User ID=" + sql.UserName + ";password="******";Initial Catalog=" + sql.DatabaseName; }