using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Linq.Expressions; namespace facebook.Linq { internal abstract class SqlExpression : SqlNode { // Fields private Type clrType; // Methods internal SqlExpression(SqlNodeType nodeType, Type clrType, Expression sourceExpression) : base(nodeType, sourceExpression) { this.clrType = clrType; } internal void SetClrType(Type type) { this.clrType = type; } // Properties internal Type ClrType { get { return this.clrType; } } internal bool IsConstantColumn { get { //if (base.NodeType == SqlNodeType.Column) //{ // SqlColumn column = (SqlColumn)this; // if (column.Expression != null) // { // return column.Expression.IsConstantColumn; // } //} //else //{ // if (base.NodeType == SqlNodeType.ColumnRef) // { // return ((SqlColumnRef)this).Column.IsConstantColumn; // } // if (base.NodeType == SqlNodeType.OptionalValue) // { // return ((SqlOptionalValue)this).Value.IsConstantColumn; // } // if ((base.NodeType == SqlNodeType.Value) || (base.NodeType == SqlNodeType.Parameter)) // { // return true; // } //} //return false; return false; } } internal abstract ProviderType SqlType { get; } } }
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.
This article, along with any associated source code and files, is licensed under The Microsoft Public License (Ms-PL)