473,699 Members | 2,680 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Which comes first?

Which comes first? The database schema or class design?

I'm used to developing the database tables and fields based on the
functional requirements of an application, so it makes sense to me to model
my objects on the database schema, and their methods on the SQL/stored
procs. Most of what I read suggests starting with the class. Am I doing it
wrong?

Mike
Aug 30 '07 #1
4 1345
"Mike" <bl***@blank.bl ankwrote in message
news:O6******** ******@TK2MSFTN GP05.phx.gbl...
Which comes first? The database schema or class design?

I'm used to developing the database tables and fields based on the
functional requirements of an application, so it makes sense to me to
model my objects on the database schema, and their methods on the
SQL/stored procs. Most of what I read suggests starting with the class.
Am I doing it wrong?
Personally, I prefer to start with classes...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Aug 30 '07 #2
Hello Mike,
Which comes first? The database schema or class design?

I'm used to developing the database tables and fields based on the
functional requirements of an application, so it makes sense to me to
model my objects on the database schema, and their methods on the
SQL/stored procs. Most of what I read suggests starting with the
class. Am I doing it wrong?
The only correct answer here is probably: it depends.

--
Jesse Houwing
jesse.houwing at sogeti.nl
Aug 30 '07 #3
Hello Mike,

I suppose it depends on many factors, there is no one golden question.
if it's data-centric app - then from schema;
I prefer to start from schema, because the DB is the bottom of your app and
changing the schema is more costly rather regenerating your classes for it.
the advantage of this is that u have the robust and powerfull db schema and
afterthat u can tune it on the conceptual level (with classes)

---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
MWhich comes first? The database schema or class design?
M>
MI'm used to developing the database tables and fields based on the
Mfunctional requirements of an application, so it makes sense to me to
Mmodel my objects on the database schema, and their methods on the
MSQL/stored procs. Most of what I read suggests starting with the
Mclass. Am I doing it wrong?
M>
MMike
M>
Aug 31 '07 #4
On Aug 31, 2:43 am, "Mike" <bl...@blank.bl ankwrote:
Which comes first? The database schema or class design?

I'm used to developing the database tables and fields based on the
functional requirements of an application, so it makes sense to me to model
my objects on the database schema, and their methods on the SQL/stored
procs. Most of what I read suggests starting with the class. Am I doing it
wrong?

Mike
I had done reasearch on your query, It's Concluded that Class comes
first and then design is mapped with the Classs. so what u think, is
it OK!!!!!!!!!!!

thank you

Jitesh tolar
http://www.intelcs.com/IT-Companies/

Aug 31 '07 #5

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

Similar topics

10
2029
by: KN | last post by:
I know both are pretty much the same and it comes down to personal choice. But I have to make the choice for the team. Things so far that I am considering 1. XML documentation in C# -- thats good.. not there in VB.net?? 2. Some language features of VB.Net like Redim(makes it easier for developers), but not good enough reason. 3. C# is in more like standard languages and key words used are more
17
6143
by: John Bentley | last post by:
John Bentley: INTRO The phrase "decimal number" within a programming context is ambiguous. It could refer to the decimal datatype or the related but separate concept of a generic decimal number. "Decimal Number" sometimes serves to distinguish Base 10 numbers, eg "15", from Base 2 numbers, Eg "1111". At other times "Decimal Number" serves to differentiate a number from an integer. For the rest of this post I shall only use either...
3
1945
by: RoseW | last post by:
Almost like the chicken or the egg query but it has been a question in my mind while going through the process of changing over from TABLES to stylesheet. I wondered how one knows all that is needed in a stylesheet list before starting the page. Yesterday, I redid a small page which used tables over to an external stylesheet. I used references from pagersource.com and articles from sitepoint.com. I discovered in the process,which went...
2
1496
by: hholidayy | last post by:
Hi everyone, I have a dilemma and I hope you could bring me some guidelines I want to develop some in-house software(s) at my work, to save everyone time and energy spent on the wrong repetitive tasks. To do so I have start learning a programming language, and the options seem endless. Java, C, C++, VB, C#, Delphi, etc... I'm receiving opinions left and right all better than an other. So far, I think I will go somewhere in the .NET...
7
16035
by: Amadelle | last post by:
Hi all and thanks in advance, I am stuck! I can't figure out how to identify which button was clicked on my ASP.NET page in the PostBack event? So what I am trying to do is to is to have an if statement like as follows in the PageLoad: private void Page_Load(object sender, System.EventArgs e) { if (!Page.IsPostBack) { //do something here } else {
15
2376
by: Brian Blais | last post by:
Hello, Are there any recommendations for which Windows python version to use? I'd like to see a pros-and-cons description of each, given that different uses might dictate different versions. The versions I know (and there are surely more) are: 1) download from www.python.org 2) enthought 3) activepython
1
1349
by: tlyczko | last post by:
I have Visual Studio Tools for Office (VSTO) and the SS 2005 Developer that comes with it, all of which I can install on my local XP box. 1. Which one do I install first, VSTO or SS 2005 Developer?? 2. Regardless of which one is installed first, what's the best way after that to move or copy database objects like tables, queries, reports, etc. from the XP/developer box to an SS 2005 Server?? Thank you, Tom
5
12261
by: alingsjtu | last post by:
Hello, every body. When execute dynamic generated multiple OPENQUERY statements (which linkes to DB2) in SQLServer, I always got SQL1040N The maximum number of applications is already connected to the database. SQLSTATE=57030. Background: I created a linked server to DB2 8.1 database which called GRR_DB2Server. In my stored procedure p_FetchRawData, I need to read some data from this linked server GRR_DB2Server and insert them into
2
1419
by: Jason Sachs | last post by:
In the function copy_info below, which happens first: (a) X gets copied (b) Y's destructor is called class T { X m_info; L m_semaphore; public:
0
8686
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8615
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9033
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8911
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7748
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5872
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3057
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2345
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2009
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.