<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="http://www.codeplex.com/rss.xsl"?><rss version="2.0"><channel><title>LINQ to Active Directory</title><link>http://www.codeplex.com/LINQtoAD/Project/ProjectRss.aspx</link><description>LINQ to Active Directory implements a custom LINQ query provider that allows querying objects in Active Directory. Internally, queries are translated into LDAP filters which are sent to the server ...</description><item><title>New Post: What about quering GC?</title><link>http://www.codeplex.com/LINQtoAD/Thread/View.aspx?ThreadId=33489</link><description>&lt;div style="line-height: normal;"&gt;LinqToAD is a nice pice of code!&lt;br&gt;
But what about searching the Global Catalog (a.k.a. cross domain search)?&lt;br&gt;
&lt;/div&gt;</description><author>ggarbuglia</author><pubDate>Thu, 14 Aug 2008 00:04:37 GMT</pubDate><guid isPermaLink="false">New Post: What about quering GC? 20080814120437A</guid></item><item><title>Created Issue: LINQ query to both Users and Groups</title><link>http://www.codeplex.com/LINQtoAD/WorkItem/View.aspx?WorkItemId=2571</link><description>I&amp;#39;d love to be able to write queries that hit both users and groups. Groups have a members property that is a string&amp;#91;&amp;#93; and Users have a Groups property tat is a string&amp;#91;&amp;#93;, too. If these were a List&amp;#60;T&amp;#62; instead of a string&amp;#91;&amp;#93; we could cross query them much easier.&lt;br /&gt;&lt;br /&gt;Nice tool overall, though. But that&amp;#39;s my wish &amp;#58;&amp;#41;&lt;br /&gt;</description><author>johnpapa</author><pubDate>Thu, 14 Aug 2008 00:03:18 GMT</pubDate><guid isPermaLink="false">Created Issue: LINQ query to both Users and Groups 20080814120318A</guid></item><item><title>Created Release: LINQ to Active Directory Refresh Release 1.0.1 (Jul 31, 2008)</title><link>http://www.codeplex.com/LINQtoAD/Release/ProjectReleases.aspx?ReleaseId=15857</link><description>&lt;div&gt;
&lt;h1&gt;
Refresh Release 1.0.1
&lt;/h1&gt; &lt;br&gt;Includes bug fixes and support for:&lt;br&gt; &lt;br&gt;&lt;ul&gt;
&lt;li&gt;byte[]- and &lt;b&gt;GUID-valued directory attributes&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Bug fix&lt;/b&gt; for non-constant EndsWith, BeginsWith and Contains clauses.&lt;/li&gt;&lt;li&gt;Introduction of &lt;b&gt;DirectoryContext&lt;/b&gt; with support for nested contexts and direct update support.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Extension methods&lt;/b&gt; for DirectorySearcher and DirectoryEntry classes to create queryable objects on the fly.&lt;/li&gt;&lt;li&gt;Support for &lt;b&gt;DirectorySearcher&lt;/b&gt; in data source and context constructors enabling more flexibility for search options.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Updated samples&lt;/b&gt; to use the new available features.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</description><author></author><pubDate>Thu, 31 Jul 2008 21:15:24 GMT</pubDate><guid isPermaLink="false">Created Release: LINQ to Active Directory Refresh Release 1.0.1 (Jul 31, 2008) 20080731091524P</guid></item><item><title>Released: LINQ to Active Directory Refresh Release 1.0.1 (Jul 31, 2008)</title><link>http://www.codeplex.com/LINQtoAD/Release/ProjectReleases.aspx?ReleaseId=15857</link><description>&lt;div&gt;
&lt;h1&gt;
Refresh Release 1.0.1
&lt;/h1&gt; &lt;br&gt;Includes bug fixes and support for:&lt;br&gt; &lt;br&gt;&lt;ul&gt;
&lt;li&gt;byte[]- and &lt;b&gt;GUID-valued directory attributes&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Bug fix&lt;/b&gt; for non-constant EndsWith, BeginsWith and Contains clauses.&lt;/li&gt;&lt;li&gt;Introduction of &lt;b&gt;DirectoryContext&lt;/b&gt; with support for nested contexts and direct update support.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Extension methods&lt;/b&gt; for DirectorySearcher and DirectoryEntry classes to create queryable objects on the fly.&lt;/li&gt;&lt;li&gt;Support for &lt;b&gt;DirectorySearcher&lt;/b&gt; in data source and context constructors enabling more flexibility for search options.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Updated samples&lt;/b&gt; to use the new available features.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</description><author></author><pubDate>Thu, 31 Jul 2008 21:15:24 GMT</pubDate><guid isPermaLink="false">Released: LINQ to Active Directory Refresh Release 1.0.1 (Jul 31, 2008) 20080731091524P</guid></item><item><title>Source code checked in, #12012</title><link>http://www.codeplex.com/LINQtoAD/SourceControl/ListDownloadableCommits.aspx</link><description>Refresh Release 1.0.1 - Includes bug fixes and support for&amp;#58;&amp;#13;&amp;#10;- byte&amp;#91;&amp;#93;- and GUID-valued directory attributes&amp;#13;&amp;#10;- Bug fix for non-constant EndsWith, BeginsWith and Contains clauses&amp;#13;&amp;#10;- Introduction of DirectoryContext with support for nested contexts and direct update support&amp;#13;&amp;#10;- Updated samples to use the new available features</description><author>bdesmet</author><pubDate>Thu, 31 Jul 2008 20:48:28 GMT</pubDate><guid isPermaLink="false">Source code checked in, #12012 20080731084828P</guid></item><item><title>Commented Issue: Suggestion: Making fields like pwdLastSet usable</title><link>http://www.codeplex.com/LINQtoAD/WorkItem/View.aspx?WorkItemId=2443</link><description>I needed to be able to filter based on pwdLastSet in a query using LINQ to AD and using the SearchResult to get values instead of a DirectoryEntry made this possible. Attached is my patch for LINQ to AD that modifies DirectoryQuery.GetResults and DirectoryQuery.AssignResultProperty slightly to use the SearchResult object directly for most property lookups to allow automatic marshalling.&lt;br /&gt;Comments: ** Comment from web user: bdesmet ** &lt;p&gt;Thanks for your feedback. This will be adressed in the 1.0.1 Refresh Release.&lt;/p&gt;&lt;p&gt;Thanks,&lt;br /&gt;-Bart&lt;/p&gt;</description><author>bdesmet</author><pubDate>Thu, 31 Jul 2008 12:29:33 GMT</pubDate><guid isPermaLink="false">Commented Issue: Suggestion: Making fields like pwdLastSet usable 20080731122933P</guid></item><item><title>Commented Issue: Error when using parameters inside where clause</title><link>http://www.codeplex.com/LINQtoAD/WorkItem/View.aspx?WorkItemId=2197</link><description>I was playing around with your demo project and substituted static string text by a variable, so for example&amp;#58;&lt;br /&gt;&lt;br /&gt;           string test &amp;#61; &amp;#34;A&amp;#34;&amp;#59;&lt;br /&gt;            var res6 &amp;#61; from grp in groups&lt;br /&gt;                       where grp.Name.StartsWith&amp;#40;test&amp;#41;  &amp;#60;-- NOTE&amp;#58; Here I replaced static text with test variable&lt;br /&gt;                       select new &amp;#123; grp.Name, MemberCount &amp;#61; grp.Members.Length &amp;#125;&amp;#59;&lt;br /&gt;&lt;br /&gt;Now I get the error &amp;#39;System.NullReferenceException was unhandled&amp;#39;, the error occurs at case statement&amp;#58;&lt;br /&gt;&lt;br /&gt;                       case &amp;#34;StartsWith&amp;#34;&amp;#58;&lt;br /&gt;                            &amp;#123;&lt;br /&gt;                                ConstantExpression c &amp;#61; m.Arguments&amp;#91;0&amp;#93; as ConstantExpression&amp;#59;&lt;br /&gt;                                sb.AppendFormat&amp;#40;&amp;#34;&amp;#123;0&amp;#125;&amp;#61;&amp;#123;1&amp;#125;&amp;#42;&amp;#34;, GetFieldName&amp;#40;o.Member&amp;#41;, c.Value&amp;#41;&amp;#59; &amp;#60;--- EXCEPTION&amp;#58; on variable &amp;#39;c&amp;#39;&lt;br /&gt;                                break&amp;#59;&lt;br /&gt;                            &amp;#125;&lt;br /&gt;&lt;br /&gt;By the way thanks for this Linq class&amp;#33;&amp;#33; Excellent work&amp;#33;&lt;br /&gt;&lt;br /&gt;Yours sincerely,&lt;br /&gt;&lt;br /&gt;Evert Wiesenekker&lt;br /&gt;Comments: ** Comment from web user: bdesmet ** &lt;p&gt;This issue will be resolved in the 1.0.1 Refresh Release.&lt;/p&gt;&lt;p&gt;Thanks for the feedback,&lt;br /&gt;-Bart&lt;/p&gt;</description><author>bdesmet</author><pubDate>Thu, 31 Jul 2008 12:17:02 GMT</pubDate><guid isPermaLink="false">Commented Issue: Error when using parameters inside where clause 20080731121702P</guid></item><item><title>Commented Issue: Suggestion: Add settings for PageSize and ClientTimeout</title><link>http://www.codeplex.com/LINQtoAD/WorkItem/View.aspx?WorkItemId=2191</link><description>This implementation has a drawback which might cause queries to fail unneccesarily. To fix this I suggest that settings for PageSize and ClientTimout are added to allow search pagning against the directory. This will enable retrieving more than a 1000 enties at one time and allow retrieving data from slow servers. I have attached a new version of DirectorySource.cs which implements these changes.&lt;br /&gt;Comments: ** Comment from web user: bdesmet ** &lt;p&gt;The 1.0.1 Refresh Release will have support for AsQueryable&amp;#60;T&amp;#62; on a given DirectoryEntry or DirectorySearcher object, so that search parameters can be lifted into the query. In addition we&amp;#39;ll provide a constructor overload that takes in a DirectorySearcher object that will be used to base the query parameters on, giving access to all the properties of DirectorySearcher rather than just the two mentioned in this suggestion.&lt;/p&gt;&lt;p&gt;Thanks for the feedback,&lt;br /&gt;-Bart&lt;/p&gt;</description><author>bdesmet</author><pubDate>Thu, 31 Jul 2008 12:16:34 GMT</pubDate><guid isPermaLink="false">Commented Issue: Suggestion: Add settings for PageSize and ClientTimeout 20080731121634P</guid></item><item><title>Commented Issue: Problem to get System.Byte[] type properties.</title><link>http://www.codeplex.com/LINQtoAD/WorkItem/View.aspx?WorkItemId=323</link><description>First of all I want to congratuate you on this great job. But I met some worries with getting properties which type is System.Byte&amp;#91;&amp;#93; as objectGUID property. LinqToAD throws an unhandled exception&amp;#58; System.InvalidCastException&amp;#58; Object cannot be stored in an array of this type. &amp;#40;in AssignResultProperty method&amp;#41;. Any idea &amp;#63;&lt;br /&gt;Comments: ** Comment from web user: bdesmet ** &lt;p&gt;Mapping support for Guid types will be provided in the 1.0.1 Refresh Release.&lt;/p&gt;&lt;p&gt;Thanks for the feedback,&lt;br /&gt;-Bart&lt;/p&gt;</description><author>bdesmet</author><pubDate>Thu, 31 Jul 2008 12:15:10 GMT</pubDate><guid isPermaLink="false">Commented Issue: Problem to get System.Byte[] type properties. 20080731121510P</guid></item><item><title>Created Issue: Suggestion: Making fields like pwdLastSet usable</title><link>http://www.codeplex.com/LINQtoAD/WorkItem/View.aspx?WorkItemId=2443</link><description>I needed to be able to filter based on pwdLastSet in a query using LINQ to AD and using the SearchResult to get values instead of a DirectoryEntry made this possible. Attached is my patch for LINQ to AD that modifies DirectoryQuery.GetResults and DirectoryQuery.AssignResultProperty slightly to use the SearchResult object directly for most property lookups to allow automatic marshalling.&lt;br /&gt;</description><author>NeilW</author><pubDate>Mon, 14 Jul 2008 18:12:49 GMT</pubDate><guid isPermaLink="false">Created Issue: Suggestion: Making fields like pwdLastSet usable 20080714061249P</guid></item><item><title>New Post: StartsWith errors if using a parameter</title><link>http://www.codeplex.com/LINQtoAD/Thread/View.aspx?ThreadId=29607</link><description>&lt;div style="line-height: normal;"&gt;This is a known issue.&amp;nbsp; Use the remedy disussed &lt;a href="http://www.codeplex.com/LINQtoAD/WorkItem/View.aspx?WorkItemId=2197"&gt;here&lt;/a&gt;
&lt;/div&gt;</description><author>pwalke</author><pubDate>Tue, 01 Jul 2008 20:57:21 GMT</pubDate><guid isPermaLink="false">New Post: StartsWith errors if using a parameter 20080701085721P</guid></item><item><title>Commented Issue: Error when using parameters inside where clause</title><link>http://www.codeplex.com/LINQtoAD/WorkItem/View.aspx?WorkItemId=2197</link><description>I was playing around with your demo project and substituted static string text by a variable, so for example&amp;#58;&lt;br /&gt;&lt;br /&gt;           string test &amp;#61; &amp;#34;A&amp;#34;&amp;#59;&lt;br /&gt;            var res6 &amp;#61; from grp in groups&lt;br /&gt;                       where grp.Name.StartsWith&amp;#40;test&amp;#41;  &amp;#60;-- NOTE&amp;#58; Here I replaced static text with test variable&lt;br /&gt;                       select new &amp;#123; grp.Name, MemberCount &amp;#61; grp.Members.Length &amp;#125;&amp;#59;&lt;br /&gt;&lt;br /&gt;Now I get the error &amp;#39;System.NullReferenceException was unhandled&amp;#39;, the error occurs at case statement&amp;#58;&lt;br /&gt;&lt;br /&gt;                       case &amp;#34;StartsWith&amp;#34;&amp;#58;&lt;br /&gt;                            &amp;#123;&lt;br /&gt;                                ConstantExpression c &amp;#61; m.Arguments&amp;#91;0&amp;#93; as ConstantExpression&amp;#59;&lt;br /&gt;                                sb.AppendFormat&amp;#40;&amp;#34;&amp;#123;0&amp;#125;&amp;#61;&amp;#123;1&amp;#125;&amp;#42;&amp;#34;, GetFieldName&amp;#40;o.Member&amp;#41;, c.Value&amp;#41;&amp;#59; &amp;#60;--- EXCEPTION&amp;#58; on variable &amp;#39;c&amp;#39;&lt;br /&gt;                                break&amp;#59;&lt;br /&gt;                            &amp;#125;&lt;br /&gt;&lt;br /&gt;By the way thanks for this Linq class&amp;#33;&amp;#33; Excellent work&amp;#33;&lt;br /&gt;&lt;br /&gt;Yours sincerely,&lt;br /&gt;&lt;br /&gt;Evert Wiesenekker&lt;br /&gt;Comments: ** Comment from web user: pwalke ** &lt;p&gt;I can confirm that this works.  I&amp;#39;d be happy to merge these changes VIA team explorer in if I&amp;#39;m added as a developer to the project.&lt;/p&gt;</description><author>pwalke</author><pubDate>Tue, 01 Jul 2008 20:56:34 GMT</pubDate><guid isPermaLink="false">Commented Issue: Error when using parameters inside where clause 20080701085634P</guid></item><item><title>New Post: StartsWith errors if using a parameter</title><link>http://www.codeplex.com/LINQtoAD/Thread/View.aspx?ThreadId=29607</link><description>&lt;div style="line-height: normal;"&gt;Hi,&lt;br&gt;
&lt;br&gt;
First, this library a great idea and really appreciated.&lt;br&gt;
&lt;br&gt;
We were attempting to create an autocomplete textbox and were trying to use the StartsWith LINQ operator:&lt;br&gt;
&lt;span style="font-size:13px;color:#0000ff"&gt;&lt;span style="font-size:13px;color:#0000ff"&gt;
&lt;p&gt;public &lt;/p&gt;
&lt;/span&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;/span&gt;
&lt;p&gt;&lt;span style="font-size:13px;color:#0000ff"&gt;&lt;span style="font-size:13px;color:#0000ff"&gt;static&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:13px"&gt; &lt;/span&gt;&lt;span style="font-size:13px;color:#2b91af"&gt;&lt;span style="font-size:13px;color:#2b91af"&gt;List&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:13px"&gt;&amp;lt;Group&amp;gt; GetGroups(&lt;/span&gt;&lt;span style="font-size:13px;color:#0000ff"&gt;&lt;span style="font-size:13px;color:#0000ff"&gt;string&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:13px"&gt; startsWith)
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:13px;color:#0000ff"&gt;&lt;span style="font-size:13px;color:#0000ff"&gt;if&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:13px"&gt; (&lt;/span&gt;&lt;span style="font-size:13px;color:#2b91af"&gt;&lt;span style="font-size:13px;color:#2b91af"&gt;String&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:13px"&gt;.IsNullOrEmpty(startsWith)) &lt;/span&gt;&lt;span style="font-size:13px;color:#0000ff"&gt;&lt;span style="font-size:13px;color:#0000ff"&gt;throw&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:13px"&gt; &lt;/span&gt;&lt;span style="font-size:13px;color:#0000ff"&gt;&lt;span style="font-size:13px;color:#0000ff"&gt;new&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:13px"&gt; &lt;/span&gt;&lt;span style="font-size:13px;color:#2b91af"&gt;&lt;span style="font-size:13px;color:#2b91af"&gt;ArgumentException&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:13px"&gt;(&lt;/span&gt;&lt;span style="font-size:13px;color:#a31515"&gt;&lt;span style="font-size:13px;color:#a31515"&gt;&amp;quot;startsWith cannot be null or empty.&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:13px"&gt;);&amp;nbsp;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;/span&gt;
&lt;p&gt;&lt;span style="font-size:13px;color:#0000ff"&gt;&lt;span style="font-size:13px;color:#0000ff"&gt;var&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:13px"&gt; ADGroups = &lt;/span&gt;&lt;span style="font-size:13px;color:#0000ff"&gt;&lt;span style="font-size:13px;color:#0000ff"&gt;new&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:13px"&gt; &lt;/span&gt;&lt;span style="font-size:13px;color:#2b91af"&gt;&lt;span style="font-size:13px;color:#2b91af"&gt;DirectorySource&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:13px"&gt;&amp;lt;Group&amp;gt;(&lt;/span&gt;&lt;span style="font-size:13px;color:#2b91af"&gt;&lt;span style="font-size:13px;color:#2b91af"&gt;Config&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:13px"&gt;.LDAPDirectoryEntry, &lt;/span&gt;&lt;span style="font-size:13px;color:#2b91af"&gt;&lt;span style="font-size:13px;color:#2b91af"&gt;SearchScope&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:13px"&gt;.Subtree);&amp;nbsp;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:13px;color:#0000ff"&gt;&lt;span style="font-size:13px;color:#0000ff"&gt;var&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:13px"&gt; groups = ADGroups.Where(g =&amp;gt; g.Name.StartsWith(startsWith)).Select(c =&amp;gt; &lt;/span&gt;&lt;span style="font-size:13px;color:#0000ff"&gt;&lt;span style="font-size:13px;color:#0000ff"&gt;new&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:13px"&gt; &lt;/span&gt;&lt;span style="font-size:13px;color:#2b91af"&gt;&lt;span style="font-size:13px;color:#2b91af"&gt;Client &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:13px"&gt;{ Name = g.Name, DateCreated = g.DateCreated, DateUpdated = g.DateUpdated });
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;/span&gt;
&lt;p&gt;&lt;span style="font-size:13px;color:#0000ff"&gt;&lt;span style="font-size:13px;color:#0000ff"&gt;return&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:13px"&gt; groups.ToList();
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
However, when passing the StartsWith parameter as a parameter the string somehow gets passed as a property of an object within DirectoryQuery...&lt;br&gt;
&lt;span style="font-size:13px;color:#2b91af"&gt;&lt;span style="font-size:13px;color:#2b91af"&gt;
&lt;p&gt;ConstantExpression &lt;/p&gt;
&lt;/span&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;/span&gt;
&lt;p&gt;&lt;span style="font-size:13px"&gt;c = m.Arguments[0] &lt;/span&gt;&lt;span style="font-size:13px;color:#0000ff"&gt;&lt;span style="font-size:13px;color:#0000ff"&gt;as&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:13px"&gt; &lt;/span&gt;&lt;span style="font-size:13px;color:#2b91af"&gt;&lt;span style="font-size:13px;color:#2b91af"&gt;ConstantExpression&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:13px"&gt;;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;
&lt;p&gt;Where c.Value would normally contain the string passed as the parameter it now is c.Value.startsWith (being that I named the parameter as startsWith).&lt;br&gt;
&lt;br&gt;
I tried debugging and correcting this, and also tried using reflection to dynamically access the property on c.Value, but I am unable figure this one out.&amp;nbsp; Any ideas?&lt;br&gt;
&lt;br&gt;
Thanks,&lt;br&gt;
Ryan&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;/p&gt;
&lt;/p&gt;
&lt;/div&gt;</description><author>csrtjones</author><pubDate>Fri, 13 Jun 2008 13:15:40 GMT</pubDate><guid isPermaLink="false">New Post: StartsWith errors if using a parameter 20080613011540P</guid></item><item><title>COMMENTED ISSUE: Error when using parameters inside where clause</title><link>http://www.codeplex.com/LINQtoAD/WorkItem/View.aspx?WorkItemId=2197</link><description>I was playing around with your demo project and substituted static string text by a variable, so for example&amp;#58;&lt;br /&gt;&lt;br /&gt;           string test &amp;#61; &amp;#34;A&amp;#34;&amp;#59;&lt;br /&gt;            var res6 &amp;#61; from grp in groups&lt;br /&gt;                       where grp.Name.StartsWith&amp;#40;test&amp;#41;  &amp;#60;-- NOTE&amp;#58; Here I replaced static text with test variable&lt;br /&gt;                       select new &amp;#123; grp.Name, MemberCount &amp;#61; grp.Members.Length &amp;#125;&amp;#59;&lt;br /&gt;&lt;br /&gt;Now I get the error &amp;#39;System.NullReferenceException was unhandled&amp;#39;, the error occurs at case statement&amp;#58;&lt;br /&gt;&lt;br /&gt;                       case &amp;#34;StartsWith&amp;#34;&amp;#58;&lt;br /&gt;                            &amp;#123;&lt;br /&gt;                                ConstantExpression c &amp;#61; m.Arguments&amp;#91;0&amp;#93; as ConstantExpression&amp;#59;&lt;br /&gt;                                sb.AppendFormat&amp;#40;&amp;#34;&amp;#123;0&amp;#125;&amp;#61;&amp;#123;1&amp;#125;&amp;#42;&amp;#34;, GetFieldName&amp;#40;o.Member&amp;#41;, c.Value&amp;#41;&amp;#59; &amp;#60;--- EXCEPTION&amp;#58; on variable &amp;#39;c&amp;#39;&lt;br /&gt;                                break&amp;#59;&lt;br /&gt;                            &amp;#125;&lt;br /&gt;&lt;br /&gt;By the way thanks for this Linq class&amp;#33;&amp;#33; Excellent work&amp;#33;&lt;br /&gt;&lt;br /&gt;Yours sincerely,&lt;br /&gt;&lt;br /&gt;Evert Wiesenekker&lt;br /&gt;Comments: ** Comment from web user: emargee ** &lt;p&gt;Just wanted to point out I had found a solution to this &amp;#40;after a lot of hair tearing out as this is a frustrating bug&amp;#41;&lt;/p&gt;&lt;p&gt;You can delete the line &amp;#58; ConstantExpression c &amp;#61; m.Arguments&amp;#91;0&amp;#93; as ConstantExpression&amp;#59;&lt;/p&gt;&lt;p&gt;and then replace c.Value with &amp;#58; &amp;#40;string&amp;#41; Expression.Lambda&amp;#40;m.Arguments&amp;#91;0&amp;#93;&amp;#41;.Compile&amp;#40;&amp;#41;.DynamicInvoke&amp;#40;&amp;#41;&lt;/p&gt;&lt;p&gt;.. it then works fine &amp;#33; &amp;#40;found after much searching in a comment at the bottom of here&amp;#58; http&amp;#58;&amp;#47;&amp;#47;weblogs.asp.net&amp;#47;okloeten&amp;#47;archive&amp;#47;2007&amp;#47;10&amp;#47;03&amp;#47;4327290.aspx&amp;#41;&lt;/p&gt;&lt;p&gt;Hope this helps people trying to use this &amp;#33;&lt;/p&gt;&lt;p&gt;&amp;#91;mRg&amp;#93;&lt;/p&gt;</description><author>emargee</author><pubDate>Fri, 30 May 2008 11:25:41 GMT</pubDate><guid isPermaLink="false">COMMENTED ISSUE: Error when using parameters inside where clause 20080530112541A</guid></item><item><title>CREATED ISSUE: Error when using parameters inside where clause</title><link>http://www.codeplex.com/LINQtoAD/WorkItem/View.aspx?WorkItemId=2197</link><description>I was playing around with your demo project and substituted static string text by a variable, so for example&amp;#58;&lt;br /&gt;&lt;br /&gt;           string test &amp;#61; &amp;#34;A&amp;#34;&amp;#59;&lt;br /&gt;            var res6 &amp;#61; from grp in groups&lt;br /&gt;                       where grp.Name.StartsWith&amp;#40;test&amp;#41;  &amp;#60;-- NOTE&amp;#58; Here I replaced static text with test variable&lt;br /&gt;                       select new &amp;#123; grp.Name, MemberCount &amp;#61; grp.Members.Length &amp;#125;&amp;#59;&lt;br /&gt;&lt;br /&gt;Now I get the error &amp;#39;System.NullReferenceException was unhandled&amp;#39;, the error occurs at case statement&amp;#58;&lt;br /&gt;&lt;br /&gt;                       case &amp;#34;StartsWith&amp;#34;&amp;#58;&lt;br /&gt;                            &amp;#123;&lt;br /&gt;                                ConstantExpression c &amp;#61; m.Arguments&amp;#91;0&amp;#93; as ConstantExpression&amp;#59;&lt;br /&gt;                                sb.AppendFormat&amp;#40;&amp;#34;&amp;#123;0&amp;#125;&amp;#61;&amp;#123;1&amp;#125;&amp;#42;&amp;#34;, GetFieldName&amp;#40;o.Member&amp;#41;, c.Value&amp;#41;&amp;#59; &amp;#60;--- EXCEPTION&amp;#58; on variable &amp;#39;c&amp;#39;&lt;br /&gt;                                break&amp;#59;&lt;br /&gt;                            &amp;#125;&lt;br /&gt;&lt;br /&gt;By the way thanks for this Linq class&amp;#33;&amp;#33; Excellent work&amp;#33;&lt;br /&gt;&lt;br /&gt;Yours sincerely,&lt;br /&gt;&lt;br /&gt;Evert Wiesenekker&lt;br /&gt;</description><author>Eefhert</author><pubDate>Sun, 18 May 2008 19:17:58 GMT</pubDate><guid isPermaLink="false">CREATED ISSUE: Error when using parameters inside where clause 20080518071758P</guid></item><item><title>CREATED ISSUE: Suggestion: Add settings for PageSize and ClientTimeout</title><link>http://www.codeplex.com/LINQtoAD/WorkItem/View.aspx?WorkItemId=2191</link><description>This implementation has a drawback which might cause queries to fail unneccesarily. To fix this I suggest that settings for PageSize and ClientTimout are added to allow search pagning against the directory. This will enable retrieving more than a 1000 enties at one time and allow retrieving data from slow servers. I have attached a new version of DirectorySource.cs which implements these changes.&lt;br /&gt;</description><author>Pontus</author><pubDate>Thu, 15 May 2008 08:29:35 GMT</pubDate><guid isPermaLink="false">CREATED ISSUE: Suggestion: Add settings for PageSize and ClientTimeout 20080515082935A</guid></item><item><title>NEW POST: Getting securityIdentifier (sID)</title><link>http://www.codeplex.com/LINQtoAD/Thread/View.aspx?ThreadId=23463</link><description>&lt;div class="wikidoc"&gt;
It's works and also very fast and good!!&lt;br /&gt;Thanks you solve me a lot of problem!&lt;br /&gt;
&lt;/div&gt;</description><author>raffaeu</author><pubDate>Thu, 03 Apr 2008 12:50:35 GMT</pubDate><guid isPermaLink="false">NEW POST: Getting securityIdentifier (sID) 20080403125035P</guid></item><item><title>NEW POST: Getting securityIdentifier (sID)</title><link>http://www.codeplex.com/LINQtoAD/Thread/View.aspx?ThreadId=23463</link><description>&lt;div class="wikidoc"&gt;
Fixed it.  But the solution is not intuitive.&lt;br /&gt; &lt;br /&gt;It seems that you cannot use any other Type to define the objectSid other than &amp;quot;object&amp;quot;.  So in order to get teh actual sID, I added another property.  Unfortunately, you cannot have ANY other properties on a type with the DirectorySchema attribute that does not exist in AD (it will throw an exception indicating that the property can't be found).  This is OK; just add the DirectoryAttribute again with the same property name, but don't define anything in the set block.&lt;br /&gt; &lt;br /&gt;&lt;a href="http://www.codeplex.com/LINQtoAD/Wiki/View.aspx?title=DirectorySchema%28%22user%22%2c%20typeof%28IADsUser%29%29"&gt;DirectorySchema(&amp;quot;user&amp;quot;, typeof(IADsUser))&lt;/a&gt;&lt;br /&gt;public class ADUser*&lt;br /&gt;{&lt;br /&gt;    &lt;a href="http://www.codeplex.com/LINQtoAD/Wiki/View.aspx?title=DirectoryAttribute%28%22objectSid%22%29"&gt;DirectoryAttribute(&amp;quot;objectSid&amp;quot;)&lt;/a&gt;&lt;br /&gt;    public object rawsID { get; set; }&lt;br /&gt; &lt;br /&gt;    &lt;a href="http://www.codeplex.com/LINQtoAD/Wiki/View.aspx?title=DirectoryAttribute%28%22objectSid%22%29"&gt;DirectoryAttribute(&amp;quot;objectSid&amp;quot;)&lt;/a&gt;&lt;br /&gt;    public object sID&lt;br /&gt;    {&lt;br /&gt;        get&lt;br /&gt;        {&lt;br /&gt;            SecurityIdentifier s = null;&lt;br /&gt; &lt;br /&gt;            try&lt;br /&gt;            {&lt;br /&gt;                if (rawsID != null)&lt;br /&gt;                    s = new SecurityIdentifier((Byte[])rawsID, 0);&lt;br /&gt;            }&lt;br /&gt;            catch { }&lt;br /&gt; &lt;br /&gt;            return s.ToString();&lt;br /&gt;        }&lt;br /&gt;        set&lt;br /&gt;        {&lt;br /&gt; &lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt; &lt;br /&gt;
&lt;/div&gt;</description><author>csustek</author><pubDate>Fri, 28 Mar 2008 18:16:12 GMT</pubDate><guid isPermaLink="false">NEW POST: Getting securityIdentifier (sID) 20080328061612P</guid></item><item><title>NEW POST: Getting securityIdentifier (sID)</title><link>http://www.codeplex.com/LINQtoAD/Thread/View.aspx?ThreadId=23463</link><description>&lt;div class="wikidoc"&gt;
I cannot seem to get the securityIdentifier.  Here is my code for my property:&lt;br /&gt; &lt;br /&gt;        &lt;a href="http://www.codeplex.com/LINQtoAD/Wiki/View.aspx?title=DirectoryAttribute%28%22securityIdentifier%22%29"&gt;DirectoryAttribute(&amp;quot;securityIdentifier&amp;quot;)&lt;/a&gt;&lt;br /&gt;        public string sID { get; set; }&lt;br /&gt; &lt;br /&gt;What am I doing wrong?&lt;br /&gt;
&lt;/div&gt;</description><author>csustek</author><pubDate>Wed, 05 Mar 2008 22:58:43 GMT</pubDate><guid isPermaLink="false">NEW POST: Getting securityIdentifier (sID) 20080305105843P</guid></item><item><title>NEW POST: Method or operation is not implemented.</title><link>http://www.codeplex.com/LINQtoAD/Thread/View.aspx?ThreadId=21803</link><description>&lt;div class="wikidoc"&gt;
Thanks Bart! I'll try that as a work around and see how it goes. Good job on this project thus far. I am liking it a lot.&lt;br /&gt;
&lt;/div&gt;</description><author>msr79</author><pubDate>Wed, 05 Mar 2008 18:56:02 GMT</pubDate><guid isPermaLink="false">NEW POST: Method or operation is not implemented. 20080305065602P</guid></item></channel></rss>