RickStrahl / Westwind.Globalization

Database driven resource localization for .NET applications
543 stars 135 forks source link

Solution not working with SQL CE #8

Closed Coyote78 closed 9 years ago

Coyote78 commented 9 years ago

After trying various configurations, it doesn't seem possible to make it work with SQL CE local file :(

It looks like it is not using correct Provider for CE file, but always use full SQL Server provider

RickStrahl commented 9 years ago

Thanks for the feedback. Turns out there was a bug in the Configuration provider that always parsed the connection string, so the DAL never got notified of the other provider.

Please check the Devolopment Branch: 37d76eb

This should fix this problem. The provider will work and the basic edit features should come up. Not quite sure if all update and export operations will work, but will check on that later.

For now you should be able to pull down the solution and switch the ConnectionString in the DbProvider to:

<DbResourceProvider connectionString="SqlServerCeLocalizations" 
   ... />

And that should work out of the box. Let me know what you find.

FWIW, I'm working on the next version that will have better support for pluggable data providers.

Coyote78 commented 9 years ago

Great, thank you for the quick feedback !

Sample solution works as described. I'll implement it in my project and let you know if I encounter other issues