fluent model and database encryption

Thread is closed for posting
2 posts, 0 answers
  1. Tom
    Tom avatar
    11 posts
    Member since:
    Jan 2012

    Posted 25 Apr 2012 Link to this post

    I'm using Sqlite with the fluent model, if I find the database doesnt exist I'm able to create a new one. my question is Sqlite allows full database encryption, how do I go about enabling encryption of the database on construction via the fluent api?
  2. Serge
    Serge avatar
    375 posts

    Posted 26 Apr 2012 Link to this post

    Hello Tom,

     What kind of encryption are you planning on using? What I googled into was the SQLCipher solution. From the looks of it an encrypted database can be accessed by executing a sql query before opening the database. We provide support for executing SQL on database open, that you should be to use in order to set it up. Do note though, that we haven't tested this, behaviour. 

    What you need to do is configure the BackendConfiguration object you are passing in the context. Just look for the BackendConfiguration.ConnectionPool.InitSQL property. It is a list of strings that are executed in order when the database is opened. 

    I hope this proves to be helpful, do let us know should you face any trouble. 

    Kind regards,
    the Telerik team
    Follow @OpenAccessORM Twitter channel to get first the latest updates on new releases, tips and tricks and sneak peeks at our product labs!
Back to Top