unchase / Unchase.Odata.Connectedservice

:scroll: A Visual Studio extension for connecting to OData services with generating client-side C# proxy-classes
Apache License 2.0
44 stars 13 forks source link

OData-Functions are generated wrong for VB.NET (ODataT4CodeGenerator) #49

Closed Bruno-Podetti closed 3 years ago

Bruno-Podetti commented 3 years ago

OData-Functions are wrong generated for VB.NET. You need to remove the slash before function name.

You need to change those lines (Remove / ) and then it will works right. (C#-Code is generated fine)

Line 6874 in ODataT4CodeGenerator.cs

this.Write(")\r\n            Return Me.CreateFunctionQuery(Of ");
this.Write(this.ToStringHelper.ToStringWithCulture(returnTypeName));
this.Write(")(\"\", \"");

Line 6935 in ODataT4CodeGenerator.cs

this.Write("Me.CreateFunctionQuerySingle(");
this.Write(this.ToStringHelper.ToStringWithCulture("Of " + returnTypeName));
this.Write(")(\"\", \"");