iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Latest Development Blogs
Browse By Tag
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.
Sory for the delay in sending this.
Per my test, [IgnoreDataMember] attribute can be used to achieve your scenario. When applied to the member of a type, specifies that the member is not part of a data contract and is not serialized.
Hope this helps.
This one is still not answered.
Forgot your password | Sign up
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname
Already a member? Sign in