private string GetJoinIdValue(Field field) { object join = new ValueFieldExtractor(objectInsert, field).Extract(); Entity entityJoin = DictionaryEntitiesMap.INSTANCE.GetEntity(join.GetType()); Field idField = entityJoin.FieldDictionary["id"]; return new ValueFieldFormatted(join, idField).Format(); }
public string Format() { var value = new ValueFieldExtractor(objectValue, field).Extract(); if (IsNumber()) return value.ToString(); if (IsDateTime(value)) return GetDateValue(value); return GetValueText(value); }
private bool IsEqualsField(object obj, Field field) { var aspect = DictionaryEntitiesAspects.GetInstance().GetAspect(obj); if (aspect == null) return obj == null; var valueA = new ValueFieldExtractor(obj, field).Extract(); var valueB = new ValueFieldExtractor(aspect, field).Extract(); return IsEqualsObjects(valueA, valueB); }
public string Format() { var value = new ValueFieldExtractor(objectValue, field).Extract(); return IsNumber() ? value.ToString() : GetValueText(value); }
private void ProcessJoins(object obj, Field f) { var objJoin = new ValueFieldExtractor(obj, f).Extract(); DictionaryEntitiesAspects.GetInstance().AddOrRefreshAspect(objJoin); }
private void ProcessJoin(Field field) { var objectJoin = new ValueFieldExtractor(objectCommand, field).Extract(); new NonQueryCommandsExecutor(objectJoin).Execute(); }
public string Format() { var value = new ValueFieldExtractor(objectValue, field).Extract(); return(IsNumber() ? value.ToString() : GetValueText(value)); }
private void ProcessJoin(Field field) { var objectJoin = new ValueFieldExtractor(objectCommand, field).Extract(); if (objectJoin == null) return; new NonQueryCommandsExecutor(objectJoin).Execute(); }