How do I call SQLitePCL.Batteries.Init().?
问题 I am attempting to create an SQLite database for my application and have come across this error. System.Exception: 'You need to call SQLitePCL.raw.SetProvider(). If you are using a bundle package, this is done by calling SQLitePCL.Batteries.Init().' I created a simple console app the run the exact same code for creation, with no issues. The code looks like this! using (var dataContext = new SampleDBContext()) { dataContext.Accounts.Add(new Account() { AccountName = name, AccountBalance =