Open jonnybee opened 9 years ago
@turquoiseowl I would like to contribute to this. My understanding is that we would have to essentially create an alternate implementation of ITranslationRepository which implements a backing database store.
Would you like me to create this as a separate Nuget package which can be add-on to this library? Or would you prefer to have a PR to this?
Are there any particular caveats to keep in mind?
I'd be happy to include your DB implementation alongside the standard POTranslationRepository implementation.
Can't think of any caveats. IIRC others have made their own DB-based implementations -- not sure whether in a fork or private.
Thank you. 👍 That was a super quick response.
Will get back to you once my fork is ready :)
We made our own database repo using EF 6 to enable storage in Oracle, SqlServer and SqlAzure.
You might look into using SqlCacheDependeny. I just ended up caching for a given time and then refresh on a regular basis (fixed intervals).
We have one common master database where translations is done and then export/import into the application database. This did require some extra changes in i18n.PostBuild to configure the database in this applications app.config file while reading the other settings from the actual web applications web.config file (to use different databases).
Thanks. Will have a look.
I was planning to use an micro-orm ( Dapper ) since having an EF6 instance in this case seems like an unnecessary overhead. Will explore further and see what works best.
also clean up the cache dependencies and remove System.Web.Caching from ITranslationRepository.