public ExpressionColumnFunctionCalls(TableName tableName, ColumnName columnName, Sequence<NamedFunction> functions): base(functions.Item, functions.Next) {
			Debug.Assert(tableName != null);
			Debug.Assert(columnName != null);
			columnNameQualified = new Qualified<TableName, ColumnName>(tableName, columnName);
			Debug.Assert(!functions.Item.FunctionName.IsQualified);
			functions.Item.FunctionName.LockOverride();
		}
		private SourceRemoteTableRowset(string serverName, string databaseName, SchemaName schemaName, TableName tableName, RowsetAlias rowsetAlias): base(rowsetAlias) {
			Debug.Assert(tableName != null);
			if (!string.IsNullOrEmpty(serverName)) {
				this.serverName = new Identifier(serverName);
			}
			this.databaseName = new Identifier(databaseName);
			this.schemaName = schemaName;
			this.tableName = tableName;
		}
Esempio n. 3
0
 public void CompareToSmaller()
 {
     SqlName x = new TableName("xyz");
     SqlName y = new TableName("abc");
     Expect(x.CompareTo(y), GreaterThan(0));
 }
Esempio n. 4
0
 public void CompareToSimilar()
 {
     SqlName x = new TableName("abc");
     SqlName y = new CollationName("abc");
     Expect(x.CompareTo(y), GreaterThan(0));
 }
Esempio n. 5
0
 public void CompareToSelf()
 {
     SqlName x = new TableName("abc");
     Expect(x.CompareTo(x), EqualTo(0));
 }
Esempio n. 6
0
 public void CompareToNull()
 {
     SqlName x = new TableName("abc");
     Expect(x.CompareTo(null), GreaterThan(0));
 }
Esempio n. 7
0
 public void CompareToLarger()
 {
     SqlName x = new TableName("abc");
     SqlName y = new TableName("xyz");
     Expect(x.CompareTo(y), LessThan(0));
 }
		public SourceRemoteTableRowset(SchemaName serverName, TableName databaseName, SchemaName schemaName, TableName tableName, RowsetAlias rowsetAlias): this(serverName.Value, databaseName.Value, schemaName, tableName, rowsetAlias) {}
		public SourceTableColumnNodesRowset(SchemaName tableName, TableName columnName, NamedFunction functionCall, RowsetAlias rowsetAlias): this(new Qualified<SchemaName, TableName>(null, new TableName(tableName.Value)), new ColumnName(columnName.Value), functionCall, rowsetAlias) {
			tableNameQualified.LockOverride(); // TableName here is usually an alias to a table, so don't prefix this
		}
Esempio n. 10
0
 public void EqualsToSimilar()
 {
     SqlName x = new TableName("abc");
     SqlName y = new CollationName("abc");
     Expect(x.Equals(y), False);
 }
Esempio n. 11
0
 public void EqualsToSelf()
 {
     SqlName x = new TableName("abc");
     Expect(x.Equals(x), True);
 }
Esempio n. 12
0
 public void EqualsToNull()
 {
     SqlName x = new TableName("abc");
     Expect(x.Equals(null), False);
 }
Esempio n. 13
0
 public void EqualsToIdentical()
 {
     SqlName x = new TableName("abc");
     SqlName y = new TableName("abc");
     Expect(x.Equals(y), True);
 }
Esempio n. 14
0
 public void EqualsToEquivalent()
 {
     SqlName x = new TableName("abc");
     SqlName y = new TableName("ABC");
     Expect(x.Equals(y), True);
 }
Esempio n. 15
0
		public UpdateMethodItem(TableName tableName, ColumnName columnName, Sequence<NamedFunction> methods): this(null, new Qualified<SqlName, ColumnName>(tableName, columnName), methods) {}
Esempio n. 16
0
 public void EqualsToDifferent()
 {
     SqlName x = new TableName("abc");
     SqlName y = new TableName("xyz");
     Expect(x.Equals(y), False);
 }
Esempio n. 17
0
 public void CompareToEquivalent()
 {
     SqlName x = new TableName("abc");
     SqlName y = new TableName("ABC");
     Expect(x.CompareTo(y), EqualTo(0));
 }
Esempio n. 18
0
 public void CompareToIdentical()
 {
     SqlName x = new TableName("abc");
     SqlName y = new TableName("abc");
     Expect(x.CompareTo(y), EqualTo(0));
 }
		public ExpressionFunctionCalls(TableName schemaName, Sequence<NamedFunction> functions): this(functions.Item.QualifiedWith(schemaName), functions.Next) {}
		public SourceRemoteTableRowset(SchemaName databaseName, TableName schemaName, TableName tableName, RowsetAlias rowsetAlias): this(string.Empty, databaseName.Value, new SchemaName(schemaName.Value), tableName, rowsetAlias) {}