Click here to Skip to main content
15,885,366 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 163.8K   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.Linq;
using System.Text;
using ui=UIInterface.PostRange;
using uib=UIInterface;
using s = System;
using u = Util;
using ns = Presenter;
using si=ServiceInterface;

namespace Presenter
{
	public static class PostRange//: C, ui.IPresenter
	{
	//	ui.IView _view;
	//	protected override UIInterface.IView GetView(){return _view;}
	//	public TransactionRange(uib.IViewFactory theViewFactory)
	//	{
	//		_view = theViewFactory.CreateViewForTransactionRange();
	//	//	_view.SetPresenter(this);
	//	}
		public static bool Get(uib.IViewFactory theViewFactory, out int? iFirst, out int? iLast)
		{
			using(ui.IView view = theViewFactory.CreateViewForPostRange())
			{
				return view.Get(out iFirst, out iLast);
			}
		}
	}
}

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