Get keys names from Db.Select

Hi all, I would like to know if there’s a way to get all the keys names (not the values) of my POCO elements after I get it with Db.Select.
For example:

public class FooBar
    public int Id { get; set; }
    public string UserFoo { get; set; }
    public string UserBar { get; set; }


var foobars = Db.Select<FooBar>();

foreach (var fb in foobars)
    // can I get "Id", "UserFoo", "UserBar"?

Thank you, for the help!

You can get it from OrmLite’s Type Metadata, e.g:

var typeNames = typeof(FooBar).GetModelMetadata()
    .FieldDefinitions.Map(x => x.Name);

var dbColumnNames = typeof(FooBar).GetModelMetadata()
    .FieldDefinitions.Map(x => x.FieldName);