Selecting a subset of data in ServiceStack.OrmLite -
is there way return subset of table in servicestack.ormlite?
like:
public class mystuff { public guid id { get; set; } public string name { get; set; } public byte[] data { get; set; } // large blob, not desired in list } var somestuff = db.select<mystuff>(x => new { id = x.id, name = x.name });
i hoping avoid manual stuff, "select blabla somewhere"...
i had exact same problem. here did:
public class mystuff { public guid id { get; set; } public string name { get; set; } public byte[] data { get; set; } } var somestuff = db.select<mystuff>(p => p.select(x => new { x.id, x.name }));
the changes made, did above, done db.select.
Comments
Post a Comment