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

Developing Next Generation Smart Clients using .NET 2.0 working with Existing .NET 1.1 SOA-based XML Web Services

Rate me:
Please Sign up or sign in to vote.
4.96/5 (134 votes)
16 Aug 200540 min read 1.2M   3.9K   462  
Comprehensive guide to development of .NET 2.0 Smart Clients working with existing Service Oriented Architecture based XML web services, fully utilizing the Enterprise Library
	 
#region "Using directives"

using System;
using System.Data;
using System.Collections;
using System.Diagnostics;
using SmartInstitute;

#endregion

namespace SmartInstitute.DataAccessLayer
{

///<summary>
/// This class is the base Repository that exposes CRUD methods for CourseSection objects.
///</summary>
public interface ICourseSectionRepository
{
			
	#region "Get from  Many To Many Relationship Functions"
	#endregion	
	
	

				
	/// <summary>
	/// 	Deletes a row from the DataSource.
	/// </summary>
	/// <param name="ID">. Primary Key.</param>	
	/// <remarks>Deletes based on primary key(s).</remarks>
	/// <returns>Returns true if operation suceeded.</returns>
	bool Delete(System.Int32 ID, DateTime ChangeStamp);
		

	
	
	
	
	/// <summary>
	/// 	Gets All rows from the DataSource.
	/// </summary>
	/// <param name="start">Row number at which to start reading.</param>
	/// <param name="pagelen">Number of rows to return.</param>
	/// <remarks></remarks>
	/// <returns>Returns a typed collection of CourseSection objects.</returns>
	 CourseSectionCollection GetAll( int start, int pagelen);
	 
	 /// <summary>
	/// Gets a page of rows from the DataSource.
	/// </summary>
	/// <param name="start">Row number at which to start reading.</param>
	/// <param name="pageLength">Number of rows to return.</param>
	/// <param name="count">Number of rows in the DataSource.</param>
	/// <param name="whereClause">Specifies the condition for the rows returned by a query (Name='John Doe', Name='John Doe' AND Id='1', Name='John Doe' OR Id='1').</param>
	/// <param name="orderBy">Specifies the sort criteria for the rows in the DataSource (Name ASC; BirthDay DESC, Name ASC);</param>
	/// <remarks></remarks>
	/// <returns>Returns a typed collection of CourseSection objects.</returns>
	CourseSectionCollection GetPaged(string whereClause, string orderBy, int start, int pageLength, out int count);
	

	
		
	/// <summary>
	/// 	Gets rows from the datasource based on the FK_CourseSection_Course key.
	///		FK_CourseSection_Course Description: 
	/// </summary>
	/// <param name="start">Row number at which to start reading.</param>
	/// <param name="pagelen">Number of rows to return.</param>
	/// <param name="CourseID"></param>
	/// <remarks></remarks>
	/// <returns>Returns a typed collection of CourseSection objects.</returns>
	CourseSectionCollection GetByCourseID(System.Int32 CourseID, int start, int pagelen);
	
	
	
	
	
	
	
	/// <summary>
	/// 	Gets rows from the datasource based on the PK_Section index.
	/// </summary>
	/// <param name="start">Row number at which to start reading.</param>
	/// <param name="pagelen">Number of rows to return.</param>
	/// <param name="ID"></param>
	/// <remarks></remarks>
	/// <returns>Returns a typed collection of CourseSection objects.</returns>
	CourseSectionCollection GetByID(System.Int32 ID, int start, int pagelen);



		
	/// <summary>
	/// 	Inserts a CourseSection object into the datasource using a transaction.
	/// </summary>
	/// <param name="entity">CourseSection object to insert.</param>
	/// <remarks>After inserting into the datasource, the CourseSection object will be updated
	/// to refelect any changes made by the datasource. (ie: identity columns)</remarks>
	/// <returns>Returns true if operation is successful.</returns>
	bool Insert(CourseSection entity);


			
	/// <summary>
	/// 	Update an existing row in the datasource.
	/// </summary>
	/// <param name="entity">CourseSection object to update.</param>
	/// <remarks>After updating the datasource, the CourseSection object will be updated
	/// to refelect any changes made by the datasource. (ie: identity columns)</remarks>
	/// <returns>Returns true if operation is successful.</returns>
	bool Update(CourseSection entity);


}//end class
} // end namespace

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 has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Architect BT, UK (ex British Telecom)
United Kingdom United Kingdom

Comments and Discussions