public WeakReferencedTypeViewModel(TypeVersion parentObj, Type weakReferencedType, TypeVersionViewModel parentObject, SessionBase session, SchemasViewModel schemasViewModel)
     : base(parentObject, true)
 {
     _weakReferencedType = weakReferencedType;
     _session            = session;
     _parentId           = parentObj.Id;
     _schemasViewModel   = schemasViewModel;
     //_isEncodedOidArray = parentObj.Type.IsAssignableFrom(typeof(BTreeNode)) && parentObj.Type.IsArray && (member.Field.Name == "keysArray" || member.Field.Name == "valuesArray");
     _isEncodedOidArray = _isEncodedOidArray || parentObj.GetType().IsGenericType&& parentObj.GetType().GetGenericTypeDefinition() == typeof(WeakReferenceList <>);
 }
 public DataMemberViewModel(TypeVersion parentObj, DataMember member, TypeVersionViewModel parentObject, SessionBase session, SchemasViewModel schemasViewModel)
     : base(parentObject, true)
 {
     m_member            = member;
     m_session           = session;
     m_parentId          = parentObj.Id;
     m_isEncodedOidArray = parentObj.Type.IsAssignableFrom(typeof(BTreeNode)) && parentObj.Type.IsArray && (member.Field.Name == "keysArray" || member.Field.Name == "valuesArray");
     m_isEncodedOidArray = m_isEncodedOidArray || parentObj.GetType().IsGenericType&& parentObj.GetType().GetGenericTypeDefinition() == typeof(WeakReferenceList <>);
     m_fieldAsString     = member.ToString();
     _schemasViewModel   = schemasViewModel;
 }
Exemple #3
0
 public TypeVersionViewModel(TypeVersion typeVersion, TreeViewItemViewModel parentDatabase, SchemasViewModel schemaViewModel)
     : base(parentDatabase, true)
 {
     _typeVersion     = typeVersion;
     _schemaViewModel = schemaViewModel;
 }
 public TypeViewModel(SchemasViewModel schemaViewModel, VelocityDbType type)
     : base(schemaViewModel, true)
 {
     _type             = type;
     _schemasViewModel = schemaViewModel;
 }