473,498 Members | 1,633 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Object-to-Relational Tool

sh
I am working on a database project, and I'm trying to think
"objectively". Are there any tools that will map my "objects" to
relational tables? I'd prefer a freebie, or something faily low-cost to
start off.

Thanks for any assistance.
Jun 7 '06 #1
5 1350
sh
I'd like to clarify my question.

The SQL Server database has **not** been created yet. I am planning it.
But I would like the DB to reflect "objects" as best as possible. So I
would like a tool where I could describe my objects, and it would then
show me what would be the best "relational" model to reflect them.

Thanks

sh wrote:
I am working on a database project, and I'm trying to think
"objectively". Are there any tools that will map my "objects" to
relational tables? I'd prefer a freebie, or something faily low-cost to
start off.

Thanks for any assistance.

Jun 7 '06 #2
Hello SH,

This would be a fairly simple tool to write yourself.

Look into the System.Reflection namespace.

Basicly you'll feed the object graph to the tool.. it'll walk over the classes,
creating tables, and walk over the properties creating fields.
This is a super simplified description, but given a week or two a competent
programmer could build this tool easily.

-Boo
I'd like to clarify my question.

The SQL Server database has **not** been created yet. I am planning
it. But I would like the DB to reflect "objects" as best as possible.
So I would like a tool where I could describe my objects, and it would
then show me what would be the best "relational" model to reflect
them.

Thanks

sh wrote:
I am working on a database project, and I'm trying to think
"objectively". Are there any tools that will map my "objects" to
relational tables? I'd prefer a freebie, or something faily low-cost
to start off.

Thanks for any assistance.

Jun 8 '06 #3

sh wrote:
sh wrote:
I am working on a database project, and I'm trying to think
"objectively". Are there any tools that will map my "objects" to
relational tables? I'd prefer a freebie, or something faily low-cost to
start off.

NHibernate and db40 are both free, though might be a little
intimidating. Rolling your own is an option for small projects.
I'd like to clarify my question.

The SQL Server database has **not** been created yet. I am planning it.
But I would like the DB to reflect "objects" as best as possible. So I
would like a tool where I could describe my objects, and it would then
show me what would be the best "relational" model to reflect them.


Oh, OK. This kind of thing can't really be delegated to automated tools
- the details of a correct O/R mapping still require actual thought. I
suggest you go and have a read of <http://www.agiledata.org>, maybe
start at <http://www.agiledata.org/essays/mappingObjects.html> and see
how you get on. This is a big topic :)

--
Larry Lard
Replies to group pleas

Jun 8 '06 #4
Why bother writing it yourself when there are plenty of free (and commercial)
Object Relational Mappers out there, including NHibernate which is probably
the most widely documented (assuming you can read JAVA documentation for
the Hibernate version). Microsoft is working on their stab into this arena
with DLINQ which is targeted at the Orcas release timeframe which may be
too far out for you at this point.

That being said, it is often a mistake to mismatch relation and Object relational
techniques. I recommend reading Object Thinking by David West.

Jim Wooley
http://devauthority.com/blogs/jwooley/default.aspx
Hello SH,

This would be a fairly simple tool to write yourself.

Look into the System.Reflection namespace.

Basicly you'll feed the object graph to the tool.. it'll walk over the
classes, creating tables, and walk over the properties creating
fields. This is a super simplified description, but given a week or
two a competent programmer could build this tool easily.

-Boo
I'd like to clarify my question.

The SQL Server database has **not** been created yet. I am planning
it. But I would like the DB to reflect "objects" as best as possible.
So I would like a tool where I could describe my objects, and it
would then show me what would be the best "relational" model to
reflect them.

Thanks

sh wrote:
I am working on a database project, and I'm trying to think
"objectively". Are there any tools that will map my "objects" to
relational tables? I'd prefer a freebie, or something faily low-cost
to start off.

Jun 8 '06 #5
who gives a flying crap about OOP?

throw away your program; design the database first and then re-write
your silly little app from the ground up.


Jim Wooley wrote:
Why bother writing it yourself when there are plenty of free (and commercial)
Object Relational Mappers out there, including NHibernate which is probably
the most widely documented (assuming you can read JAVA documentation for
the Hibernate version). Microsoft is working on their stab into this arena
with DLINQ which is targeted at the Orcas release timeframe which may be
too far out for you at this point.

That being said, it is often a mistake to mismatch relation and Object relational
techniques. I recommend reading Object Thinking by David West.

Jim Wooley
http://devauthority.com/blogs/jwooley/default.aspx
Hello SH,

This would be a fairly simple tool to write yourself.

Look into the System.Reflection namespace.

Basicly you'll feed the object graph to the tool.. it'll walk over the
classes, creating tables, and walk over the properties creating
fields. This is a super simplified description, but given a week or
two a competent programmer could build this tool easily.

-Boo
I'd like to clarify my question.

The SQL Server database has **not** been created yet. I am planning
it. But I would like the DB to reflect "objects" as best as possible.
So I would like a tool where I could describe my objects, and it
would then show me what would be the best "relational" model to
reflect them.

Thanks

sh wrote:

I am working on a database project, and I'm trying to think
"objectively". Are there any tools that will map my "objects" to
relational tables? I'd prefer a freebie, or something faily low-cost
to start off.


Jun 8 '06 #6

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

Similar topics

4
11142
by: Armel Asselin | last post by:
Hello, I'm working on a Javascript interpreter; when I execute this code I cannot figure out why the inner "c" function returns the input widget as "this"... could someone tell ?? <input...
4
5507
by: Piotr Perak | last post by:
Can someone explain the "object instance" term that is used i many of C# books? I have C++ background. In C++ instance and object meant the same. I could say that I have object of some class or...
21
9751
by: Gaemic | last post by:
Some argues that you should not use the C# keyword "object" instead of the real type System.Object. What would be the general rule of thumb for choosing one over the other? Thanks in advanced....
6
7191
by: Chuck | last post by:
I created a VB.net app that opens a current excel workbook, puts some data in it and saves it. This works fine on all XP machines. But I am getting an error on win 98 machines. here a portion...
4
2277
by: Greg | last post by:
What are the compile time and runtime differences between a .NET object? For example, with COM, an object is compiled and delivered as a native binary. It must be registered on the target...
3
1713
by: Tony Johansson | last post by:
Hello!! You may correct me if I have made any wrong assumptions. Below I have some simple classes. When you have this t.ToString() below it's the ToString() method in Object class that is...
4
1956
by: gg9h0st | last post by:
i worte a simple code below. ------------------------------------------------------------------------------------ #include "stdafx.h" class Object { public: int a;
1
8755
by: winston.heng | last post by:
Hi, Thanks for reading this posting. I have been cracking my head on solving the infinite loop when i call the following section code. Any help or advise is greatly appreciated =D Thanks in...
1
1245
by: ssecorp | last post by:
>>super(object, type) <super: <class 'object'>, <type object>> <super: <class 'type'>, <type object>> how can both work? they can't both be the superclass of each other right? or is it some...
23
3112
by: tonytech08 | last post by:
What I like about the C++ object model: that the data portion of the class IS the object (dereferencing an object gets you the data of a POD object). What I don't like about the C++ object...
0
7125
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,...
0
7167
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7379
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5464
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,...
0
3095
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3085
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1423
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 ...
1
657
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
292
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...

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.