Exemple #1
0
        internal static ComboListConfig CreateComboList(EntityPropertyViewMeta property)
        {
            var comboList = new ComboListConfig();

            comboList.model = ClientEntities.GetClientName(property.SelectionViewMeta.SelectionEntityType);

            var title = property.SelectionViewMeta.RefTypeDefaultView.TitleProperty;
            if (title != null) { comboList.displayField = title.Name; }

            var dsp = property.SelectionViewMeta.DataSourceProperty;
            if (dsp != null) { comboList.dataSourceProperty = dsp.Name; }

            return comboList;
        }
Exemple #2
0
        internal static ComboListConfig CreateComboList(EntityPropertyViewMeta property)
        {
            var comboList = new ComboListConfig();

            comboList.model = ClientEntities.GetClientName(property.SelectionViewMeta.SelectionEntityType);

            var title = property.SelectionViewMeta.RefTypeDefaultView.TitleProperty;

            if (title != null)
            {
                comboList.displayField = title.Name;
            }

            var dsp = property.SelectionViewMeta.DataSourceProperty;

            if (dsp != null)
            {
                comboList.dataSourceProperty = dsp.Name;
            }

            return(comboList);
        }