Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4034840
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T12:01:23+00:00 2026-05-20T12:01:23+00:00

I maintain a product that has a home-grown data access layer, programmed in C++/COM

  • 0

I maintain a product that has a home-grown data access layer, programmed in C++/COM for use with a Windows-based web application designer and it is at least 10 years old. This DAL is modularized with something akin to Data Providers so that it can generate basic SQL and DDL for a specific database type.

In the process of migration analysis, the biggest gap in functionality I have found is with the DDL generation. With the current product, the user creates/deletes data input forms and then data input fields and the appropriate database tables and fields are created or deleted “on the fly” (fields cannot be altered). Foreign key relationships are “soft” however, only enforced at the code level.

Through my research so far, it seems that this approach is not highly regarded for security and data integrity reasons. Which is probably the reason I can’t find any tools/ORMs that have the same functionality.

I have experimented with nHibernate, which contains half of what I need with it’s SchemaUpdate functionality but only does non-destructive schema updates. I have checked out other ways of dealing with a dynamic schema such as xml columns, but this greatly complicates other factors like data retrieval and reporting.

My questions ares fairly large in scope, so I am not looking for definite answers, only pointers. What are the options for continuing forward with this approach? Are there better options for allowing a dynamic schema that I am not aware of? What are the basic advantages and pitfalls of other possible approaches?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T12:01:24+00:00Added an answer on May 20, 2026 at 12:01 pm

    You have tagged this question “.net”, plus you say you have experimented with nHibernate, so I’m making the leap to assume that you are trying to migrate toward .NET and away from COM. I am also guessing that you are running Microsoft SQL Server, though there is no specific reason that this must be the case (soft foreign key enforcement was historically a MySQL “feature,” for example).

    Entity Framework can probably help you as far as a data access layer goes generally, but you will run into the same sorts of restrictions. What you possibly could do, though, is go ahead with the XML-based approach you were mentioning and extend the data models by way of partial classes that work alongside the Entity Framework classes. You could, then, write methods that would retrieve particular pseudo-fields from the XML column and return them, helping your data access layer to be more-or-less separated from the rest of your application.

    That said, I would take a good look at your data modeling and see whether this dynamic approach is really even necessary. What kinds of data are you storing? Could you handle it through, say, Complex Type Entities in Entity Framework 4? I’m pretty sure that a fresh look at the data modeling and business requirements of your application will yield a way to do something more normalized than a dynamic schema.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My company has a product that will I feel can benefit from a web
How would you maintain the legacy applications that: Has no unit tests have big
We currently have a product that uses Sharepoint and a number different Web Part
I'm about to work on a retail product website that has been around for
We have a product that we need to create an installer for. It has
I maintain an old PC-only application written in Delphi 7. Although Delphi has served
I maintain an application which, during the course of two years, has constantly required
We currently maintain a suit of MFC applications that are fairly well designed, however
My goal is to maintain a web file server separately from my main ASP.NET
I work on an application that has a both a GUI (graphical) and API

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.