Shaheen
Shaheen

Reputation: 141

Does ServiceStack ormlite has the concept of transient attribute?

I am newbie to servicestack and ormlite.

I am trying to have fields to be used for displaying / serialization purposes not for persistance purposes. I tried [ignoredatamemebr] but this ignore both persistance and serialization. I want to do something similar to [notmapped] in entity framework and like @transient in hibernate.

Upvotes: 1

Views: 556

Answers (1)

mythz
mythz

Reputation: 143319

Use the [Ignore] attribute to ignore properties from being persisted in OrmLite.

Whilst here are different ways to ignore properties during serialization.

Upvotes: 2

Related Questions