entity-functions

Can't get EntityFunctions.TruncateTime() to work

一个人想着一个人 提交于 2019-11-27 19:42:23
I am using Entity Framework Code First. Using LINQ to Entity I want to grab a record based on a DateTime value. Here is my current code: /// <summary> /// A method to check and see if the Parsed Game already exists on the /// database. If Yes, then True is returned, otherwise False is returned. /// </summary> /// <param name="context">The Db Context to use</param> /// <param name="homeTeam">The Name of the Home Team for the Game.</param> /// <param name="awayTeam">The Name of the Away Team for the Game.</param> /// <param name="date">The Date of the Game</param> /// <returns></returns> public

Can't get EntityFunctions.TruncateTime() to work

末鹿安然 提交于 2019-11-26 19:58:07
问题 I am using Entity Framework Code First. Using LINQ to Entity I want to grab a record based on a DateTime value. Here is my current code: /// <summary> /// A method to check and see if the Parsed Game already exists on the /// database. If Yes, then True is returned, otherwise False is returned. /// </summary> /// <param name="context">The Db Context to use</param> /// <param name="homeTeam">The Name of the Home Team for the Game.</param> /// <param name="awayTeam">The Name of the Away Team