79306746

Date: 2024-12-25 02:21:15
Score: 1
Natty:
Report link

SUBSTR and LENGTH is more compatible with all kinds of SQL databases and ORMs.

            IEnumerable<KeyValue> keyValues = Db.KeyValue
                .Where(kv => EF.Functions.Substr(kv.Key.KeyBytes, 1, key.Length).SequenceEqual(key));
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: 2474101468