EF Core cursor problem [Assistance needed] - C#