예제 #1
0
        public static GenericVM ToVM(this Type type, object data)
        {
            TableMeta meta = _metaCache.GetOrAdd(type, AddMeta);


            var result = new GenericVM(meta);

            result.Data = data.ToDynamic();


            return(result);
        }
예제 #2
0
        public static GenericVM ToVM(this object value)
        {
            var _type = value.GetType();

            TableMeta meta = _metaCache.GetOrAdd(_type, AddMeta);


            var result = new GenericVM(meta);

            result.Data = value.ToDynamic();


            return(result);
        }