File tree Expand file tree Collapse file tree 3 files changed +12
-1062
lines changed
Templates/CSharp/Requests Expand file tree Collapse file tree 3 files changed +12
-1062
lines changed Original file line number Diff line number Diff line change 66OdcmClass entity = host.CurrentType.AsOdcmClass();
77var entityName = this.GetEntityNameString(entity);
88
9+ var projection = host.CurrentType.Projection;
10+ var canDelete = projection.SupportsDelete();
11+
912#>
1013
1114namespace <#=this.GetNamespaceName(entity)#>
@@ -18,7 +21,9 @@ namespace <#=this.GetNamespaceName(entity)#>
1821 <#=this.GetEntityReferenceRequestClassDefinition(entity)#>
1922 {
2023 <#=this.GetEntityReferenceRequestConstructor(entity)#>
21-
24+ <# if (canDelete) { #>
25+
2226 <#=this.GetEntityReferenceDeleteAsyncMethod(entity)#>
27+ <# } #>
2328 }
2429}
Original file line number Diff line number Diff line change @@ -6,6 +6,9 @@ OdcmClass entity = host.CurrentType.AsOdcmClass();
66var entityName = entity.Name.ToCheckedCase();
77var entityRequest = entityName + "Request";
88
9+ var projection = host.CurrentType.Projection;
10+ var canDelete = projection.SupportsDelete();
11+
912#>
1013
1114namespace <#=this.GetNamespaceName(entity)#>
@@ -17,6 +20,8 @@ namespace <#=this.GetNamespaceName(entity)#>
1720
1821 <#=this.GetEntityReferenceRequestInterfaceDefinition(entity)#>
1922 {
23+ <# if (canDelete) { #>
2024 <#=this.GetEntityReferenceDeleteAsyncMethod(entity)#>
25+ <# } #>
2126 }
2227}
You can’t perform that action at this time.
0 commit comments