Entity SQL:关于时间比较

 

if (myDateFilter != null)
{
    query = query.Where(
        string.Format(
            "it.ExpireDate < cast('{0}' as System.DateTime)",
            myDateFilter));
}

 

 

posted @ 2010-05-18 18:27  53455121  阅读(254)  评论(0编辑  收藏  举报