Monthly Archive: November 2010

Nov 27

How to enable Session in a SharePoint 2010 Application page?

How to enable Session State in SharePoint 2010 So as a developer you may have come across the need to use the Session object along the way. What you’ve probably noticed is that you get an error message that indicates you should enable session state as well as configure your http session module for sessions: …

Continue reading »

Nov 27

Entity Framework – Why can’t I see the child entities of my entity

So currently I’m working on an entity model in which there are a lot of parent – child relationships and for obvious reasons the entity framework is a great choice to build that entity model. However, I’ve ran into the issue that although in the database several of this relationships already exist, when trying to …

Continue reading »

Nov 27

LINQ to Entities does not recognize the method ‘get_Item(Int32)’ method.

When using the entity framework you may come across an error message such as this: “LINQ to Entities does not recognize the method ‘get_Item(Int32)’ method, and this method cannot be translated into a store expression.” After doing some research the root cause of this issue was that in Linq I was trying to resolve a …

Continue reading »

Nov 27

What is the meaning of the “Guid?” type?

Recently when working with the Entity Framework I had a parameter marked as ‘Guid?’, after reasearching the Internet this is what I came up with as to what a type is with a ‘?’ (question mark) character at the end: ? is use to assign null for premitive data types like int, string, Guid, etc. …

Continue reading »