Forum Xamarin.Forms

Can Xamarain.Forms connection to MS SQL without WebServices? -- 用Xamarain連MS資料庫只能用WebServices嗎?

ClawRageClawRage Member ✭✭
edited April 2019 in Xamarin.Forms

I am connection to SQLITE database in this way now:
(我現在是用這個方式連到SQL)

    public static FoodData Database_Food
    {
        get
        {

            if (database_Food == null)
            {
                database_Food = new FoodData(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "FoodSQLite_Test.db3"));
            }

            return database_Food;
        }


    }

I search on Internet catch the Informations always teach use WebServices to connection MS SQL,
Its really Xamarain.Forms can only direct connection to SQLITE database?
(我在網路上都是看到用WEBservice的方式以網路連到MS資料庫
是不是XAMARAIN只能直接連SQLTE?)

Answers

  • AsurAsur USMember ✭✭✭

    if you have a local database why would you use a webservice. I suggest read a little bit more about the concept

  • ClawRageClawRage Member ✭✭
    edited April 2019

    In fact, it's not I would use webservice,it's would connection to MS sql database.
    But that Informations on Internet almost used WEBservice to connection MS sql,
    My local database is SQLITE now

  • Liêm_NguyễnLiêm_Nguyễn USMember ✭✭✭✭

    @ClawRage said:
    In fact, it's not I would use webservice,it's would connection to MS sql database.
    But that Informations on Internet almost used WEBservice to connection MS sql,
    My local database is SQLITE now

    Why you don't use WebService. It's will make your Mobile app simple and faster!

Sign In or Register to comment.