public void Add(IEdmExpression expression)
 {
     if (!_initialized)
     {
         _initialized = true;
         var entityValidationRoot = new EdmLabeledExpression(Key,
                                                             new EdmCollectionExpression(ChildExpressions));
         Root.ChildExpressions.Add(entityValidationRoot);
     }
     ChildExpressions.Add(expression);
 }
Example #2
0
        internal BinaryColumn(BinaryExpression expr, string columnName)
            : this(columnName)
        {
            if (ReferenceEquals(expr, null))
            {
                throw new ArgumentNullException("expr");
            }

            Sql = expr.Sql;
            if (expr.ChildExpressions != null)
            {
                ChildExpressions.AddRange(expr.ChildExpressions);
            }
        }
Example #3
0
        internal StringColumn(StringExpression expr, string columnName, bool isUnicode)
            : this(columnName, isUnicode)
        {
            if (ReferenceEquals(expr, null))
            {
                throw new ArgumentNullException("expr");
            }

            Sql = expr.Sql;
            if (expr.ChildExpressions != null)
            {
                ChildExpressions.AddRange(expr.ChildExpressions);
            }
        }