public ClarifyGenericMapEntry BuildFromModelMap <MODEL>(ModelMap <MODEL> modelMap) { var visitor = _container.GetInstance <DovetailGenericModelMapVisitor>(); modelMap.Accept(visitor); return(visitor.RootGenericMap); }
/// <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); }
public ClarifyGenericMapEntry BuildFromModelMap(ModelMap modelMap) { var visitor = _container.GetInstance <DovetailGenericModelMapVisitor>(); modelMap.Accept(visitor); var generic = visitor.RootGenericMap; generic.Entity = modelMap.Entity; return(generic); }