Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Namespaces Question
Message
From
16/09/2004 15:40:37
 
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00942700
Message ID:
00943077
Views:
20
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform