示例#1
0
		public OpenxmlColumn(ColumnName columnName, TypeName columnType, StringLiteral columnPattern) {
			Debug.Assert(columnName != null);
			Debug.Assert(columnType != null);
			this.columnName = columnName;
			this.columnType = columnType;
			this.columnPattern = columnPattern;
		}
		public ConvertFunction(TypeName typeName, Expression valueExpression, IntegerLiteral style) {
			Debug.Assert(typeName != null);
			Debug.Assert(valueExpression != null);
			this.typeName = typeName;
			this.valueExpression = valueExpression;
			this.style = style;
		}
		public CreateTypeFromStatement(Qualified<SchemaName, TypeName> typeName, TypeName systemTypeName, TypeConstraintToken constraint): base(typeName) {
			if (!systemTypeName.IsBuiltinType) {
				throw new ArgumentException("Derived types can only be created from system types", "systemTypeName");
			}
			this.systemTypeName = systemTypeName;
			this.constraint = constraint;
		}
		public IdentityFunction(TypeName typeName, IntegerLiteral seed, IntegerLiteral increment) {
			Debug.Assert(typeName != null);
			this.typeName = typeName;
			this.seed = seed;
			this.increment = increment;
		}
		public IdentityFunction(TypeName typeName): this(typeName, null, null) {}
示例#6
0
		public CastFunction(Expression expression, TypeName typeName) {
			Debug.Assert(expression != null);
			Debug.Assert(typeName != null);
			this.expression = expression;
			this.typeName = typeName;
		}
示例#7
0
		public OpenxmlColumn(ColumnName columnName, TypeName columnType): this(columnName, columnType, null) {}
		public ConvertFunction(TypeName typeName, Expression valueExpression): this(typeName, valueExpression, null) {}