Click here to Skip to main content
15,905,914 members
Home / Discussions / Database
   

Database

 
GeneralRe: what's your opinion on the Visual Studion 2005 data designer? Pin
bfis1081371-Sep-08 6:37
bfis1081371-Sep-08 6:37 
GeneralRe: what's your opinion on the Visual Studion 2005 data designer? Pin
liron.levi1-Sep-08 7:15
professionalliron.levi1-Sep-08 7:15 
GeneralRe: what's your opinion on the Visual Studion 2005 data designer? Pin
bfis1081371-Sep-08 7:32
bfis1081371-Sep-08 7:32 
GeneralRe: what's your opinion on the Visual Studion 2005 data designer? Pin
liron.levi1-Sep-08 7:54
professionalliron.levi1-Sep-08 7:54 
GeneralRe: what's your opinion on the Visual Studion 2005 data designer? [modified] Pin
bfis1081372-Sep-08 6:47
bfis1081372-Sep-08 6:47 
GeneralRe: what's your opinion on the Visual Studion 2005 data designer? Pin
liron.levi3-Sep-08 9:00
professionalliron.levi3-Sep-08 9:00 
GeneralRe: what's your opinion on the Visual Studion 2005 data designer? Pin
bfis1081374-Sep-08 3:53
bfis1081374-Sep-08 3:53 
GeneralRe: what's your opinion on the Visual Studion 2005 data designer? Pin
liron.levi4-Sep-08 9:32
professionalliron.levi4-Sep-08 9:32 
You are not looking at the problem from the right angle IMO.

The problem of changed DB schema is a separate problem (and a headache) altogether. You will need to write some kind of DB upgrade framework to solve upgrade issues and you will need to change existing data classes to incorporate new fields and (sometimes) eliminate obsolete ones.

What bothers me most is the impedance mismatch between the relational DB and the object oriented data classes. Here I spend lots of time writing boring repetitive and error prone data access code when most of it can be done automatically or eliminated altogether using tools like hibernate/nhibernate. This is where my biggest pain exists. This is where you'll end up if you are not careful enough.

I'd also recommend you stay away from tools that auto-generate classes based on DB schema. You should never design the DB schema first and than write classes to represent it. It should always work the other way around - do a well designed object model and than find the best DB modeling to represent this model. This is why I don't like tools like SubSonic and prefer tools like Hibernate.

If you have the choice I'd recommend using object oriented DB instead of a relational one (that is - if you don't need Oracle performance..). I've played some time with the db4o database and it looks pretty straight forward to work with. Such a database eliminates all the headache of writing data access code. You simply save and read whole class instances. Much much easier to work that way.

If I was not so stubborn when it comes to NOT using commercial libraries (I always prefer to work with open-source modules due to source code availability in case of errors) I would have probably saved tens to hundreds hours of wasted effort writing data access code to map from the relational DB model to object oriented classes.


Liron
GeneralRe: what's your opinion on the Visual Studion 2005 data designer? Pin
bfis1081374-Sep-08 10:19
bfis1081374-Sep-08 10:19 
GeneralRe: what's your opinion on the Visual Studion 2005 data designer? Pin
liron.levi4-Sep-08 10:41
professionalliron.levi4-Sep-08 10:41 
QuestionFinding a certain character Pin
Ballita28-Aug-08 22:02
Ballita28-Aug-08 22:02 
AnswerRe: Finding a certain character Pin
Manas Bhardwaj28-Aug-08 22:55
professionalManas Bhardwaj28-Aug-08 22:55 
AnswerRe: Finding a certain character Pin
Syed Mehroz Alam28-Aug-08 23:35
Syed Mehroz Alam28-Aug-08 23:35 
QuestionMDX query iif condition Pin
annu0828-Aug-08 20:18
annu0828-Aug-08 20:18 
AnswerRe: MDX query iif condition[Ignore repost] Pin
Manas Bhardwaj28-Aug-08 22:44
professionalManas Bhardwaj28-Aug-08 22:44 
Questioncomparing data in SQL with an XML file [modified] Pin
ONeil Tomlinson28-Aug-08 5:36
ONeil Tomlinson28-Aug-08 5:36 
AnswerRead XML file Pin
David Mujica28-Aug-08 6:34
David Mujica28-Aug-08 6:34 
QuestionSave Image in SQL Database Pin
bapu288928-Aug-08 3:12
bapu288928-Aug-08 3:12 
AnswerRe: Save Image in SQL Database Pin
Wendelius28-Aug-08 4:11
mentorWendelius28-Aug-08 4:11 
GeneralRe: Save Image in SQL Database Pin
bapu288928-Aug-08 5:37
bapu288928-Aug-08 5:37 
GeneralRe: Save Image in SQL Database Pin
Wendelius28-Aug-08 7:49
mentorWendelius28-Aug-08 7:49 
QuestionRe: Save Image in SQL Database Pin
bapu288928-Aug-08 7:59
bapu288928-Aug-08 7:59 
AnswerRe: Save Image in SQL Database Pin
Wendelius28-Aug-08 8:09
mentorWendelius28-Aug-08 8:09 
QuestionRe: Save Image in SQL Database Pin
bapu288928-Aug-08 8:18
bapu288928-Aug-08 8:18 
AnswerRe: Save Image in SQL Database Pin
Wendelius28-Aug-08 8:29
mentorWendelius28-Aug-08 8:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.