0

How can I create a connection to my local database in a .NET Standard project? Because I want to use that in combination with an UWP application (no EF support).

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
user7849697
  • 503
  • 1
  • 8
  • 19

1 Answers1

0

I didn't read it fully, but it seems I don't have to set the connectionstring into the UWP project?

You're right. You could set the connection string to initilize the SqlConnection object and then connect to your local database.

You could check the Northwind Sample – UWP app connecting to SQL Server to learn how to do it.

Xie Steven
  • 8,544
  • 1
  • 9
  • 23