Error Message:
cannot convert from 'Quotit.DAL.CachedDroppedPlanGroupFieldIndex' to 'SD.LLBLGen.Pro.ORMSupportClasses.IEntityField2'
How to rewrite following codes for fields.DefineField function?
fields.DefineField((CachedDroppedPlanGroupFieldIndex)enumeration, i++, ((CachedDroppedPlanGroupFieldIndex)enumeration).ToString());
Source code:
foreach(Enum enumeration in Enum.GetValues(typeof(CachedDroppedPlanGroupFieldIndex)))
{
if((CachedDroppedPlanGroupFieldIndex)enumeration != CachedDroppedPlanGroupFieldIndex.AmountOfFields)
{
fields.DefineField((CachedDroppedPlanGroupFieldIndex)enumeration, i++, ((CachedDroppedPlanGroupFieldIndex)enumeration).ToString());
}
}