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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -