/// <summary> /// Take the table offline so that data can be read from a local file instead of the database /// </summary> protected OfflineDataSet(String tableName, String schemaName, OfflineFormat streamFormat) { ApplicationAssert.Check(tableName != null || tableName.Length == 0, "Invalid Table name.", ApplicationAssert.LineNumber); ApplicationAssert.Check(schemaName != null || schemaName.Length == 0, "Invalid Schema name.", ApplicationAssert.LineNumber); _tableName = tableName; _fileName = "Offline_" + tableName; _schemaName = schemaName; _streamFormat = streamFormat; Constructor(); }
/// <summary> /// Take the table offline so that data can be read from a local file instead of the database /// </summary> protected OfflineDataSet(String tableName, String schemaName) { ApplicationAssert.Check(tableName != null || tableName.Length == 0, "Invalid Table name.", ApplicationAssert.LineNumber); ApplicationAssert.Check(schemaName != null || schemaName.Length == 0, "Invalid Schema name.", ApplicationAssert.LineNumber); _fileName = tableName; _fileName = "Offline_" + tableName; _schemaName = schemaName; // By default, use binary format so that any changes in row values are preserved _streamFormat = OfflineFormat.Binary; Constructor(); }