Click here to Skip to main content
15,892,072 members
Articles / Web Development / ASP.NET

How To Implement A Generic Entity List Repository And Business Logic For SharePoint 2010 Using The T4 Templating Engine

Rate me:
Please Sign up or sign in to vote.
5.00/5 (7 votes)
8 Aug 2010CPOL8 min read 42.7K   320   16  
This article describes how to implement a generic, extensible entity list repository and business logic for SharePoint 2010 using the T4 templating engine (Text Template Transformation Toolkit).
//
// Parago Media GmbH & Co. KG, Jürgen Bäurle (jbaurle@parago.de)
// 
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED 
// TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 
// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 
// CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 
// DEALINGS IN THE SOFTWARE.
//
// Auto-Generated: 08/08/2010 20:52:07
using System;   
using System.Runtime.CompilerServices;
using Microsoft.SharePoint;

namespace Parago.SharePoint.Samples
{
	[CompilerGenerated]
	public static partial class ContentTypes
	{
		// NOTE: All content type IDs must start with '0x'. It is important to use the lower letter 'x', otherwise
		// an exception ('Value does not fall within the expected range') will be thrown if you use the IDs with
		// the SPContentTypeId class, e.g. new SPContentTypeId("ID").
		
		public static partial class MailTemplate 
		{
			public static readonly SPContentTypeId ID = new SPContentTypeId("0x0100A27F77E833C342C8A8EF4183746795AB");
			public static readonly string Name = "Mail Template";
		}
		
	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
Germany Germany
I’m a software developer based in Germany.

Homepage

Comments and Discussions