/// <summary> /// This Method is a javascript callable method. /// </summary> /// <param name="e">A parameter from javascript.</param> /// <param name="y">A callback to javascript.</param> public void WebMethod2() { var x = new Data.PerformanceResourceTimingData2.ApplicationResourcePerformance(); // += ? x.Insert( new Data.PerformanceResourceTimingData2ApplicationResourcePerformanceRow { duration = 46, path = " /zfoo/BAR/ " } ); var q = from u in new Data.PerformanceResourceTimingData2.ApplicationResourcePerformance() join uu in new Data.PerformanceResourceTimingData2.ApplicationResourcePerformance() on u.startTime equals uu.startTime //group u by u.path into ggg group new { u, uu } by u.path into ggg //let u = g.Last() select new Data.PerformanceResourceTimingData2ApplicationResourcePerformanceRow { path = ggg.Last().u.path }; var f = q.FirstOrDefault(); Debugger.Break(); }
/// <summary> /// This Method is a javascript callable method. /// </summary> /// <param name="e">A parameter from javascript.</param> /// <param name="y">A callback to javascript.</param> public void WebMethod2() { var x = new Data.PerformanceResourceTimingData2.ApplicationResourcePerformance(); // += ? x.Insert( new Data.PerformanceResourceTimingData2ApplicationResourcePerformanceRow { duration = 46, path = " /zfoo/BAR/ " } ); var q = from u in new Data.PerformanceResourceTimingData2.ApplicationResourcePerformance() join uu in new Data.PerformanceResourceTimingData2.ApplicationResourcePerformance() on u.startTime equals uu.startTime //group u by u.path into ggg group new { u, uu } by u.path into ggg //let u = g.Last() select new Data.PerformanceResourceTimingData2ApplicationResourcePerformanceRow { path = ggg.Last().u.path }; var f = q.FirstOrDefault(); Debugger.Break(); }
/// <summary> /// This Method is a javascript callable method. /// </summary> /// <param name="e">A parameter from javascript.</param> /// <param name="y">A callback to javascript.</param> public void WebMethod2() { var x = new Data.PerformanceResourceTimingData2.ApplicationResourcePerformance(); // += ? x.Insert( new Data.PerformanceResourceTimingData2ApplicationResourcePerformanceRow { duration = 46, path = " /zfoo/BAR/ " } ); var q = from u in new Data.PerformanceResourceTimingData2.ApplicationResourcePerformance() join uu in new Data.PerformanceResourceTimingData2.ApplicationResourcePerformance() on u.startTime equals uu.startTime select new //Data.PerformanceResourceTimingData2ApplicationResourcePerformanceRow { path = u.path, //duration = (long)u.Key duration = u.Key }; var s = from i in q //group u by u.path into ggg group i by i.path into ggg //let u = g.Last() select new Data.PerformanceResourceTimingData2ApplicationResourcePerformanceRow { //path = ggg.Last().path.ToLower() path = ggg.Last().path, duration = (long)ggg.Last().duration }; var f = q.FirstOrDefault(); Debugger.Break(); }
/// <summary> /// This Method is a javascript callable method. /// </summary> /// <param name="e">A parameter from javascript.</param> /// <param name="y">A callback to javascript.</param> public void WebMethod2() { var x = new Data.PerformanceResourceTimingData2.ApplicationResourcePerformance(); // += ? x.Insert( new Data.PerformanceResourceTimingData2ApplicationResourcePerformanceRow { duration = 46, path = " /zfoo/BAR/ " } ); var q = from u in new Data.PerformanceResourceTimingData2.ApplicationResourcePerformance() join uu in new Data.PerformanceResourceTimingData2.ApplicationResourcePerformance() on u.startTime equals uu.startTime select new //Data.PerformanceResourceTimingData2ApplicationResourcePerformanceRow { path = u.path, //duration = (long)u.Key duration = u.Key }; var s = from i in q //group u by u.path into ggg group i by i.path into ggg //let u = g.Last() select new Data.PerformanceResourceTimingData2ApplicationResourcePerformanceRow { //path = ggg.Last().path.ToLower() path = ggg.Last().path, duration = (long)ggg.Last().duration }; var f = q.FirstOrDefault(); Debugger.Break(); }