How can i display data from SQL server to Listview or carousel view in xamarin form without using web api

satyam maurya 1 Reputation point
2022-02-22T11:31:34.62+00:00

hii,
Im new to xamarin, i just want to display data from the SQL server to the listView in xamarin from, without using the web API.

Developer technologies | .NET | Xamarin
SQL Server | Other
Developer technologies | C#
{count} votes

1 answer

Sort by: Most helpful
  1. Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 36,436 Reputation points Microsoft External Staff
    2022-02-23T09:23:47.033+00:00

    Hello,

    Welcome to our Microsoft Q&A platform!

    If you want to display data from the SQL server without using the web API, I have to say it is a little hard, you cannot directly consume your SQL server/database info on a mobile application, refer to https://github.com/dotnet/SqlClient/issues/831#issuecomment-740197777

    This issue has also been concerned by many developers, refer to
    https://social.msdn.microsoft.com/Forums/en-US/3fd2ad9d-1476-4bd4-9ebc-8f37435b9677/displaying-data-from-sql?forum=xamarinforms
    https://learn.microsoft.com/en-us/answers/questions/326272/how-connect-to-sql-database-server-not-local-not-u.html
    https://stackoverflow.com/questions/54471457/using-sqlconnection-in-xamarin-forms
    Best Regards,
    Wenyan Zhang


    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.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.