Visual Studio For Mac 2017 Tutorial

Visual Studio for Mac continues to follow the Microsoft Modern Lifecycle Policy, and Visual Studio 2017 for Mac version 7.8 will be superseded by Visual Studio 2019 for Mac version 8.0 once released. For instructions on updating, see Updating Visual Studio for Mac. Last month, Microsoft announced the release of Visual Studio for Mac: a full-featured development environment to help developers on the Mac create apps, games, and services for mobile, cloud,.

Active2 months ago

I'm creating a hotel management service in C# on Visual Studio (Mac) and I can't seem to find a good explanation on how to add a local database file to my project. I created my database table in open office (.odb file) but there doesn't seem to be a way for me to implement this in my project. The documentation has nothing on this either. Any one got a clue how to add databases to a Mac Visual studio project?

Jumpman987Jumpman987

3 Answers

Mac

there are no localDB in visual studio for mac, you need to install the docker image for sql server.

AbiezerAbiezer

You can run SQL Server on a Mac now:

Visual Studio For Mac Download

Using Docker it can be made as your localhost SQL Server. I've done this and it works. SQL Management studio for Mac is useful too.

Hope this helps someone.

RichardRichard
17.9k11 gold badges57 silver badges94 bronze badges

Consider using sqlite instead

Microsoft RazorPagesMovie tutorial using sqlite instead of localdb in Visual Studio 2019 for Mac:

  1. Follow Tutorial: Get started with Razor Pages in ASP.NET Core
  2. And the second part: Add a model to a Razor Pages app in ASP.NET Core
Lucifer MorningstarLucifer Morningstar

Visual Studio For Mac Tutorial

Not the answer you're looking for? Browse other questions tagged c#databasemacosvisual-studiovisual-studio-2017 or ask your own question.