none
Web API Database Access Best Practice RRS feed

  • Question

  • Hi all,

    I´m new to C#, and would like to check with you guys what would be the best practice to manage a simple database (mysql) from a Web API RESTful webservice... should I create a class to manage it? Should I manage the connection directly from the webmethods?

    Thanks in advance for your tips!

    Thursday, February 22, 2018 4:43 PM

All replies

  • Hi RodHoff,

    Thank you for posting here.

    According to your question is more related to Web API, you could post a new thread in Web API forum for suitable support.

    The CLR Forum discuss and ask questions about .NET Framework Base Classes (BCL) such as Collections, I/O, Regigistry, Globalization, Reflection. Also discuss all the other Microsoft libraries that are built on or extend the .NET Framework, including Managed Extensibility Framework (MEF), Charting Controls, CardSpace, Windows Identity Foundation (WIF), Point of Sale (POS), Transactions.

    Best Regards,

    Wendy


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Monday, February 26, 2018 5:42 AM