Пример #1
0
        public CategoryViewModel(DbObject model, MetadataViewModelBase parent, MetadataType type) : base(parent, true)
        {
            Type          = type;
            _model        = model;
            _categoryName = _pluralizer.Pluralize(type.ToString());

            ExpandChanged += OnExpandChanged;
        }
Пример #2
0
 public DbObjectViewModel(MetadataViewModelBase parent, DbObject model) : base(parent, AppContext.Current.Resolver.Get <IDialectComponent>().Hierarchy.Structure.GetValueOrDefault(model.Type)?.HasChildren ?? false)
 {
     Model = model;
 }