Display: Cloud | List
Most Popular Tags
Results (62 total) All > linq (x)
Cross site collection workaround (How to: Query Using LINQ to SharePoint)
There is a way to make Linq to SharePoint work across site collections. Check out the link below:http://blog.codenutt.net/2011/05/using-a-spmetal-generated-datacontext-across-site-collections.html
Last modified by Cody Nutt on 5/30/2011 9:50:07 PM
Tags:  linq  sharepoint  spmetal
Equality Comparer (Enumerable.Except(TSource) Method (IEnumerable(TSource), IEnumerable(TSource)) (System.Linq))
"The default equality comparer, Default, is used to compare values of the types that implement the IEqualityComparer(T)generic interface. To compare a custom data type, you need to implement this interface and provide your ownGetHashCode and Equals methods for the type." This needs to be a bit clearer. In order to implement your own equality comparison you need to either:1. Implement IEquatable(O
Last modified by Thomas Lee on 2/2/2011 11:06:28 AM
Tags:  linq
Default Equality Comparer (Enumerable.Except(TSource) Method (IEnumerable(TSource), IEnumerable(TSource)) (System.Linq))
"The default equality comparer, Default, is used to compare values of the types that implement the IEqualityComparer(T) generic interface. To compare a custom data type, you need to implement this interface and provide your own GetHashCode and Equals methods for the type." The rules for EqualityComparer(Of T).Default are:1. Use IEquatable(Of T), if available.2. Use Object.Equals() and Object.GetH
Last modified by Thomas Lee on 2/2/2011 11:07:12 AM
Tags:  contentbug  linq
Does't work across site collections (How to: Query Using LINQ to SharePoint)
Note that Linq to SharePoint doesn't work across site collections so if you need to query data in another site collection you're back to CAML. Sigh.MS: Or you could have separate DataContext objects for each site collection and merge the results into a List<T> object which is then queried with List to Objects.
Last modified by Rickee on 10/21/2010 10:06:46 PM
Tags:  linq  sharepoint
Reactive Extensions for .NET (Rx) (IObserver(T) Interface (System))
More robust and useful implementations of IObservable<T> and IObserver<T> are provided by the Reactive Extensions for .NET (Rx) library: http://msdn.microsoft.com/en-us/devlabs/ee794896.aspxRx also provides an entire infrastructure of LINQ extension methods for the reactive push-based model (IObservable<T> / IObserver<T>) and includes new extension methods for the interacti
Last modified by Dave Sexton on 6/1/2010 2:36:32 PM
Tags:  events  extensions  linq  reactive  rx
Reactive Extensions for .NET (Rx) (IObservable(T) Interface (System))
More robust and useful implementations of IObservable<T> and IObserver<T> are provided by the Reactive Extensions for .NET (Rx) library: http://msdn.microsoft.com/en-us/data/gg577609 Rx also provides an entire infrastructure of LINQ extension methods for the reactive push-based model (IObservable<T> / IObserver<T>) and includes new extension methods for the interactive pul
Last modified by EPatodinter your display name on 8/28/2011 5:02:25 AM
Tags:  events  extensions  linq  reactive  rx
LINQ to SQLHow to: Generate the Object Model in Visual Basic or C# (LINQ to SQL) In LINQ to SQL, an object model in your own programming language is mapped to a relational database. Two tools are available for automatically generating a Visual Basic or C# model from the metadata of an existing database. If you are using Visual Studio, you
Last modified by Microsoft on 3/12/2009 1:53:29 AM
Tags:  asp.net  linq  sql
Are they bringing the XML literal translation ability to C# with .NET 4.0? That would be extremely helpful instead of having to do the function calls to insert the elements and attributes.
Last modified by Jess10K on 3/25/2010 6:08:14 PM
Tags:  .net  4.0  attributes  linq  xml
LINQ to attributes (Accessing Attributes With Reflection (C# Programming Guide))
It is often much more comfortable to use LINQ instead of cycles and ifs: private static void PrintAuthorInfo(System.Type t) { System.Console.WriteLine("Author information for {0}", t); System.Attribute[] attributes = System.Attribute.GetCustomAttributes(t); // reflection var authors = from attr in attributes where attr is Author
Last modified by LLook on 11/7/2008 11:39:37 PM
Tags:  linq
C++ (Enumerable.ToList(TSource) Method (System.Linq))
#include "stdafx.h" using namespace System; using namespace System::Collections::Generic; using namespace System::Linq; int GetLength(String^ str) { return str->Length; } void main(void) { array<String^>^ fruits = { "apple", "passionfruit", "banana", "mango", "orange", "blueberry", "grape", "strawberry" }; List<int>^ lengths = Enumer
Last modified by THines01 on 2/22/2010 10:36:23 PM
Tags:  c++  cpp  examples  linq  tolist(tsource)
Page view tracker