1
使用組有這樣的LINQ query.I想展示ab.InTime和DbFunctions值一起我如何通過功能DbFunctions.DiffMinutes
var sdv = (from ab in db.Attendances
where ab.Employee == 63 && ab.InTime.Value.Year == 2015 && ab.InTime.Value.Month == 8
select ab.InTime,DbFunctions.DiffMinutes(ab.InTime, ab.OutTime)/60);
不客氣:) @akash –