Browsing All Posts filed under »LINQ«

CRM 2011 – CRM and LINQPad – An excellent way to test you LINQ CRM queries

May 16, 2011

2

If you are using CRM 2011 with an on premise then you should be taking advantage of the new LINQ capabilities.  LINQ is really good to use because it’s basically means that instead of writing SQL queries you can write .NET code to access the database.  One warning I will give you is LINQ is […]

CRM 4 LINQ examples

May 7, 2011

1

Before Microsoft released CRM 2011 they warmed up many of the features like early bound classes and LINQ with later rollups of CRM 4 and the advanced developer extensions. I have been busy working with CRM 2011 and haven’t yet used early bound classes and linq in CRM 4 yet, as I mainly asked to […]

CRM 2011 – When to Attach an entity to the OrganizationServiceContext

April 14, 2011

0

I have been writing some plugins in CRM 2011 and for each plugin I use I usually setup a class which does link querying.  To do this I pass the OrganisationServiceContext In my plugin I create this // Get a reference to the Organization service. IOrganizationServiceFactory factory = (IOrganizationServiceFactory)serviceProvider.GetService(typeof(IOrganizationServiceFactory)); IOrganizationService service = factory.CreateOrganizationService(context.UserId); Microsoft.Xrm.Sdk.Client.OrganizationServiceContext orgContext […]

CRM 2011 – Getting Started with LINQ in CRM 2011

February 28, 2011

3

I have been using LINQ with CRM 2011 and I have to say it’s awesome.  It’s a great way to code without having to write connectors to SQL databases.  I used to spend hours and days writing database code when I was a Java programmer, not to mention I am always forgetting how to write […]

CRM 2011 – OptionSetValue returned in LINQ only returns int value

February 21, 2011

6

I was using LINQ to retrieve multiple rows and I am loving that but I was doing a linq query to get the different address for an account. This worked fine except I wanted to check the address type by name.  So I wanted to retrieve the Primary address.  I found out that in LINQ, […]

CRM 2011 – How to use guids in LINQ queries

February 21, 2011

0

This took me a bit of time to work out but in the end it’s very simple.  You can’t just reference a guid as a string, you have to create a guid type or cast it to be a guid.  Amusingly I had to select the guid to make find out what the guid was […]

CRM 2011 – Early bound LINQ queries

February 18, 2011

6

I have been trying to get my head around LINK and OData today.  OData was really giving me the run around, trying to bring the sample into a piece of Javascript was very frustrating. I am a big fan of Early bound data in CRM 2011, I just like to know what I am using […]

CRM 2011 – LINQ Videos

February 14, 2011

0

I have been using LINQ in CRM 2011 recently and I am loving it and I also need to study LINQ for the .NET 4 exam.  So I was looking for some videos about LINQ so I could understand using in CRM but also some more general videos. this first video is great for CRM […]