How to ignore property on Insert/Update/Migrate but not on read. #81
Replies: 1 comment 4 replies
-
You can use the |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a model which I want to correspond to a temporal table in the database, since it's not possible to generate temporal tables by default in OrmLite, I have added some custom SQL to support temporal tables.
Now my problem is that the temporal table has 2 extra date time columns : CreatedAt, ChangedAt.
I want to have those two columns as properties in my model but when inserting / updating / migrating, I want it to be ignored, however I want it to able to read it.
Beta Was this translation helpful? Give feedback.
All reactions