LimeBean icon indicating copy to clipboard operation
LimeBean copied to clipboard

Add a Generic Field container to Beans, so metadata can be attached

Open Nick-Lucas opened this issue 7 years ago • 0 comments

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.

Nick-Lucas avatar Aug 17 '16 10:08 Nick-Lucas