Creates a LINQ Where sentence




    C# recipes

    This code uses the .Where method of the LINQ to SQL query engine to filter the collection of items based on a field that contains a text value.

    Shortcut: linq_where

    var data = from item in collection
          where .FieldName.Contains("Text")
          select ;
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    • Security
    • Privacy Policy
    • Code Privacy
    • Terms of Service
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.