Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Namespaces Question
Message
De
16/09/2004 15:40:37
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00942700
Message ID:
00943077
Vues:
21
Shawn,

Since these are all separate classes anyway, I don't see why you need different namespaces as well. Just having separate classes seems to me to be all you'd need to do.

~~Bonnie


>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
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform