Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Nick-Lucas opened this issue Aug 17, 2016 · 0 comments
Open

Comments

@Nick-Lucas
Copy link
Owner

Nick-Lucas commented Aug 17, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant