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.