none
How to make a Connection between EF6 and asp.net core 3 RRS feed

  • Question

  • Goal:
    Use EF 6 inside of ASP.net core 3 by using a project named ef.
    Project EF is the main connection to the database sql server.

    Problem:
    I get an error saying

    Error = Unable to evaluate the expression. Operation not supported. Unknown error: 0x80070057.

    What part am I missing from the code in order retrieve the data in asp.net core 3.

    Info:
    *Uploaded the project at github (https://github.com/candyboyyy/WebApplication1_asp.netcore3)

    *Using VS 2019, EF 6, asp.net core 3

    CREATE TABLE [dbo].[Blogs]
    (
        [BlogId] [INT] IDENTITY(1,1) NOT NULL,
        [Name] [NVARCHAR](200) NULL,
        [Url] [NVARCHAR](200) NULL,
    
        CONSTRAINT [PK_dbo.Blogs] 
            PRIMARY KEY CLUSTERED ([BlogId] ASC)
                        WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, 
                              IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, 
                              ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
    ) ON [PRIMARY]
    GO


    Sunday, November 3, 2019 10:45 PM

All replies

  • Hi,

    About EF&ASP.NET Core, I suggest you submit a new issue about it on GitHub.

    https://github.com/aspnet/AspNetCore.Docs/issues

    Thank you for your understanding.

    Regards,

    Kyle


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Monday, November 4, 2019 6:50 AM