예제 #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();
        }
예제 #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);
        }
예제 #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);
 }
예제 #6
0
        private void ProcessJoin(Field field)
        {
            var objectJoin = new ValueFieldExtractor(objectCommand, field).Extract();

            new NonQueryCommandsExecutor(objectJoin).Execute();
        }
예제 #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();
        }