コード例 #1
0
        public ClarifyGenericMapEntry BuildFromModelMap <MODEL>(ModelMap <MODEL> modelMap)
        {
            var visitor = _container.GetInstance <DovetailGenericModelMapVisitor>();

            modelMap.Accept(visitor);
            return(visitor.RootGenericMap);
        }
コード例 #2
0
        /// <summary>
        /// Inspects the model map and returns details about the identifying field of the map.
        /// </summary>
        /// <returns></returns>
        public ModelMapFieldDetails GetIdentifier()
        {
            if (!_visited)
            {
                _modelMap.Accept(_modelInspectorVisitor);
                _visited = true;
            }

            return(_modelInspectorVisitor.IndentifierField);
        }
コード例 #3
0
        public ClarifyGenericMapEntry BuildFromModelMap(ModelMap modelMap)
        {
            var visitor = _container.GetInstance <DovetailGenericModelMapVisitor>();

            modelMap.Accept(visitor);
            var generic = visitor.RootGenericMap;

            generic.Entity = modelMap.Entity;

            return(generic);
        }