protected Vertex CreateNewSettingReadoutOnSet(TypesSettingScope typesSettingScope, Dictionary<String, String> _Settings) { var payload = new Dictionary<String, Object>(); payload.Add(DBConstants.SettingScopeAttribute, typesSettingScope.ToString()); foreach (var aSetting in _Settings) { payload.Add(aSetting.Key, aSetting.Value); } return new Vertex(payload); }
private Vertex CreateNewATTRIBUTESettingReadoutOnSet(TypesSettingScope myTypesSettingScope, GraphDBType myDBType, List<IDChainDefinition> myAttributes, Dictionary<String, String> mySettings) { var payload = new Dictionary<String, Object>(); payload.Add(DBConstants.SettingScopeAttribute, myTypesSettingScope.ToString()); payload.Add(TypesSettingScope.TYPE.ToString(), myDBType.Name); var attributes = new List<Vertex>(); foreach (var _Attribute in myAttributes) { var innerPayload = new Dictionary<String, Object>(); innerPayload.Add(TypesSettingScope.ATTRIBUTE.ToString(), _Attribute.LastAttribute.Name); foreach (var aSetting in mySettings) { innerPayload.Add(aSetting.Key, aSetting.Value); } attributes.Add(new Vertex(innerPayload)); } payload.Add(DBConstants.SettingAttributesAttribute, new Edge(null, attributes) { EdgeTypeName = DBConstants.SettingAttributesAttributeTYPE }); return new Vertex(payload); }