Save various objects. Please, need advice ... Thanks

S

shapper

Hello,

I am working on an ASP.NET project and I would like to save some
LOCALIZED content in an SQL 2005 database.

This content might be a string, an integer, a class, a control, ...

I will not need search or any complex operation just the following:
1. Add content to the database
2. Remove content from the database by contentId
3. Get content from the database by contentId

Anyway, is this possible?

What SQL 2005 datatype should I use to accomplish this?

Should I use serialization?

Should I create a class with various properties having each one a
different type: String, Integer, Object, etc?

Then I would define the property which type I want to use and save the
class ... but if I want to save a class?!

Anyway, I am still a little bit confused of how to accomplish this.

Thanks,
Miguel
 

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

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,059
Latest member
cryptoseoagencies

Latest Threads

Top