Linq to CRM 0.2.0

Posted on |

Got a new version of LinqtoCRM running, but it is not nearly as big an improvement as I had hoped. While Matt Warren’s posts proved a big boost, some of the stuff is not applicable to CRM (eg. constructing expression trees so they can be StringBuilded sequentially to SQL) and some of it I just have to think about some more.

Anyway, go get it while it’s hot.

One thought on “Linq to CRM 0.2.0”

  • Absolutely love LinqtoCRM. This is how easy access to CRM data should be.

    I found out today that when I queried a field that had no value, in my case the purpose field in a list, it caused the following error which I “fixed” by making sure the field was populated.

    Thank you again for such a great project.

    System.NullReferenceException was unhandled
    Message=”Object reference not set to an instance of an object.”
    Source=”Query5″
    StackTrace:
    at Sample.CrmQueryProvider.c__DisplayClass3`1.b__1(PropertyInfo p) in C:\Documents and Settings\Jim\My Documents\Visual Studio 2008\Projects\LINQtoCRM\CrmQueryProvider.cs:line 67
    at System.Linq.Enumerable.d__d`2.MoveNext()
    at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
    at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
    at Sample.CrmQueryProvider.d__5`1.MoveNext() in C:\Documents and Settings\Jim\My Documents\Visual Studio 2008\Projects\LINQtoCRM\CrmQueryProvider.cs:line 66
    at Sample.Program.Main(String[] args) in C:\Documents and Settings\Jim\My Documents\Visual Studio 2008\Projects\LINQtoCRM\Program.cs:line 44
    at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
    at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
    at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
    at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
    at System.Threading.ThreadHelper.ThreadStart()
    InnerException:

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>