locked
Early binding vs Late Binding in Ms Crm - c# RRS feed

  • Question

  • Hello guys ,

    I wanted to know in general - when to use early binding and when to use late binding

    For example , I want to create new record in Ms Crm by c# :

    Code snippet 1 (Late binding) :

     Entity e =new Entity();

     e.LogicalName = "account";

     e.Attributes["new_firstname"] = "data";

     _serviceProxy.Create(e);

    Code snippet 2 (Early binding) :

     Account account = new Account { FirstName = "data" };

     _serviceProxy.Create(account);

    I would appreciate any suggestions regarding this.

    Thanks , 
    Om
    Friday, August 8, 2014 12:03 PM

Answers

  • check this 

    http://www.magnetismsolutions.com/blog.aspx/roshan-mehtas-blog/2012/05/04/dynamics_crm_2011_early_vs._late_binding_overview

    http://social.microsoft.com/Forums/en-US/a22fc5e2-7acc-4054-a7ae-8aea65aebaf2/crm2011-early-binding-vs-late-binding-performance-view-point?forum=crmdevelopment


    ms crm

    • Marked as answer by Om Ms crm Friday, August 8, 2014 12:56 PM
    Friday, August 8, 2014 12:07 PM

All replies

  • check this 

    http://www.magnetismsolutions.com/blog.aspx/roshan-mehtas-blog/2012/05/04/dynamics_crm_2011_early_vs._late_binding_overview

    http://social.microsoft.com/Forums/en-US/a22fc5e2-7acc-4054-a7ae-8aea65aebaf2/crm2011-early-binding-vs-late-binding-performance-view-point?forum=crmdevelopment


    ms crm

    • Marked as answer by Om Ms crm Friday, August 8, 2014 12:56 PM
    Friday, August 8, 2014 12:07 PM
  • Hello Reddy A ,

    Thanks for you response.

    I found suggested links helpful.

    Regards ,

    Om


    • Edited by Om Ms crm Friday, August 8, 2014 12:58 PM
    Friday, August 8, 2014 12:57 PM