MetricBoilerPlate not found

Posts   
 
    
Posts: 2
Joined: 01-Apr-2022
# Posted on: 04-Apr-2022 10:20:32   

MetricItemEntity does not contain definition for MetricBoilerPlate and no accessible extension method for MetricBoilerPlate. please check the below sample code.

 try
                {
                    daysBeforeToSendOutNotification = metric.MetricBoilerPlate.SetupNotificationDaysPrior;
                    sendEveryNumberOfDays = metric.MetricBoilerPlate.RemiderDurationSpanDays;
                }
                catch (ORMEntityOutOfSyncException)
                {
                    metric.MetricBoilerPlate = _repository.GetEntityById(new MetricBoilerPlateEntity(metric.MetricBoilerPlateId));
                    metric.MetricBoilerPlate.MetricSubType = _repository.GetEntityById(new MetricSubTypeEntity(metric.MetricBoilerPlate.TypeId));
                    metric.MetricBoilerPlate.MetricSubType.MetricType = _repository.GetEntityById(new MetricTypeEntity(metric.MetricBoilerPlate.MetricSubType.MetricTypeId));
                    daysBeforeToSendOutNotification = metric.MetricBoilerPlate.SetupNotificationDaysPrior;
                    sendEveryNumberOfDays = metric.MetricBoilerPlate.RemiderDurationSpanDays;
                }

                DateTime lastDayThisMetricWasSent = metric.MetricBoilerPlate.ReminderLastSentDate;
Walaa avatar
Walaa
Support Team
Posts: 14986
Joined: 21-Aug-2005
# Posted on: 04-Apr-2022 22:11:56   

Excuse me, but your message is not clear.

Please be more specific and descriptive into what the issue is exactly.

Please check the forum guidelines, to better formulate your inquiry.