public CategoryViewModel(DbObject model, MetadataViewModelBase parent, MetadataType type) : base(parent, true) { Type = type; _model = model; _categoryName = _pluralizer.Pluralize(type.ToString()); ExpandChanged += OnExpandChanged; }
public DbObjectViewModel(MetadataViewModelBase parent, DbObject model) : base(parent, AppContext.Current.Resolver.Get <IDialectComponent>().Hierarchy.Structure.GetValueOrDefault(model.Type)?.HasChildren ?? false) { Model = model; }