We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f182cb commit 2a8b42bCopy full SHA for 2a8b42b
src/GraphODataTemplateWriter/Extensions/OdcmModelExtensions.cs
@@ -204,8 +204,9 @@ public static string GetFullyQualifiedImportStatementForModel(this CustomT4Host
204
if (shouldDisambiguate)
205
{
206
// Form the import statement to disambiguate the model in the generated code file.
207
- var thisNamespace = host.CurrentModel.GetNamespace();
208
- var thisTypeName = (host.CurrentType as OdcmProperty).Type.Name.ToUpperFirstChar();
+ var thisType = (host.CurrentType as OdcmProperty).Type;
+ var thisNamespace = thisType.Namespace.NamespaceName();
209
+ var thisTypeName = thisType.Name.ToUpperFirstChar();
210
importStatement = $"\nimport {thisNamespace}.models.extensions.{thisTypeName};";
211
}
212
0 commit comments