Esempio n. 1
0
        public static string QualifiedName(this Table table)
        {
            if (table == null)
            {
                throw new ArgumentNullException("table");
            }

            return(ScriptUtility.MakeSqlBracket(table.Schema) + '.' + ScriptUtility.MakeSqlBracket(table.Name));
        }
Esempio n. 2
0
 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);
 }