Friday, May 07, 2010

SQLite and .NET 4.0

When I converted an existing C# solution with NHibernate/SQLite to .NET 4, I got the following runtime exception:
Could not create the driver from NHibernate.Driver.SQLite20Driver, NHibernate, Version=2.1.2.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4.

The cause is that the System.Data.SQLite.dll is compiled against .NET 2. To avoid this problem, you can add te following configuration in your app.config:



and the application runs fine.

Thursday, May 06, 2010

MapXtreme hide legend items

In some cases you do not want certain features shown in your legend of a map.

Setting the property of Thematics.IndividualValueTheme.Bins(0).LegendRow.Visible to false will not work in MapXtreme 6.8.
This is a known bug and there is no patch.
However when you create a ThemeLegendFrame based on this IndividualValueTheme you can hide items from the legend by
Legends.ThemeLegendFrame.Rows(0).Visible = false