I'm writing a winforms application in C# (.NET 4.0, using EntityFramework).
I wanted to add a calculated property to an entity, which I did using a partial class. I can access new property from code, but not from designer (datasource, edmx, datagridview, ...). My datagridview is bound to a entity binding source (e.g. employeeBindingSource).
I want to add my calculated property (from partial class) to datagridview as a read-only column. The only solution that I found so far is way to messy for me ( Properties in partial class not appearing in Data Sources window! ). I'd much rather programmatically add the column.
How should I approach this?
Thank you for your time and answers.