有没有办法在 ServiceStack.OrmLite 中返回一个表的子集?
就像是:
public class MyStuff
{
public Guid Id { get; set; }
public string Name { get; set; }
public byte[] Data { get; set; } // Some large blob, which is not desired in the list
}
var somestuff = db.Select<MyStuff>(x => new { Id = x.Id, Name = x.Name });
我真的希望避免手动操作,例如“从某处选择 blabla”...