daelmo wrote:
This way you obtain a IEntityField object:
someEntity.Fields["FieldName"]
Now, when you say "NameOfSpecificColumn" do you mean the source db field name or the llblgen mapped field name?
I'd like to be able to access the name of the source database column.
What I essentially would like to do is something like this:
myDropDownList.DataSource = x
myDropDownList.DataValueField = MyEntity.ValueFieldColomnName
myDropDownList.DataTextField = MyEntity.TextFieldColomnName
myDropDownList.DataBind()
instead of this:
myDropDownList.DataSource = x
myDropDownList.DataValueField = "ValueFieldName"
myDropDownList.DataTextField = "TextFieldName"
myDropDownList.DataBind()
This way the code would fail at design-time, if the source column name changes.
If there is a more clever way to handle such situations, I'm all ears.
/Morten