public static string QualifiedName(this Table table) { if (table == null) { throw new ArgumentNullException("table"); } return(ScriptUtility.MakeSqlBracket(table.Schema) + '.' + ScriptUtility.MakeSqlBracket(table.Name)); }
public TableIdentifier(string schemaName, string tableName) { if (String.IsNullOrEmpty(schemaName)) { throw new ArgumentNullException("schemaName"); } if (String.IsNullOrEmpty(tableName)) { throw new ArgumentNullException("tableName"); } this.Schema = schemaName; this.Name = tableName; this.QualifiedName = ScriptUtility.MakeSqlBracket(schemaName) + '.' + ScriptUtility.MakeSqlBracket(tableName); }