Hi,
I'm trying to ignore a specific field with UI Builder in the listview, is this possible? I'm using NPoco [Ignore] and [ExplicitColumns] and this seems to work for the edit view, but i'm getting errors in the list view.
We have are using a Geography DataType in MSSQL in our table, but NPoco is throwing errors on this field. The thing is, i don't need this field in UI Builder and i just want UI Builder to ignore it.
The error i'm getting with the Geography column is:
"System.InvalidCastException: Unable to cast object of type 'Microsoft.SqlServer.Types.SqlGeography' to type 'Microsoft.Data.SqlClient.Server.IBinarySerialize'.
at Microsoft.Data.SqlClient.Server.BinarySerializeSerializer.Deserialize(Stream s)
at Microsoft.Data.SqlClient.SqlConnection.GetUdtValue(Object value, SqlMetaDataPriv metaData, Boolean returnDBNull)
at Microsoft.Data.SqlClient.SqlDataReader.GetValues(Object[] values)
at NPoco.RowMappers.PropertyMapper.Map(DbDataReader dataReader, RowMapperContext context)
at NPoco.Database.Read[T](Object instance, DbDataReader r, PocoData pd)+MoveNext"
Kind regards,
Erik