Category : localdb

I have a ASP.NET 5.0 Web API using Entity Framework to access SQL Server. Running (F5) from Visual Studio works fine. The connection string is Server=(localDB)MSSQLLocalDB;Database=***;Integrated Security=true I then add docker support. Now if I debug the app with the Docker profile I get a System.PlatformNotSupportedException: LocalDB is not supported on this platform. What should ..

Read more

Is it possible to connect to SQL Server Express (localdb) from a container instance? docker-compose sample connection string: foo-api: image: foo-api environment: – ASPNETCORE_ENVIRONMENT=Development – ConnectionStrings:DefaultConnection=Server=host.docker.internalmssqllocaldb;Database=FooDB;MultipleActiveResultSets=true;User Id=foo;Password=Your_password123; build: context: ../ms-foo/src/ dockerfile: Dockerfile ports: – "6004:6004" Running the app @ localhost wtih this config works just fine: "ConnectionStrings": { "DefaultConnection": "Server=(localdb)mssqllocaldb;Database=FooDB;MultipleActiveResultSets=true;User Id=foo;Password=Your_password123;" }, Is there some ..

Read more

I am using Visual Studio 2017 for my project but unfortunately there is no support for LocalDb V11. So I would like to have a Docker container with it but couldn’t find any existing image for it. I’d like to have the following connection string to my DB: “Data Source=(LocalDB)v11.0;Initial Catalog={0};Integrated Security=True; Trusted_connection=true;Connection Timeout=60” So ..

Read more