[CSHARP-62] The member TotalDays is not supported. Created: 09/Sep/10  Updated: 19/Oct/16  Resolved: 09/Sep/10

Status: Closed
Project: C# Driver
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: zhengliangjun Assignee: Steve Wagner
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

vs2008



 Description   

when I debug the statement: table.Remove(m => ((DateTime.Now - m.Createtime).TotalDays) > 14);
throw new exception



 Comments   
Comment by Steve Wagner [ 09/Sep/10 ]

MongoDB dose not support this type of querys.

To get that work you should remove all between now and now-14 days.

Generated at Wed Feb 07 21:35:42 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.