Posts Tagged Enterprise Library

Avoiding serialization issues in SharePoint property bags by using JSON

Storing application settings in a SharePoint solution can be done in numerous ways. One of the more robust solutions is to use the property bags that exist all throughout the hierarchy of the SharePoint object model. The only real issue that we have in all of these property bags are that we can store any […]

, , , , , , , ,

5 Comments

SPG: Find all settings using the application settings manager

If you are using the The Application Setting Manager from Patterns and Practices SharePoint Guidance library (SPG) to work with application settings, like I do, you might have noticed that the IConfigManager really has no method for retrieving all the settings at a given scope. You can only add, delete and retrieve one setting. So, […]

, , , , , , ,

Leave a comment

SPG: Add settings to SPWebApplication or SPFarm

If you are using the Patterns and Practices SharePoint Guidance library (SPG) to add application settings to SharePoint, like I do, and you are using the 2010 version of it there are some differences to the API that you might not be aware of as they are not so well documented in the included .chm […]

, , , , , ,

Leave a comment

Unity 2.0 and Automatic Type Lookup

I just recently started to use the new unity 2.0 release and I thought I´d share an example of using the new automatic type lookup feature that was introduced with this release. A simple example Let´s say I´ve got the following solution structure in Visual Studio: Unity.Model– has the contract/interface ICustomerServices Unity.Infrastructure – has the […]

, , , ,

Leave a comment

Unity and SharePoint – Part 3

Ok, this time I´ll be a little bit more hands on, I hope. The previous posts have been about Dependency Injection and Inversion of Control in general and then how to configure unity with xml. Here are the links to those previous post Unity and SharePoint – Part 2 Unity and SharePoint – Part 1 […]

, ,

4 Comments

Intellisense support for unity (and wss/moss) xml files

Andrew Connell has written about how to add intellisense support for when editing the SharePoint xml files. I have made an effort to include that support and also support for Unity config files. Firstly, a copy of the unity.xsd file is copied to “12/TEMPLATE/XML” and secondly I made an update to the custom catalog.xml file […]

, ,

Leave a comment

Unity and SharePoint – Part 2

In the previous article about Unity and SharePoint I showed you about the basics of dependency injection and we touched a little bit about how to use unity. What we didn´t look at was how to configure the Unity framework. In this post we´ll go into that. Unity and SharePoint – Part 1 Unity and SharePoint […]

, ,

Leave a comment

Unity and SharePoint – Part 1

I thought I would start a new blog post series about how to use dependency injection in SharePoint, and more specific the Patters and Practices implementation of such a pattern, Unity. Unity and SharePoint  – Part 2 Unity and SharePoint – Part 3 Here are some useful links along the lines of this topic: How To: […]

, , , , ,

Leave a comment