Accessing Extended Property From Template
Posted: Thu 31 Jul 2014 00:27
I have added an extended property to my model: IsIFinancialData and added the last if statement to the following block in the DbContext template:
When I try to build the template I get the following error:
Custom tool error: Unknown property: 'IsIFinancialData'.
To make sure I wasn't missing something spelling or upper/lower case, I copied/pasted from the properties dialog box. What am I missing?
Thanks!
Patrick Connelly
Code: Select all
if (cls.BaseInheritance == null) {
if (ImplementINotifyPropertyChanging)
baseList = string.IsNullOrEmpty(baseList) ? "INotifyPropertyChanging" : baseList + ", INotifyPropertyChanging";
if (ImplementINotifyPropertyChanged)
baseList = string.IsNullOrEmpty(baseList) ? "INotifyPropertyChanged" : baseList + ", INotifyPropertyChanged";
if ((bool)cls.GetProperty("IsIFinancialData"))
baseList = string.IsNullOrEmpty(baseList) ? "IFinancialData" : baseList + ", IFinancialData";
}Custom tool error: Unknown property: 'IsIFinancialData'.
To make sure I wasn't missing something spelling or upper/lower case, I copied/pasted from the properties dialog box. What am I missing?
Thanks!
Patrick Connelly