Пример #1
0
        private LegacyCommandTrees.DbNewInstanceExpression CreateNewCollectionInstance(DbNewInstanceExpression inputExpression)
        {
            Debug.Assert(inputExpression != null, "inputExpression != null");
            Debug.Assert(
                inputExpression.ResultType.EdmType.BuiltInTypeKind == BuiltInTypeKind.CollectionType,
                "Collection type expected");

            return(LegacyExpressionBuilder.NewCollection(inputExpression.Arguments.Select(a => a.Accept(this))));
        }