Forum Cross Platform with Xamarin
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

Access Bundled Core SQLite File

Hello

In my Core code there is a SQLite file with the tables / structures I'd like. I saw an example online on how to create a SQLite database and stick it in the iOS documents folder. But i'd like this file just to be a bundled resource.

What is the path to this file? How to I get a path to the bundle.

Thanks!

Posts

  • pmhart83pmhart83 USMember ✭✭✭

    I gave in and am now creating the DB programmatically as suggested by the online docs. I did notice that on iOS if you use Environment.CurrentDirectory it returns the bundle path. I imagine that you could append /Resources/file.sql to this path?

Sign In or Register to comment.