Skip to content

Commit 545439f

Browse files
Updated request builder interfaces to inherit from common interface
Added IBaseRequestBuilder to consumers of IRequestBuilder.Base Applied <auto-generated/> comment tag to all generated c# files. Added comments to all complex types class definitions.
1 parent d1fd61e commit 545439f

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

Templates/CSharp/Base/IRequestBuilder.Base.template.tt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public string GetInterfaceDefinition(string interfaceName)
4040
stringBuilder.Append(Environment.NewLine);
4141
stringBuilder.Append(" /// </summary>");
4242
stringBuilder.Append(Environment.NewLine);
43-
stringBuilder.AppendFormat(" public partial interface I{0}", interfaceName);
43+
stringBuilder.AppendFormat(" public partial interface I{0} : IBaseRequestBuilder", interfaceName);
4444

4545
return stringBuilder.ToString();
4646
}

Templates/CSharp/Base/SharedCSharp.template.tt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ bool logTemplateSrc = true;
1111
<#=writer.WriteHeader()#>
1212

1313
// **NOTE** This file was generated by a tool and any changes will be overwritten.
14+
// <auto-generated/>
1415

1516
<# if (logTemplateSrc) { #>
1617
// Template Source: <#= TemplateName(host.TemplateFile) #>

Templates/CSharp/Model/ComplexType.cs.tt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,14 @@ namespace <#=complex.Namespace.GetNamespaceName()#>
4848
// to disambiguate the type of the descendant class being sent.
4949
if (complex.IsBaseAbstractAndReferencedAsPropertyType() && !complex.IsAbstract)
5050
{
51-
#> public <#=complexTypeName#>()
51+
#> /// <summary>
52+
/// Initializes a new instance of the <see cref="<#=complexTypeName#>"/> class.
53+
/// </summary>
54+
public <#=complexTypeName#>()
5255
{
5356
this.ODataType = "<#=complex.FullName#>";
54-
}<#
57+
}
58+
<#
5559
}
5660
foreach(var property in complex.Properties)
5761
{

Templates/CSharp/Model/EnumType.cs.tt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ namespace <#=enumT.Namespace.GetNamespaceName()#>
3030
#>
3131

3232
/// <summary>
33-
/// <#=emumMember.Name.SplitCamelCase()#>
33+
/// <#=emumMember.Name.ToUpperFirstChar().SplitCamelCase()#>
3434
/// </summary>
3535
<#=emumMember.Name.ToCheckedCase().GetSanitizedPropertyName()#> = <#=emumMember.Value#>,
3636
<#

0 commit comments

Comments
 (0)