Class DefaultValue
Assembly: LemonEdge.API.Entities.Auto.dll
Syntax
[DataContract]
public class DefaultValue : BaseEntityWithPermissions, IDefaultValue, IBaseEntityWithPermissions, IBaseEntity, IEquatable<IBaseEntity>, INotifyPropertyChanged, INotifyPropertyChanging, ICloneableAsync, ICanTrackProperties, ICloneableAsync<IDefaultValue>
Constructors
DefaultValue()
Declaration
Properties
DefaultObjectID
Links to IDefaultObject. The parent default object this value is a member of.
Declaration
public Guid? DefaultObjectID { get; set; }
Property Value
EntityTypeID
[Key] Indicates what entity you want to provide a default value for when new.
Declaration
[RequiredNoDefaultIDValidation]
public Guid? EntityTypeID { get; set; }
Property Value
A formula value that is evaluated at runtime when the new entity is being created. You can specify a formula that
works against a context which includes this new item.
Declaration
public string FormulaValue { get; set; }
Property Value
HardcodedValue
A constant hardcoded value for this property. Whatever you enter will be parsed and stored against that type. For
instance if the property is a boolean, and you enter 1 or true, the system will store true against that property by
default. If it fails to parse the value it will throw an error.
Declaration
[StringLength(500)]
public string HardcodedValue { get; set; }
Property Value
ParentEntityTypeValue
The type of the parent default object to use for this property.
Declaration
public bool ParentEntityTypeValue { get; set; }
Property Value
ParentPropertyValue
The name of the property on the parent default object to use for this property.
Declaration
[StringLength(500)]
public string ParentPropertyValue { get; set; }
Property Value
Property
[Key] The name of the property you want to override the default behaviour of and provide a default value for.
The system provides a drop down list of all properties against the Entity Type of this Default Value.
Declaration
[Required]
[StringLength(500)]
public string Property { get; set; }
Property Value
TypePropertyComboItems
Declaration
[NotMapped]
public KeyValuePair<string, string>[] TypePropertyComboItems { get; set; }
Property Value
Methods
CopyFromEntity(IBaseEntity)
Declaration
protected override void CopyFromEntity(IBaseEntity src)
Parameters
Overrides
CopyFromSource(IDefaultValue)
Updates all properties in this item to have the same properties as the source object.
Declaration
public void CopyFromSource(IDefaultValue source)
Parameters
Type |
Name |
Description |
IDefaultValue |
source |
The source object to copy all values from.
|
SetTypePropertyComboItems(Func<DefaultValue, KeyValuePair<string, string>[]>)
Declaration
public void SetTypePropertyComboItems(Func<DefaultValue, KeyValuePair<string, string>[]> comboItems)
Parameters
Implements
Extension Methods