diff --git a/CHANGELOG.md b/CHANGELOG.md index 008f67f..929a793 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ These are the changes to each version that has been released on the official [Visual Studio extension gallery](https://marketplace.visualstudio.com/items?itemName=unchase.UnchaseODataConnectedService). +## v0.4.4 `(2019-04-16)` + +- [x] Added minor fix: in `SimpleOData` generation methods added `@`-symbol before the endpoint uri in `new ODataClient(@"")`; bounded parameter type was fixed + ## v0.4.3 `(2019-04-14)` - [x] Changed [`LICENSE`](LICENSE.md): [MIT License](https://mit-license.org) to [Apache 2.0 License](http://www.apache.org/licenses/LICENSE-2.0). diff --git a/README.md b/README.md index b2e070e..a7e356b 100644 --- a/README.md +++ b/README.md @@ -67,4 +67,4 @@ If you like what I am doing and you would like to thank me, please consider [buy ---------- -Copyright © 2019 [Nikolay Chebotov (**Unchase**)](https://github.com/unchase) - Provided under the [MIT License](LICENSE.md). +Copyright © 2019 [Nikolay Chebotov (**Unchase**)](https://github.com/unchase) - Provided under the [Apache License 2.0](LICENSE.md). diff --git a/src/Unchase.OData.ConnectedService/Common/FunctionImportsHelper.cs b/src/Unchase.OData.ConnectedService/Common/FunctionImportsHelper.cs index 4115821..b263efc 100644 --- a/src/Unchase.OData.ConnectedService/Common/FunctionImportsHelper.cs +++ b/src/Unchase.OData.ConnectedService/Common/FunctionImportsHelper.cs @@ -178,7 +178,7 @@ private static string GetFunctionMethodRegionWithSimpleOdataClient(FunctionImpor ? "\t\t\t\t\treturn validationResult;" : $"\t\t\t\t\treturn (validationResult, default({realFunctionImportReturnType}));"); functionRegion.AppendLine(); - functionRegion.AppendLine($"\t\t\t\tvar client = new ODataClient(\"{functionImportModel.EndpointUri}\");"); + functionRegion.AppendLine($"\t\t\t\tvar client = new ODataClient(@\"{functionImportModel.EndpointUri}\");"); functionRegion.AppendLine(functionImportModel.FunctionReturnType == null ? "\t\t\t\tawait client" : "\t\t\t\tvar result = await client"); @@ -266,7 +266,12 @@ private static string GetModelRegion(string modelClassName, List