ServiceStack auto query global filter
问题 I'm looking at using ServiceStack's AutoQuery feature and I have some basic queries working. However I'd like to implement a global filter since I have a multi-tenanted database, e.g., All queries should be appended with the criteria CustomerId = Session.CustomerId What would be the best way to do this? 回答1: You could potentially use a custom AutoQuery base class for this to append the custom filter to each query, e.g: public abstract class MyAutoQueryServiceBase : AutoQueryServiceBase {