locked
Issue in Mixing Static Classes with Dynamic Methods in XRM 4.0 RRS feed

  • Question

  • I am using XRM 4.0 development extension .i got  issue when mix the static class with dynamic method.

    e.g:

    var contact = crm.CreateEntity("contact") as contact;

     

    // The entity can be managed statically or dynamically.

    contact.firstname = "Allison";

    contact.SetPropertyValue("lastname", "Brown");

    So when i use this code of sdk for mixing Class with mehtod  then 'SetPropertyValue' funcion was not visible. this method was visible only when i declare the object  as

    var contact = crm.CreateEntity("contact")

    than ''SetPropertyValue'  was visible .

    If i used var contact = crm.CreateEntity("contact") as contact, than ''SetPropertyValue'   was not visible.

     

    Thanks in Advance for solution.

     

     

     

    Thursday, August 19, 2010 12:05 PM

Answers

All replies