public String ToSqlString(FieldExpression field) { Mapping.Column column = _table.FindColumnByFieldName(field.Filed); if (column == null) { return(field.ToString()); } else { return(column.GetQuotedName(_factory.Dialect)); } }
/// <summary> /// Instantiates. /// </summary> /// <param name="propertyName">the name of the first property</param> /// <param name="otherPropertyName">the name of the second property</param> /// <param name="op">the operator</param> public PropertyExpression(String propertyName, String otherPropertyName, String op) { PropertyName = new FieldExpression(propertyName); OtherPropertyName = new FieldExpression(otherPropertyName); Op = op; }
/// <summary> /// Instantiates. /// </summary> /// <param name="propertyName">the name of the first property</param> /// <param name="otherPropertyName">the name of the second property</param> /// <param name="op">the operator</param> public PropertyExpression(String propertyName, String otherPropertyName, String op) { PropertyName = new FieldExpression(propertyName); OtherPropertyName = new FieldExpression(otherPropertyName); Op = op; }
public String ToSqlString(FieldExpression field) { Mapping.Column column = _table.FindColumnByFieldName(field.Filed); if (column == null) return field.ToString(); else return column.GetQuotedName(_factory.Dialect); }