public EdgeViewRegister(string nodeName, string schema, string edgeViewName, Dictionary <string, string> attributeTypeDictionary, Dictionary <Tuple <string, string>, List <Tuple <string, string> > > edgesAttributeMappingDictionary, Dictionary <Tuple <string, string>, int> edgeColumnToColumnId) { CSharpTemplate = new EdgeViewGraphViewCodeTemplate { EdgeName = edgeViewName, AttributeTypeDict = attributeTypeDictionary, Mapping = edgesAttributeMappingDictionary, ColumnId = edgeColumnToColumnId }; var edgeDictionary = new List <Tuple <string, int, List <Tuple <string, string> > > > { new Tuple <string, int, List <Tuple <string, string> > >(edgeViewName, 0, attributeTypeDictionary.Select(x => Tuple.Create(x.Key, x.Value)).ToList()) }; ScriptTemplate = new DeployScriptTemplate { AssemblyName = schema + '_' + nodeName, Type = 1, NodeTable = edgeViewName, EdgeList = edgeDictionary, InputCount = edgesAttributeMappingDictionary.Count, UserId = null }; _exceptionMessage = "Failed to compile EdgeView function"; }
public EdgeViewRegister(string nodeName, string schema, string edgeViewName, Dictionary<string, string> attributeTypeDictionary, Dictionary<Tuple<string, string>, List<Tuple<string, string>>> edgesAttributeMappingDictionary, Dictionary<Tuple<string, string>, int> edgeColumnToColumnId) { CSharpTemplate = new EdgeViewGraphViewCodeTemplate { EdgeName = edgeViewName, AttributeTypeDict = attributeTypeDictionary, Mapping = edgesAttributeMappingDictionary, ColumnId = edgeColumnToColumnId }; var edgeDictionary = new List<Tuple<string, int, List<Tuple<string, string>>>> { new Tuple<string, int, List<Tuple<string, string>>>(edgeViewName, 0, attributeTypeDictionary.Select(x => Tuple.Create(x.Key, x.Value)).ToList()) }; ScriptTemplate = new DeployScriptTemplate { AssemblyName = schema + '_' + nodeName, Type = 1, NodeTable = edgeViewName, EdgeList = edgeDictionary, InputCount = edgesAttributeMappingDictionary.Count, UserId = null }; _exceptionMessage = "Failed to compile EdgeView function"; }