You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to NoRM mongodb
Hello,
I have a coolection with this structure
public class News
{
[MongoIdentifier]
public int NewsId { get; set; }
public string NewsUrl { get; set; }
public DateTime CreationDate { get; set; }
public string GroupName { get; set; }
public string Title { get; set; }
public string Description { get; set; }
}
and when I run this code
using (IMongo db = Mongo.Create(cnn))
{
IQueryable<News> news =
db.GetCollection<News>().AsQueryable();
var result = news.Max(p => p.CreationDate);
}
system generate a db assertion failure exception
I can't run any Max or Min function