Class CustomLookupQuery
Inheritance
CustomLookupQuery
Assembly: LemonEdge.API.Entities.Auto.dll
Syntax
[DataContract]
public class CustomLookupQuery : BaseEntityWithPermissions, ICustomLookupQuery, IBaseEntityWithPermissions, IBaseEntity, IEquatable<IBaseEntity>, INotifyPropertyChanged, INotifyPropertyChanging, ICloneableAsync, ICanTrackProperties, ISetCopier, ICloneableAsync<ICustomLookupQuery>
Constructors
CustomLookupQuery()
Declaration
public CustomLookupQuery()
Properties
ComboItemsForType
Declaration
[NotMapped]
public KeyValuePair<string, string>[] ComboItemsForType { get; set; }
Property Value
The id of the current item is automatically passed to the query if it has a @currentItem parameter. This formula allows you to take that current item and return a different id instead.
Declaration
public string CurrentIDFormula { get; set; }
Property Value
This formula allows you to take that current item and return a different id from @currentItem parameter.
Declaration
public string CurrentIDFormula2 { get; set; }
Property Value
EntityTypeID
[Key] Indicates what entity you want to provide a custom lookup query for.
Declaration
[RequiredNoDefaultIDValidation]
public Guid EntityTypeID { get; set; }
Property Value
ForLookupTypeID
Indicates which type/property this lookup should be altered for
Declaration
public Guid? ForLookupTypeID { get; set; }
Property Value
ForLookupTypeProperty
Indicates which type/property this lookup should be altered for
Declaration
[StringLength(500)]
public string ForLookupTypeProperty { get; set; }
Property Value
Name
Declaration
[StringLength(500)]
public string Name { get; set; }
Property Value
The id of the parent item is automatically passed to the query if it has a @parentItem parameter. This formula allows you to take that parent item and return a different id instead.
Declaration
public string ParentIDFormula { get; set; }
Property Value
SQLWrapperID
Links to ISQLWrapper. The public sql wrapper that display all properties fo the specified entity type and will be used to override the default entity type picker view with this query
Declaration
public Guid SQLWrapperID { get; set; }
Property Value
SQLWrapperID_Label
Declaration
public string SQLWrapperID_Label { get; set; }
Property Value
SQLWrapperID_Label_Silent
Declaration
[NotMapped]
public string SQLWrapperID_Label_Silent { get; set; }
Property Value
UseOnlyForParameters
Indicates this doesn't override view controls by default but instead is used in parameter popups such as queries.
Declaration
public bool UseOnlyForParameters { get; set; }
Property Value
Methods
CopyFromEntity(IBaseEntity)
Declaration
protected override void CopyFromEntity(IBaseEntity src)
Parameters
Overrides
CopyFromSource(ICustomLookupQuery)
Updates all properties in this item to have the same properties as the source object.
Declaration
public void CopyFromSource(ICustomLookupQuery source)
Parameters
Type |
Name |
Description |
ICustomLookupQuery |
source |
The source object to copy all values from.
|
SetComboItemsForType(Func<CustomLookupQuery, KeyValuePair<string, string>[]>)
Declaration
public void SetComboItemsForType(Func<CustomLookupQuery, KeyValuePair<string, string>[]> comboItems)
Parameters
ToString()
Declaration
public override string ToString()
Returns
Overrides
Implements
Extension Methods