mirror of
https://github.com/zoriya/EntityFrameworkCore.Projectables.git
synced 2026-05-18 09:18:56 +00:00
Fixed generator issue
This commit is contained in:
@@ -4,6 +4,7 @@ using Microsoft.CodeAnalysis.CSharp;
|
||||
using Microsoft.CodeAnalysis.Text;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
@@ -50,7 +51,7 @@ namespace EntityFrameworkCore.Projections.Generator
|
||||
|
||||
if (projectable.ClassNamespace is not null && projectable.ClassNamespace != projectable.TargetClassNamespace)
|
||||
{
|
||||
var classUsingDirective = $"using {projectable.TargetClassNamespace};";
|
||||
var classUsingDirective = $"using {projectable.ClassNamespace};";
|
||||
|
||||
if (!projectable.UsingDirectives.Contains(classUsingDirective))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user