> 実行するとエラーがでるなー、むー。
うちでは特に問題なく計算出来てるみたい。
static void Main(string[] args)
{
using (var db = new DataClasses1DataContext())
{
var result = db.Table1.Average(_ => SqlMethods.DateDiffMillisecond(_.DateTime2_a, _.DateTime2_b));
Console.Out.WriteLine(result);
}
}
Dim dateDiffAverage = Aggregate datediff In _ (From table1 In db.Table1 _ Select SqlMethods.DateDiffMillisecond(table1.Datatime2_a, table1.Datatime2_b)) _ Into Average(datediff)