public FProbDatabaseBLL(string path, FProbDatabaseBLL probDatabase) { // Lấy đường dẫn cho CSDL this.dbPath = path; this.dbName = ""; for (int i = path.Length - 1; i >= 0; i--) { if (path[i] == '\\') { break; } else { this.dbName = path[i] + dbName; } } // Đặt chuỗi kết nối this.ConnectString = "Data Source=" + dbPath + ";Version=3;"; this.dbName = CutExtension(dbName); this.dataSet = probDatabase.dataSet; this.fproRelations = probDatabase.fproRelations; this.fproQueries = probDatabase.fproQueries; this.fproSchemas = probDatabase.fproSchemas; }
public FProbDatabaseBLL(FProbDatabaseBLL probDatabase) { this.dbPath = probDatabase.dbPath; this.dbName = probDatabase.dbName; this.connectString = probDatabase.connectString; this.dataSet = probDatabase.dataSet; this.fproRelations = probDatabase.fproRelations; this.fproQueries = probDatabase.fproQueries; this.fproSchemas = probDatabase.fproSchemas; }