Пример #1
0
        public static IEdmModel OperationsWithNamedStructuralDataTypeSchemasEdm()
        {
            var model = ModelBuilder.TaupoDefaultModelEdm() as EdmModel;

            foreach (var operation in OperationTestModelBuilder.EdmOperationsWithNamedStructuralDataType(model))
            {
                model.AddElement(operation);
            }

            return(model);
        }
Пример #2
0
        public static IEdmModel OperationsWithReturnTypeOfPrimitiveDataTypeSchemasEdm(EdmVersion edmVersion)
        {
            var model = new EdmModel();

            foreach (var function in OperationTestModelBuilder.EdmFunctionsWithReturnTypePrimitiveDataType(edmVersion))
            {
                model.AddElement(function);
            }

            return(model);
        }
Пример #3
0
        public static IEdmModel OperationsWith2ParametersSchemasEdm(EdmVersion edmVersion)
        {
            var model = new EdmModel();

            foreach (var operation in OperationTestModelBuilder.EdmOperationsWith2Parameters(edmVersion))
            {
                model.AddElement(operation);
            }

            return(model);
        }
Пример #4
0
        public static IEdmModel OperationStandAloneSchemasEdm()
        {
            var model = new EdmModel();

            foreach (var edmFunction in OperationTestModelBuilder.EdmFunctions())
            {
                model.AddElement(edmFunction);
            }

            return(model);
        }