Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Entity Framework using [Index] attribute #3089


User avatar
0
kimoerum created

Hi, I wonder why I cannot use the EF attribute [Index] on entities in my ASP.NET Zero project?

I use the Abp.EntityFramework v. 2.0.2 that is build on EF 6.1 as far as I can see. I use the newest ASP.NET Zero project. And as far as I can see the [Index] attribute is supported with EF 6.

Any suggestions to why?

Kim.


2 Answer(s)
  • User Avatar
    0
    hikalkan created
    Support Team

    [Index] attribute is defined in EntityFramework nuget package. Your entities are defined in .Core project. Are you sure that .Core project has added EntityFramework nuget package.

  • User Avatar
    0
    kimoerum created

    Thanks a lot - that solved the question.