public virtual SchemaReader.TABLE_CONSTRAINTSDataTable GetDataByTableName(string tableName) { this.Adapter.SelectCommand = this.CommandCollection[1]; if ((tableName == null)) { this.Adapter.SelectCommand.Parameters[0].Value = global::System.DBNull.Value; } else { this.Adapter.SelectCommand.Parameters[0].Value = ((string)(tableName)); } SchemaReader.TABLE_CONSTRAINTSDataTable dataTable = new SchemaReader.TABLE_CONSTRAINTSDataTable(); this.Adapter.Fill(dataTable); return dataTable; }
public virtual SchemaReader.TABLE_CONSTRAINTSDataTable GetDataContraints() { this.Adapter.SelectCommand = this.CommandCollection[0]; SchemaReader.TABLE_CONSTRAINTSDataTable dataTable = new SchemaReader.TABLE_CONSTRAINTSDataTable(); this.Adapter.Fill(dataTable); return dataTable; }