Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Namespaces Question
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00942700
Message ID:
00943057
Vues:
14
Hi Kevin,

What i wanted to use the name spaces for is to separate SQL code in a C# file below.

i.e.
using System;

namespace FuturePathDev.Sample.Business.SQLCommands
{
	public class SQLQueries
	{
		public SQLQueries()
		{
		}
	}


	namespace CasesData
	{
		public class CasesSQL
		{
			public string GetAll()
			{
				return "select a.case_id, b.title, c.country," +
						"a.expir_date from patents a, cases b," +
					  "country c where a.case_id = b.case_id and" + 
						"a.country_id = c.country_id";
			}

			public string GetByID(string pCaseID)
			{
				return "select case_id, title from cases " + 
					"where case_id = '" + pCaseID + "'" ;
			}
		}
	}


	namespace PatentData
	{
		public class PatentsSQL
		{
			public string GetAllPatents()
			{
				return "select a.case_id from patents a";
			}
		}
	}


}
Thanks Bonnie, Kevin, Neil
Shawn Dorion
Geo Sektor Dot Com
Website: http://www.geosektor.com

Web Hosting Plans
Visit : http://WebHosting.Applications4u.com/
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform