servicestack-autoquery

AutoQuery / Ormlite-servicestack: Can I filter out soft deletes on a QueryDb class?

一曲冷凌霜 提交于 2020-01-05 03:56:11
问题 We have a few services built up with Ormlite/Servicestack and we are mostly pulling out database objects and POCOs using QueryData with custom logic. However, we have one table that really doesn't need to be logically expanded on and works just fine querying the DB directly from the front end using AutoQuery and URL params. However, this table contains an isDeleted column to track soft deletes. The front end should not have any soft-deleted items, and we believe the front end shouldn't be

ServiceStack AutoQuery synthetic field

。_饼干妹妹 提交于 2020-01-04 01:38:09
问题 In the Northwind example's Customer DTO there is a field Email that is synthetic -- i.e. it doesn't come from the database. Code here: https://github.com/ServiceStackApps/Northwind/blob/master/src/Northwind/Northwind.ServiceModel/Types/Customer.cs But when viewing this in the running example, this field is not visible: http://northwind.servicestack.net/query/customers I've noticed this DTO has [DataContract] and [DataMember] annotations, whereas most other examples do not. How do I add