Im using EntityFramework and one of my objects (toList) as datasource for lookupedit.
Everything works fine but I would like to know if I can add an extra column to that control ? WHich isnt as a field in my object.
Thanks for help,
bye
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes you can. The classes generated by the EntityFramework are partial classes, so simply add the new bits you want on in a seperate partial class definition
These will appear like any other existing property. Obviously these newly added property will not affect the state of the underlying entity object unless you specifically wire them up to do so.