Search Results for

    Show / Hide Table of Contents

    Class DefaultValue

    Inheritance
    object
    BaseEntity
    BaseEntityWithPermissions
    DefaultValue
    Implements
    IDefaultValue
    IBaseEntityWithPermissions
    IBaseEntity
    IEquatable<IBaseEntity>
    INotifyPropertyChanged
    INotifyPropertyChanging
    ICloneableAsync
    ICanTrackProperties
    ICloneableAsync<IDefaultValue>
    Inherited Members
    BaseEntityWithPermissions.IsLocked(object)
    BaseEntityWithPermissions.CanWriteItem(object, IEntityRetriever, IReadOnlyCache, Guid)
    BaseEntityWithPermissions.PreLoadPermissions<T>(IEnumerable<T>, IEntityRetriever, IReadOnlyCache, Guid)
    BaseEntityWithPermissions.CanDeleteItem(object, IEntityRetriever, IReadOnlyCache, Guid)
    BaseEntityWithPermissions.CanChangeItemPermissions(object, IEntityRetriever, IReadOnlyCache, Guid)
    BaseEntity.HISTORY_ENDROWUPDATE_COLNAME
    BaseEntity.HasTrackedPropertyChanged(string)
    BaseEntity.OriginalTrackedPropertyValue(string)
    BaseEntity.OriginalTrackedPropertyValue<T>(string)
    BaseEntity.ClearTrackedOriginalValues()
    BaseEntity.GetAllOriginalTrackedPropertyValues()
    BaseEntity.GetLabel(string)
    BaseEntity.SetLabel(string, string)
    BaseEntity.SetSilentLabel(string, string)
    BaseEntity.ResetChangedTrackedPropertiesToOriginalValues()
    BaseEntity.AddTrackedOriginalValue(string, object)
    BaseEntity.SnapshotProperties()
    BaseEntity.RestoreFromSnapshot(Dictionary<string, object>)
    BaseEntity.IsBasePropertyName(string)
    BaseEntity.IsBaseRelationshipID(string)
    BaseEntity.OnPropertyChanging(string)
    BaseEntity.OnPropertyChanged(string)
    BaseEntity.Equals(IBaseEntity)
    BaseEntity.GetHashCode()
    BaseEntity.Equals(object)
    BaseEntity.Clone(object)
    BaseEntity.CopyFromSource(object)
    BaseEntity.TrackChanges
    BaseEntity.ModifiedByUserID_Label
    BaseEntity.ModifiedByUserID_Label_Silent
    BaseEntity.CanvasID_Label
    BaseEntity.CanvasID_Label_Silent
    BaseEntity.AlgorithmStepID_Label
    BaseEntity.AlgorithmStepID_Label_Silent
    BaseEntity.SafeID_Label
    BaseEntity.SafeID_Label_Silent
    BaseEntity.AccountID
    BaseEntity.ID
    BaseEntity.LastUpdated
    BaseEntity.ModifiedByUserID
    BaseEntity.CanvasID
    BaseEntity.AlgorithmStepID
    BaseEntity.SafeID
    BaseEntity.PropertyChanged
    BaseEntity.PropertyChanging
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    Namespace: LemonEdge.API.Entities.Design
    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
    public DefaultValue()

    Properties

    DefaultObjectID

    Links to IDefaultObject. The parent default object this value is a member of.

    Declaration
    public Guid? DefaultObjectID { get; set; }
    Property Value
    Type Description
    Guid?

    EntityTypeID

    [Key] Indicates what entity you want to provide a default value for when new.

    Declaration
    [RequiredNoDefaultIDValidation]
    public Guid? EntityTypeID { get; set; }
    Property Value
    Type Description
    Guid?

    FormulaValue

    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
    Type Description
    string

    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
    Type Description
    string

    ParentEntityTypeValue

    The type of the parent default object to use for this property.

    Declaration
    public bool ParentEntityTypeValue { get; set; }
    Property Value
    Type Description
    bool

    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
    Type Description
    string

    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
    Type Description
    string

    TypePropertyComboItems

    Declaration
    [NotMapped]
    public KeyValuePair<string, string>[] TypePropertyComboItems { get; set; }
    Property Value
    Type Description
    KeyValuePair<string, string>[]

    Methods

    CopyFromEntity(IBaseEntity)

    Declaration
    protected override void CopyFromEntity(IBaseEntity src)
    Parameters
    Type Name Description
    IBaseEntity src
    Overrides
    BaseEntity.CopyFromEntity(IBaseEntity)

    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
    Type Name Description
    Func<DefaultValue, KeyValuePair<string, string>[]> comboItems

    Implements

    IDefaultValue
    IBaseEntityWithPermissions
    IBaseEntity
    IEquatable<T>
    INotifyPropertyChanged
    INotifyPropertyChanging
    ICloneableAsync
    ICanTrackProperties
    ICloneableAsync<T>

    Extension Methods

    LinqExtensions.AsArray<T>(T)
    LinqExtensions.ToArrayOfOne<T>(T)
    LinqExtensions.ToListOfOne<T>(T)
    MiscExtensions.SetIfNotEqual<T, TP>(T, Expression<Func<T, TP>>, TP)
    WeakReferenceExtensions.WeakReference(object)
    SQLExtensions.ToSQLValue(object, bool)
    ReflectionExtensions.ClearEventInvocations(object, string)
    StringExtensions.ToCSVFormatString(object, Type)
    In this article
    Back to top © LemonEdge Technologies. All rights reserved.