|
|
@ -28,7 +28,7 @@ namespace Volo.Abp.ObjectExtending.Modularity |
|
|
|
|
|
|
|
|
[NotNull] |
|
|
[NotNull] |
|
|
public Dictionary<string, object> Configuration { get; } |
|
|
public Dictionary<string, object> Configuration { get; } |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Single point to enable/disable this property for the clients (UI and API).
|
|
|
/// Single point to enable/disable this property for the clients (UI and API).
|
|
|
/// If this is false, the configuration made in the <see cref="UI"/> and the <see cref="Api"/>
|
|
|
/// If this is false, the configuration made in the <see cref="UI"/> and the <see cref="Api"/>
|
|
|
@ -42,7 +42,7 @@ namespace Volo.Abp.ObjectExtending.Modularity |
|
|
|
|
|
|
|
|
[NotNull] |
|
|
[NotNull] |
|
|
public ExtensionPropertyUiConfiguration UI { get; } |
|
|
public ExtensionPropertyUiConfiguration UI { get; } |
|
|
|
|
|
|
|
|
[NotNull] |
|
|
[NotNull] |
|
|
public ExtensionPropertyApiConfiguration Api { get; } |
|
|
public ExtensionPropertyApiConfiguration Api { get; } |
|
|
|
|
|
|
|
|
@ -59,6 +59,9 @@ namespace Volo.Abp.ObjectExtending.Modularity |
|
|
[CanBeNull] |
|
|
[CanBeNull] |
|
|
public Func<object> DefaultValueFactory { get; set; } |
|
|
public Func<object> DefaultValueFactory { get; set; } |
|
|
|
|
|
|
|
|
|
|
|
[NotNull] |
|
|
|
|
|
public ExtensionPropertyLookupConfiguration LookupConfiguration { get; set; } |
|
|
|
|
|
|
|
|
public ExtensionPropertyConfiguration( |
|
|
public ExtensionPropertyConfiguration( |
|
|
[NotNull] EntityExtensionConfiguration entityExtensionConfiguration, |
|
|
[NotNull] EntityExtensionConfiguration entityExtensionConfiguration, |
|
|
[NotNull] Type type, |
|
|
[NotNull] Type type, |
|
|
@ -78,6 +81,7 @@ namespace Volo.Abp.ObjectExtending.Modularity |
|
|
|
|
|
|
|
|
Attributes.AddRange(ExtensionPropertyHelper.GetDefaultAttributes(Type)); |
|
|
Attributes.AddRange(ExtensionPropertyHelper.GetDefaultAttributes(Type)); |
|
|
DefaultValue = TypeHelper.GetDefaultValue(Type); |
|
|
DefaultValue = TypeHelper.GetDefaultValue(Type); |
|
|
|
|
|
LookupConfiguration = new ExtensionPropertyLookupConfiguration(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public object GetDefaultValue() |
|
|
public object GetDefaultValue() |
|
|
|