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.

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,297 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,809 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,308 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 26,751 Reputation points Microsoft Vendor
    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