Crosslight SQLite NotMapped

2 replies. Last post: September 9, 2016 3:18 AM by Yudi
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback

Hello Crosslight Support,

I am using Crosslight SQLite. I created a model class which derives from EntityBase. I have several properties in this class but some of these properties should not be mapped to the database. They are only used in the UI for display. So I added the [NotMapped] attribute to these properties. Unfortunately, this does not seem to work. Properties marked with the [NotMapped] attribute are stored in the database, too. I checked this with "GetTableInfo()". [NotMapped] properties are real table columns.

Is this a bug or do I understand the [NotMapped] property wrong?

How can I achieve the behaviour I need?

I tested on Android with the latest stable versions.

Thanks for clarifying.


All times are GMT -5. The time now is 9:31 PM.
Previous Next