Linq DateTime Bug

Jun 12, 2009 at 9:13 AM

 public abstract class tst : LinqObjectModel<tst>
    {
        public abstract DateTime dt { get; set; }

        public abstract string dt2 { get; set; }
    }

 

 

 DbEntry.Context.DropAndCreate(typeof(tst));
Line 19:             var t = tst.Find(p => p.dt <= DateTime.Now);
这样就不行 
var xxx=DateTime.Now;

 

改成 var t = tst.Find(p => p.dt <= xxx);
就没错

Coordinator
Jun 12, 2009 at 9:34 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.