File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/GraphODataTemplateWriter/Extensions Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -204,9 +204,9 @@ public static string GetFullyQualifiedImportStatementForModel(this CustomT4Host
204
204
if ( shouldDisambiguate )
205
205
{
206
206
// Form the import statement to disambiguate the model in the generated code file.
207
- // var thisNamespace = host.CurrentModel.NamespaceName ();
208
- // var thisTypeName = (host.CurrentType as OdcmProperty).Type.Name.ToUpperFirstChar();
209
- // importStatement = $"\nimport {thisNamespace}.models.extensions.{thisTypeName};";
207
+ var thisNamespace = host . CurrentModel . GetNamespace ( ) ;
208
+ var thisTypeName = ( host . CurrentType as OdcmProperty ) . Type . Name . ToUpperFirstChar ( ) ;
209
+ importStatement = $ "\n import { thisNamespace } .models.extensions.{ thisTypeName } ;";
210
210
}
211
211
212
212
return importStatement ;
You can’t perform that action at this time.
0 commit comments