示例#1
0
		public SqlTableSource(ISqlTableSource source, string? alias, params SqlJoinedTable[]? joins)
		{
			Source = source ?? throw new ArgumentNullException(nameof(source));
			_alias = alias;

			if (joins != null)
				Joins.AddRange(joins);
		}
示例#2
0
        public SqlTableSource(ISqlTableSource source, string alias, IEnumerable <SqlJoinedTable> joins)
        {
            Source = source ?? throw new ArgumentNullException(nameof(source));
            _alias = alias;

            if (joins != null)
            {
                Joins.AddRange(joins);
            }
        }
示例#3
0
		public SqlTableSource(ISqlTableSource source, string? alias, IEnumerable<SqlJoinedTable> joins, IEnumerable<ISqlExpression[]>? uniqueKeys)
		{
			Source = source ?? throw new ArgumentNullException(nameof(source));
			_alias = alias;

			if (joins != null)
				Joins.AddRange(joins);

			if (uniqueKeys != null)
				UniqueKeys.AddRange(uniqueKeys);
		}
示例#4
0
        public SqlTable(SqlTable table, IEnumerable <SqlField> fields, IEnumerable <Join> joins)
            : this(table.MappingSchema)
        {
            _alias        = table._alias;
            _database     = table._database;
            _owner        = table._owner;
            _name         = table._name;
            _physicalName = table._physicalName;
            _objectType   = table._objectType;

            Fields.AddRange(fields);
            Joins.AddRange(joins);
        }
示例#5
0
        public SqlTable(SqlTable table, IEnumerable <SqlField> fields, IEnumerable <Join> joins, ISqlExpression[] tableArguments) : this()
        {
            Alias               = table.Alias;
            Database            = table.Database;
            Owner               = table.Owner;
            Name                = table.Name;
            PhysicalName        = table.PhysicalName;
            ObjectType          = table.ObjectType;
            _sequenceAttributes = table._sequenceAttributes;

            Fields.AddRange(fields);
            Joins.AddRange(joins);

            SqlTableType   = table.SqlTableType;
            TableArguments = tableArguments;
        }