Attributes - SharePointPro/SpproEntity GitHub Wiki
Some fields are not able to be determined via reflection and require to be decorated. The majority of these attributes will be decorated via the Model Builder.
public string FieldType { get; set; }
public string FieldValue { get; set; }
public string SpName { get; set; }
public bool ReadOnly { get; set; }
Example: [SpproFieldAttribute(SpName = "Approve_x0020_Internally")] public bool ApproveInternally { get; set; } [SpproFieldAttribute(FieldType = "Counter", ReadOnly = true, SpName = "ID")] public int ID { get; set; }
If you want to use lazy loading then create a property in your model and decorate with this class. Beware that for every Navigation Property you have in your model, another call to SharePoint will be made. You will also need to be careful of self referencing loop. - Future additions will include ignoring self referencing loops and only traversing 1
public bool NavigationProperty { get; set; }
public string LookupField { get; set; }
Example:
[SpproNavigationAttribute(NavigationProperty = true, LookupField="QuoteID")]
public virtual ICollection<QuoteRooms> QuoteRooms { get; set; }