partial         void CopyExtraPropertiesToClone(CustomField clone, bool includeLocalProperties);
 public CustomField Clone(bool includeLocalProperties)
 {
     var c = new CustomField
             {
                 CustomFieldTypeName = CustomFieldTypeName,
                 Description = Description,
                 Id = Id,
                 Label = Label,
                 Name = Name,
                 Required = Required,
                 Entities = Entities.ToList(),
                 Scopes = Scopes.Select(x=>x.Clone(includeLocalProperties)).ToList(),
             };
     CopyExtraPropertiesToClone(c, includeLocalProperties);
     return c;
 }