Project Description
This project provides a library to simplify Microsoft CRM 4.0 development. It provides functionality, developed in C#, to allow you to use custom .NET objects and properties and map them to CRM entities and attributes.

Some features include:

* Helpful extension methods for the CRM Service.
* Allows you to use custom strongly-typed objects with the CRM Service, without having to convert them to dynamic entities or downloading the latest WSDL.

The simple mapping between custom objects and CRM types that this toolkit provides means that managing, data-binding and extending CRM types can be accomplished with ease. This is ideal for any developer whether you're working with a small web application or a large scaled n-tier solution.

Note: This is for MS CRM 4.0.

Example

    using Streamsol.Crm;
    using Streamsol.Crm.XrmDevelopmentToolkit;

    public class XrmDevelopment
    {
        public static void Foo()
        {
            CrmService service = GetCrmService();

            Guid entityId = new Guid("ED884DC9-49E4-4a97-AFC9-330B84C18114");

            MyCustomObject cObject = service.Retrieve<MyCustomObject>(entityId);
        }
    }

    /// <summary>
    /// A custom object that will be mapped to an entity within the CRM organization
    /// </summary>
    [XrmEntity("contact")]
    public class MyCustomObject : IXrmEntity
    {
        public Guid Id { get; set; }

        [XrmFieldMapping("firstname")]
        public string FirstName { get; set; }

        [XrmFieldMapping("lastname")]
        public string LastName { get; set; }

        [XrmFieldMapping("createdon", CrmType = AttributeType.DateTime)]
        public DateTime CreatedOn { get; set; }

        public MyCustomObject()
        { }
    }

Last edited Feb 22, 2010 at 10:20 PM by kgooding, version 13