Hi all,
We are facing the situation when we need to develop a library in C# for the communication with the CRM system. Our server serves two different instances - two different organizations with separated databases.
Requirements for the library:
- use early-bound instead of late-bound (because of type safety)
- able to communicate with two different organizations - they can differ in entity parameters or in entities existence (one organization can contain entity which is not present in the second one)
The question is, if there is some approach in CRM development which will allows this functionality, i.e. to support early-bound for different organization in one library. I suppose that I will have to generate two different data context files (for each organization) with the crmsvcutil tool and switch dynamically between the organization contexts according the organization to which I would like to be connected.
I know that one approach is to use late bound but I would like to use early bound because of type safety.
Thanks
Pavel