How to login in the database of entity framework context

108 Views Asked by At

I'm trying to connect to my context in my VS solution with EF Core

conexion

But when I test the connection I get this error

error

Because it is trying to connect with my domain user instead the user in the connection string

Any idea, please?

Thanks

1

There are 1 best solutions below

0
Power Mouse On

i cant post pictures in reply so i am using it as answer i will doublecheck lower versions (i guess 5) - since i dont know which version are you using (but image of EF connection is different than mine (!)) enter image description here in linqpad 7 it works enter image description here

enter image description here

in addition, if you need a context you can write using regular connection

using(TypedDataContext context = new TypedDataContext(Connection.ConnectionString)){
        
        context.TABLE.Where(w=>w.ID == 64463).Dump();
        
    }

enter image description here