Forum Xamarin Cross Platform with Xamarin

sqliteextension mvvmcross connection

Hello all,
i'm creating an app with mvvmcross starter.
i've setting the Core and the droid project.
Add all nuguet package for droid and core => mvvm starter and sqliteextension mvvm cross

Now i would like to know how i can set the connection of the sql lite ?

If i use only mvvmcross starter and mvvm cross lite i use this method BUT i would like to use sqliteExtension now
`

private readonly SQLite.SQLiteConnection connection;

    public DataService(IMvxSqliteConnectionFactory factory)
    {
        //
        connection = factory.GetConnection("equipement.sql");
        connection.CreateTable<Equipement>();
    }

`

thanks

Sign In or Register to comment.