Пример #1
0
 public String ToSqlString(FieldExpression field)
 {
     Mapping.Column column = _table.FindColumnByFieldName(field.Filed);
     if (column == null)
     {
         return(field.ToString());
     }
     else
     {
         return(column.GetQuotedName(_factory.Dialect));
     }
 }
Пример #2
0
 /// <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;
 }
Пример #3
0
 /// <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;
 }
Пример #4
0
 public String ToSqlString(FieldExpression field)
 {
     Mapping.Column column = _table.FindColumnByFieldName(field.Filed);
     if (column == null)
         return field.ToString();
     else
         return column.GetQuotedName(_factory.Dialect);
 }