示例#1
0
        public object HydrateValue(string nodeText, IGraph uow)
        {
            var dat = LengthEncoder.LengthDecode(nodeText);
            T   obj = this.HydrateStrategy(dat);

            return(obj);
        }
示例#2
0
        public object HydrateValue(string nodeText, IGraph uow)
        {
            var data = LengthEncoder.LengthDecode(nodeText);
            var dt   = DateTime.Parse(data);

            return(dt);
        }
示例#3
0
        public object HydrateValue(string nodeText, IGraph uow)
        {
            var realData = LengthEncoder.LengthDecode(nodeText);

            Type cType = TheTypeLocator.Instance.Locator.FindAssemblyQualifiedType(realData);

            Condition.Requires(cType).IsNotNull();
            var obj = ReflectionUtil.CreateUninitializedObject(cType);

            return(obj);
        }
        public object HydrateValue(string nodeText, IGraph uow)
        {
            //get the node that is already hydrated, with the same provided path
            var matches = uow.NodeStore.SearchOf <GraphNode>(LogicOfTo <GraphNode, bool> .New((x) =>
            {
                if (x.NodeValue == null)
                {
                    return(false);
                }

                return(x.Id.Equals(nodeText));
            }));

            return(LengthEncoder.LengthDecode(matches[0].Id));
        }