예제 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="FluidityCollectionConfig"/> class.
        /// </summary>
        /// <param name="entityType">Type of the entity.</param>
        /// <param name="idPropertyExpression">The identifier property expression.</param>
        /// <param name="nameSingular">The singular name.</param>
        /// <param name="namePlural">The plural name.</param>
        /// <param name="description">The description.</param>
        /// <param name="iconSingular">The singular icon.</param>
        /// <param name="iconPlural">The plural icon.</param>
        protected FluidityCollectionConfig(Type entityType, LambdaExpression idPropertyExpression, string nameSingular, string namePlural, string description, string iconSingular = null, string iconPlural = null)
        {
            _idProperty      = idPropertyExpression;
            _entityType      = entityType;
            _alias           = nameSingular.ToSafeAlias(true);
            _nameSingular    = nameSingular;
            _namePlural      = namePlural;
            _description     = description;
            _iconSingular    = iconSingular ?? "icon-folder";
            _iconPlural      = iconPlural ?? "icon-folder";
            _isVisibleInTree = true;

            _containerMenuItems   = new List <MenuItem>();
            _entityMenuItems      = new List <MenuItem>();
            _searchableProperties = new List <FluidityPropertyConfig>();
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="FluidityListViewFieldConfig"/> class.
 /// </summary>
 /// <param name="propertyExpression">The property expression.</param>
 protected FluidityListViewFieldConfig(LambdaExpression propertyExpression)
 {
     _property = propertyExpression;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="FluidityEditorFieldConfig"/> class.
 /// </summary>
 /// <param name="propertyExpression">The property exp.</param>
 protected FluidityEditorFieldConfig(LambdaExpression propertyExpression)
 {
     _property = propertyExpression;
 }