Skip to main content


 

Symptoms


I have attached a simple assembly which will be used to externalize business logic at Microsoft.
When registering the instance of the endpoint assembly broker there is only a "read to serialized item we are not able to generate the Read or the Desearlize methods.
 

Diagnoses


The issue is related to how the class is written. Getters and setters were not correctly set in the class.
 

Resolution

When referencing the assembly Microsoft.CFIT.EDM.TS.Model.Workflow, in this case the subclass, if I modify these calls below to include (get set)
public int DaysToReminder1 { get set }
public int DaysToReminder2 { get set }
public int DaysToExpiry { get set }

then the BusinessRules main-class does return the “Read” and “Read to Serialize”. According to this link, it's a best practice when declaring the public property to include get and set.
http://blogs.msdn.com/b/ericgu/archive/2007/02/01/properties-vs-public-fields-redux.aspx




 
Be the first to reply!

Reply