
namespace PagingIPagedCollectionView.Web.Services
{
	using System;
	using System.Collections.Generic;
	using System.ComponentModel;
	using System.ComponentModel.DataAnnotations;
	using System.Data.Linq;
	using System.Linq;
	using System.Web.DomainServices;
	using System.Web.DomainServices.Providers;
	using System.Web.Ria;
	using System.Web.Ria.Services;
	using PagingIPagedCollectionView.Web.Models;


	// Implements application logic using the ChinookModelDataContext context.
	// TODO: Add your application logic to these methods or in additional methods.
	// TODO: Wire up authentication (Windows/ASP.NET Forms) and uncomment the following to disable anonymous access
	// Also consider adding roles to restrict access as appropriate.
	// [RequiresAuthentication]
	[EnableClientAccess()]
	public class ChinookDomainService : LinqToSqlDomainService<ChinookModelDataContext>
	{

		// TODO: Consider
		// 1. Adding parameters to this method and constraining returned results, and/or
		// 2. Adding query methods taking different parameters.
		public IQueryable<Invoice> GetInvoices()
		{
			return this.DataContext.Invoices;
		}
	}
}


