Thursday, 28 February 2019

Early Vs Late binding in Dynamics CRM

Ref: https://dynamics-crm.blog/2017/05/05/early-vs-late-binding-in-dynamic-crm/

While working on plugins and custom workflow, We encounter a problem that we need extract data from existing and custom entity. There are two ways to do this job one is Early binding and another is late binding. Let’s see how we can do that.
  1. Early Binding
  2. Late Binding
Early Binding 
By Early binding, we mean that we generate domain class objects first and then assign data to these domains class objects is known as Early Binding.
How to generate Entities.cs class using XRM Tool
Download XRM Tool Box. http://www.xrmtoolbox.com/
Connect to CRM Connection.
Pics
Go to EarlyBoundGenerator
Pics
If Not installed please install from plugin store.
Just click Create Entities
Pics
Once entities are created you need to push this file into your workspace. Once added they can be used to initialize that entity and pass data in that entity object.
Late Binding in dynamic CRM
No need to generate helper classes and at runtime all type checking will be done operations and type checking will be performed at run time itself.

Pics
You can find further code at following location
Thanks for reading …..

No comments:

Post a Comment

𝗣𝗼𝘄𝗲𝗿 𝗣𝗹𝗮𝘁𝗳𝗼𝗿𝗺 𝗜𝗻𝘁𝗲𝗿𝘃𝗶𝗲𝘄 𝗤𝘂𝗲𝘀𝘁𝗶𝗼𝗻𝘀 – 𝗕𝗲𝗴𝗶𝗻𝗻𝗲𝗿 𝘁𝗼 𝗘𝘅𝗽𝗲𝗿𝘁

  🔰 𝗣𝗼𝘄𝗲𝗿 𝗣𝗹𝗮𝘁𝗳𝗼𝗿𝗺 𝗜𝗻𝘁𝗲𝗿𝘃𝗶𝗲𝘄 𝗤𝘂𝗲𝘀𝘁𝗶𝗼𝗻𝘀 – 𝗕𝗲𝗴𝗶𝗻𝗻𝗲𝗿 𝘁𝗼 𝗘𝘅𝗽𝗲𝗿𝘁 🚀 🟢 𝗕𝗲𝗴𝗶𝗻𝗻𝗲𝗿 / 𝗝𝘂𝗻...