Hi @Hacking ,
Welcome to Microsoft Q&A!
Can you show me an example in c# to create a localdb and then connect to it?
Please refer to these links:
https://www.youtube.com/watch?v=mgtfxtjKoaA
https://www.c-sharpcorner.com/UploadFile/368e1d/connecting-to-local-database-in-C-Sharp/
https://www.ictdemy.com/csharp/databases/creating-a-local-database-in-visual-studio
Hope these would give you some help.
Best regards,
Seeya
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.