storing complex objects in a database.

G

Guest

Is there a standard way of storing a complex object as an item in a database?
Something like:

public class Foo
{
public Foo(){}
public double Size
{
get{return this.size;}
set{size = value;}
}
public double[] Depth
{
get {return this.depth;}
set{this.depth = value;}
}
public Hashtable FunHash
{
get{return this.funHash;}
set{this.funHash = value;}
}
...................etc
}

This would be a dependent table, with other columns containing external keys
by which these objects could be filtered. I have thought of just using
hashtables to store such objects in conjunction with the database, wherein
external keys would be used as keys for a hashtable, and the related value
items would be lists of complex object instances, instead of filtering a
table of these complex objects.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top