MIN and MAX value by string in Entity Framework
问题 I have database table. The ORM for it is: public long Id { get; set; } public System.Guid AttrId { get; set; } public System.Guid ProdId { get; set; } public string Value { get; set; } public virtual Attributes Attributes { get; set; } public virtual Products Products { get; set; } As you can see value is a string type. I'm trying to get min and max values by this field (some values represented as double). So here is my method for this: public double[] GetMaxMinVals(Guid attrId) { double[]