Retrieving list of Entities

前端 未结 2 688
梦谈多话
梦谈多话 2021-01-03 09:46

In CRM 2011 I can do the usual Create, Update, Delete operations using EarlyBoundEntities. I cant, however, seem to find an example of retrieving a list of entities using t

2条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-03 10:00

    There's actually plenty of material in the SDK on MSDN that shows how to query an entity.

    Create Queries to Retrieve Data

    Build Queries with LINQ - primarily early-bound examples

    The API provides three more or less equivalent ways to query the database (LINQ, FetchXml, and QueryExpression), though there are limitations (for example, see LINQ limitations) that you can only get around by using an on-premise installation and native SQL calls.

    For the example of the accounts with a null phone number that you gave, though, any of the three supported query methods will work.

提交回复
热议问题