Hey, I have installed LINQKit and now I'm getting the following error:
error CS0104: 'Index' is an ambiguous reference between 'Microsoft.EntityFrameworkCore.IndexAttribute' and 'System.ComponentModel.DataAnnotations.Schema.IndexAttribute'
, when using Microsoft.EntityFrameworkCore; like this:
[Index("index", Name = "idx")] // Doesn't work
[Microsoft.EntityFrameworkCore.Index("index2", Name = "idx2")] // Works
public class DatabaseEntity
{
...
}
I'm running dotnet 8, with the following packages:
Hey, I have installed LINQKit and now I'm getting the following error:
, when using
Microsoft.EntityFrameworkCore;
like this:I'm running dotnet 8, with the following packages: