ServiceStack ORMLite - How to Select All to match the request DTO's properties automatically
- 阅读更多 关于 ServiceStack ORMLite - How to Select All to match the request DTO's properties automatically
问题 I have several ServiceStack ORMLite POCO, one is Company below. public class Company { [AutoIncrement] public int id { get; set; } public string company { get; set; } public int? companyNo { get; set; } public bool? active { get; set; } } If two properties are valid in the following request: req.company="ABC Company", req.active=ture, and all other properties are null. Then it can return all records matching the two properties. The code may look like below: public object Get(Company req) {