Question...
If you must have a BinaryReader file for the file, is there a better way to do this than open Stream for the resource?
System.IO.Stream myFileStream = Application.GetResourceStream(new Uri @"/MyApp;component/sdb.data", UriKind.Relative)).Stream;
BinaryReader binaryReader = new BinaryReader(myFileStream);
All the rest...
I am using Sterling Database (codeplex) for a WP7 application. The application should come with big db already inside the assembly. I'm currently trying to restore () using Sterling to create a database from a file that contains the previously saved (Backup ()). Currently, I take the backup file and set it as "Resource" in the application, as shown above. The Sterling dtabase engine requires a BinaryReader to load data through Restore (). Recovery is currently taking too long. I have a discussion started in Sterling Discussionions but posted here on Stack to see if I can do better than a thread for a resource.
Roger source
share