Re: Object oriented best practices // Creating Objects and ObjectColletions from DataLayer
- From: Jim Wooley <jimNOSPAMwooley@xxxxxxxxxxx>
- Date: Mon, 22 May 2006 20:25:13 +0000 (UTC)
Ok great. Thank you for showing me the light. I will use your
methodlogy from now on.
Another question I had was naming conventions in SQL 2000.
Currently I prefix my columns like
User ID would be int_userid_fk or int_userid_pk
User Name would be var_username
etc
I seen Microsoft do UserID as UserID
What naming convention should I use?
Microsoft's recommendation is at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/cpconnamingguidelines.asp. You appear to be using a variant of Hungarian notation which is no longer the prefered convention. In general, use Pascal casing in most cases and camel casing in parameters. In addition, do not preface the variable with the type.
Jim Wooley
http://devauthority.com/blogs/jwooley/default.aspx
.
- Prev by Date: Re: Object oriented best practices // Creating Objects and ObjectColletions from DataLayer
- Next by Date: Re: .NET 2.0 - code to create VPN connection?
- Previous by thread: Re: Object oriented best practices // Creating Objects and ObjectColletions from DataLayer
- Next by thread: Datagridview
- Index(es):
Relevant Pages
|