Skip to content

Commit

Permalink
checking for full model name (includes namespace) (#1968)
Browse files Browse the repository at this point in the history
  • Loading branch information
deepchoudhery committed Aug 2, 2022
1 parent fba5b43 commit a2cd3c7
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,9 @@ private async Task<Type> FindExistingType(string type)

}
//get all types and return the one with the same name. There should be no duplicates so only one should match.
return _reflectedTypesProvider.GetAllTypesInProject().FirstOrDefault(r => r.Name.Equals(type, StringComparison.OrdinalIgnoreCase));
return _reflectedTypesProvider.GetAllTypesInProject().FirstOrDefault(
r => r.Name.Equals(type, StringComparison.OrdinalIgnoreCase) ||
r.FullName.Equals(type, StringComparison.OrdinalIgnoreCase));
}

private void ValidateCommandLine(IdentityGeneratorCommandLineModel model)
Expand Down

0 comments on commit a2cd3c7

Please sign in to comment.