Exemplo n.º 1
0
 private static void ProcessUpdateProfileProperty(ExportProfileProperty profileProperty, ExportProfileProperty existingProfileProperty,
                                                  int modifiedById)
 {
     DotNetNuke.Data.DataProvider.Instance()
     .UpdatePropertyDefinition(existingProfileProperty.PropertyDefinitionId,
                               profileProperty.DataType ?? Null.NullInteger,
                               profileProperty.DefaultValue, profileProperty.PropertyCategory, profileProperty.PropertyName,
                               profileProperty.ReadOnly, profileProperty.Required,
                               profileProperty.ValidationExpression, profileProperty.ViewOrder, profileProperty.Visible,
                               profileProperty.Length, profileProperty.DefaultVisibility, modifiedById);
 }
Exemplo n.º 2
0
 private static void ProcessCreateProfileProperty(ExportImportJob importJob,
                                                  ExportProfileProperty profileProperty, int createdById)
 {
     DotNetNuke.Data.DataProvider.Instance()
     .AddPropertyDefinition(importJob.PortalId, profileProperty.ModuleDefId ?? Null.NullInteger,
                            profileProperty.DataType ?? Null.NullInteger,
                            profileProperty.DefaultValue, profileProperty.PropertyCategory, profileProperty.PropertyName,
                            profileProperty.ReadOnly, profileProperty.Required,
                            profileProperty.ValidationExpression, profileProperty.ViewOrder, profileProperty.Visible,
                            profileProperty.Length, profileProperty.DefaultVisibility, createdById);
 }