コード例 #1
0
 private ColumnExpression(string name, TableExpressionBase table, Type type, RelationalTypeMapping typeMapping, bool nullable)
     : base(type, typeMapping)
 {
     Name     = name;
     Table    = table;
     Nullable = nullable;
 }
コード例 #2
0
        private ColumnExpression(string name, TableExpressionBase table, Type type, RelationalTypeMapping typeMapping, bool nullable)
            : base(type, typeMapping)
        {
            Check.NotEmpty(name, nameof(name));
            Check.NotNull(table, nameof(table));
            Check.NotEmpty(table.Alias, $"{nameof(table)}.{nameof(table.Alias)}");

            Name     = name;
            Table    = table;
            Nullable = nullable;
        }
コード例 #3
0
 public InnerJoinExpression Update(TableExpressionBase table, SqlExpression joinPredicate)
 => table != Table || joinPredicate != JoinPredicate
         ? new InnerJoinExpression(table, joinPredicate)
         : this;
コード例 #4
0
 public InnerJoinExpression(TableExpressionBase table, SqlExpression joinPredicate)
     : base(table, joinPredicate)
 {
 }
コード例 #5
0
 internal ColumnExpression(ProjectionExpression subqueryProjection, TableExpressionBase table, bool nullable)
     : this(subqueryProjection.Alias, table, subqueryProjection.Type, subqueryProjection.Expression.TypeMapping, nullable)
 {
 }
コード例 #6
0
 internal ColumnExpression(IProperty property, TableExpressionBase table, bool nullable)
     : this(property.Relational().ColumnName, table, property.ClrType, property.FindRelationalMapping(),
            nullable || property.IsNullable || property.DeclaringEntityType.BaseType != null)
 {
 }
コード例 #7
0
 public LeftJoinExpression Update(TableExpressionBase table, SqlExpression joinPredicate)
 {
     return(table != Table || joinPredicate != JoinPredicate
         ? new LeftJoinExpression(table, joinPredicate)
         : this);
 }
コード例 #8
0
 protected PredicateJoinExpressionBase(TableExpressionBase table, SqlExpression joinPredicate)
     : base(table)
 {
     JoinPredicate = joinPredicate;
 }
コード例 #9
0
 protected JoinExpressionBase(TableExpressionBase table)
     : base(null)
 {
     Table = table;
 }
コード例 #10
0
 public CrossJoinExpression Update(TableExpressionBase table)
 => table != Table
         ? new CrossJoinExpression(table)
         : this;
コード例 #11
0
 public CrossJoinExpression(TableExpressionBase table)
     : base(table)
 {
 }