예제 #1
0
 public BinaryExpression ToEqualExpression(object obj, TableExpression table = null)
 {
     var value = GetValue(obj);
     return Expression.MakeBinary(ExpressionType.Equal, ToColumnExpression(table), Expression.Constant(value));
 }
예제 #2
0
 public ColumnExpression(string columnName, TableExpression table, Type type)
     : base(ExpressionType.Constant, type)
 {
     ColumnName = new ObjectNameExpression(columnName);
     Table = table;
 }
예제 #3
0
 public ColumnExpression ToColumnExpression(TableExpression table = null, Type type = null)
 {
     if (type == null)
         type = PropertyName == null ? typeof (Type) : DeclaringTypes[0].GetProperty(PropertyName).PropertyType;
     return new ColumnExpression(ColumnName, table, type);
 }
 public CreateIndexExpression(string name, TableExpression table)
 {
     Name = name;
     Table = table;
 }
예제 #5
0
 public ColumnExpression(string columnName, TableExpression table, Type type) : base(ExpressionType.Constant, type)
 {
     ColumnName = new ObjectNameExpression(columnName);
     Table      = table;
 }
예제 #6
0
 public DropTableExpression(TableExpression table)
 {
     Table = table;
 }
 public CreateTableExpression(TableExpression table)
 {
     Table = table;
 }
예제 #8
0
 public AlterTableExpression(TableExpression table)
     : base(table)
 {
 }
예제 #9
0
 public AlterTableExpression(TableExpression table) : base(table)
 {
 }
예제 #10
0
 public JoinExpression(JoinType joinType, TableExpression table = null)
 {
     JoinType = joinType;
     Table = table;
 }
예제 #11
0
 public DropTableExpression(TableExpression table)
 {
     Table = table;
 }
예제 #12
0
 public JoinExpression(JoinType joinType, TableExpression table = null)
 {
     JoinType = joinType;
     Table    = table;
 }
예제 #13
0
 protected virtual Expression VisitTable(TableExpression node)
 {
     var pattern = _useAliases ? "{0} {1}" : "{0}";
     Append(string.Format(pattern, node.Table.FullNameWithBrackets, node.Alias));
     return node;
 }
예제 #14
0
 public CreateIndexExpression(string name, TableExpression table)
 {
     Name  = name;
     Table = table;
 }