boardbite
boardbite

Reputation: 259

Saving each user's file along with corresponding database / table

CONTEXT: I am writing an application in Visual C# / .Net, where the user can:

QUESTION: Is the following method good to implement the above, or is there a simpler/cleaner approach?

UPDATE: Solved. I will be using this Alternative approach:

Upvotes: 0

Views: 144

Answers (1)

Daniel Hilgarth
Daniel Hilgarth

Reputation: 174319

That sounds like a particularly bad idea to do that.

  1. You don't want to create tables on the fly
  2. If all the data is in the database, what is the file for?

I would rather choose the approach that Office uses:

  1. The file really is a zip archive which contains:
    1. A folder for the assets (images and the like)
    2. The actual file with the content and relative links to the assets.

Upvotes: 1

Related Questions