Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 4
0
 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);
 }
Ejemplo n.º 6
0
        private void ProcessJoin(Field field)
        {
            var objectJoin = new ValueFieldExtractor(objectCommand, field).Extract();

            new NonQueryCommandsExecutor(objectJoin).Execute();
        }
Ejemplo n.º 7
0
        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();
        }