Click here to Skip to main content
15,895,011 members
Articles / Desktop Programming / Windows Forms

Three-tier .NET Application Utilizing Three ORM Technologies

Rate me:
Please Sign up or sign in to vote.
4.95/5 (118 votes)
30 Jan 2010CPOL109 min read 164.4K   4.4K   437  
LINQ to SQL, Entity Framework, and NHibernate used in a parallel fashion in a three-tier WinForms application.
using System;
using System.Collections.Generic;
using System.Text;

namespace ServerUtil
{
	public class sql
	{
		public const string DELETE = " DELETE ";
		public const string UPDATE = " UPDATE ";
		public const string FROM = " FROM ";
		public const string WHERE = " WHERE ";
		public const string EQ = " = ";
		public const string INNER_JOIN = " INNER JOIN ";
		public const string ON = " ON ";
		public const string IN = " IN ";
		public const string SET = " SET ";
		public const string IS = " IS ";
		public const string SELECT = " SELECT ";
		public const string NULL = " NULL ";
		public const string COUNT = " COUNT(*) ";
		public const string TRUNCATE_TABLE = " TRUNCATE TABLE ";
		public const string RESEEDIDENTITY_ = "DBCC CHECKIDENT('{0}', RESEED, 0)";
	}
}

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) Austin Regional Clinic
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions