473,322 Members | 1,473 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Namespace library

Over the last 5 years, I've written several medium size apps that relate to
a particular industry and I am now organizing all the commonality into a
single library. However, about half of my common functions have database
calls and point to specific stored procedures (I suppose some of the sproc
code could be migrated back to the library). Indeed the database is a
massive beast that may change but not be renamed. My question is, is it wise
to include functions in this library that require a database connection?
Aug 11 '06 #1
2 1162
Take this concept perhaps:
http://msdn.microsoft.com/library/de...tml/BOAGag.asp

chanmm

"Earl" <br******@newsgroups.nospamwrote in message
news:%2***************@TK2MSFTNGP05.phx.gbl...
Over the last 5 years, I've written several medium size apps that relate
to a particular industry and I am now organizing all the commonality into
a single library. However, about half of my common functions have database
calls and point to specific stored procedures (I suppose some of the sproc
code could be migrated back to the library). Indeed the database is a
massive beast that may change but not be renamed. My question is, is it
wise to include functions in this library that require a database
connection?

Aug 11 '06 #2
Good article, right on target. Thanks.

"chanmm" <ch*****@hotmail.comwrote in message
news:%2***************@TK2MSFTNGP03.phx.gbl...
Take this concept perhaps:
http://msdn.microsoft.com/library/de...tml/BOAGag.asp

chanmm

"Earl" <br******@newsgroups.nospamwrote in message
news:%2***************@TK2MSFTNGP05.phx.gbl...
>Over the last 5 years, I've written several medium size apps that relate
to a particular industry and I am now organizing all the commonality into
a single library. However, about half of my common functions have
database calls and point to specific stored procedures (I suppose some of
the sproc code could be migrated back to the library). Indeed the
database is a massive beast that may change but not be renamed. My
question is, is it wise to include functions in this library that require
a database connection?


Aug 13 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

88
by: Tim Tyler | last post by:
PHP puts most of its functions into a big flat global namespace. That leads to short function names - but creates a namespace minefield for programmers. Lots of the functions are legacies from...
12
by: Leon | last post by:
Hi all. For my application I'm using a third-party library which is supplied as a library file (.lib) and an associated header file to prototype the functions defined in the library. Important...
7
by: zbyszek | last post by:
I am working with a large C++ program which, for reasons of backward compatibility, uses C's printf and fprintf rather than iostreams. For a certain type of build I want to provide new functions...
5
by: Dave Slinn | last post by:
Any advice on how to organize my core class library project into sub-namespaces? What are the general rules of thumb regarding cross-namespace references? Can I have a class in namespace A have a...
6
by: Robert Warnestam | last post by:
I've two class libraries, where one is referencing the other. The first library looks like this; (assembly name and root name space is set to Codab.Parser) namespace Codab.Parser { public class...
6
by: ryan.d.rembaum | last post by:
Hello, I have code that I wish to use in many web applications. Basically sort of stand utility stuff. So from Visual Studio Project I select add a component and chose Component Class. Lets...
29
by: Tiraman | last post by:
Hi, I Build my own dll with my own namespace name and i would like to put it in one place but for the project bin folder so all of the projects will be able to use it . i tried to put the dll...
12
by: bgeneto | last post by:
I know that it's a very basic question, but I can't figure out or find an answer to why do we have to specify a namespace, like this #include<string> using namespace std; when using the...
11
by: Chris Thomasson | last post by:
I was thinking of how I was going to create a robust versioning system in Standard C++ for my library and was wondering exactly what the point of a namespace alias is? The seem like a rather...
3
by: =?Utf-8?B?QWxleGFuZGVyIFd5a2Vs?= | last post by:
I recently raninto major problems when I added the Exception namespace to the Project which has my DBML file attached to it. Once I renamed all the Exceptions instances to Syste.Exception the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.