entity framework 中查询条件如果像这样写:context.Userinfo.where("")的话,查询有时间约束是,一定要这样写: strWhere = "it.JION_TIME<datetime'" + t2 + "'";