|
|
|
@ -65,6 +65,8 @@ public class ObjectExtensionPropertyInfo : IHasNameWithLocalizableDisplayName, I
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int Order { get; set; }
|
|
|
|
|
|
|
|
|
|
public ExtensionPropertyUI UI { get; set; }
|
|
|
|
|
|
|
|
|
|
public ObjectExtensionPropertyInfo(
|
|
|
|
|
[NotNull] ObjectExtensionInfo objectExtension,
|
|
|
|
|
[NotNull] Type type,
|
|
|
|
@ -81,10 +83,26 @@ public class ObjectExtensionPropertyInfo : IHasNameWithLocalizableDisplayName, I
|
|
|
|
|
Attributes.AddRange(ExtensionPropertyHelper.GetDefaultAttributes(Type));
|
|
|
|
|
DefaultValue = TypeHelper.GetDefaultValue(Type);
|
|
|
|
|
Lookup = new ExtensionPropertyLookupConfiguration();
|
|
|
|
|
UI = new ExtensionPropertyUI();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public object GetDefaultValue()
|
|
|
|
|
{
|
|
|
|
|
return ExtensionPropertyHelper.GetDefaultValue(Type, DefaultValueFactory, DefaultValue);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class ExtensionPropertyUI
|
|
|
|
|
{
|
|
|
|
|
public ExtensionPropertyUIEditModal EditModal { get; set; }
|
|
|
|
|
|
|
|
|
|
public ExtensionPropertyUI()
|
|
|
|
|
{
|
|
|
|
|
EditModal = new ExtensionPropertyUIEditModal();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class ExtensionPropertyUIEditModal
|
|
|
|
|
{
|
|
|
|
|
public bool IsReadOnly { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|