locked
how conanical function map in linq scenarios. RRS feed

  • Question

  • User2102072086 posted

    hi,

       <g class="gr_ gr_30 gr-alert gr_tiny gr_spell gr_inline_cards gr_run_anim ContextualSpelling multiReplace" id="30" data-gr-id="30">i</g> could not get these lines if u have any example please send me following lines are from this link "https://msdn.microsoft.com/en-us/library/bb738626(v=vs.100).<g class="gr_ gr_28 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling" id="28" data-gr-id="28">aspx</g>"

    "For LINQ scenarios, queries against the Entity Framework involve mapping CLR methods to methods in the underlying data source. The CLR methods map to canonical functions so that a specific set of methods will correctly map, regardless of the data source."

    and

    https://msdn.microsoft.com/en-us/library/bb386964(v=vs.100).aspx

    "LINQ operators are not defined by a class, but rather are
    methods on a class."

    yours sincerely

    Saturday, May 5, 2018 5:23 AM

All replies

  • User1163516801 posted

    For LINQ scenarios, queries against the Entity Framework involve mapping CLR methods to methods in the underlying data source. The CLR methods map to canonical functions so that a specific set of methods will correctly map, regardless of the data source.

    You can refer to https://docs.microsoft.com/en-us/dotnet/framework/data/adonet/ef/language-reference/clr-method-to-canonical-function-mapping which could be helpful for your further understanding. 

    LINQ operators are not defined by a class, but rather are methods on a class

    This is simple. all LINQ operators are methods, should be contained in a class.

    <audio controls="controls" style="display: none;"></audio>

    Monday, May 7, 2018 7:27 AM