LimeBean
LimeBean copied to clipboard
Add a Generic Field container to Beans, so metadata can be attached
Something like:
BeanField field = bean.GetField<string>("some_int");
field.FieldName; // out: "field_name"
field.DBType; // out: Int32
field.Value; // out: "7"
Can behave like Nullable<T>
where treating it like a value type will always yield the value, but it also has metadata available
This would go some way to solve a problem of using raw Bean
instances to access data, where you can end up typing database field names out quite a lot.