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

  • SEARCH
  • Home
  • 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 7065109
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T04:54:59+00:00 2026-05-28T04:54:59+00:00

Currently we have 2 databases that we are going to use. One comes from

  • 0

Currently we have 2 databases that we are going to use. One comes from a pre-existing product and thus we have no control over it. the other is one that we have full control over.

Currently we use the EF4 CTP as we need spatial features but obviously this cannot be used in product code and the recent release of EF hasn’t spatial as this is for a later release of the .Net Framework and so the decision is being made as to the way forward and one suggestion is to move to NHibernate and use the spatial addon.

So first question is regarding the learning curve and move between the tools. To my eyes it seems NHibernate is more visible on what it is doing, EF hides a lot of what it does in typical MS style, would that be fair?

So I am thinking the way forward is to use a class diagram to describe the database that we have control of. We then would create the POCO lasses from that and then you need to create mapping files. Is it really as straight-forward as that? These mapping files, do we need to manually write them or do we have a tool to create from the POCO classes?

The next question is regarding the pre-existing database and what we do here. EF makes it easy to import the database and create the classes and is it as straight-forward in NHibernate?

In case it affects the answers

The database we have control of uses a MS SQL database.
The one we don’t is Oracle and we use the ODAC Entity Framework code from Oracle.

Thank you very much

  • 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-28T04:54:59+00:00Added an answer on May 28, 2026 at 4:54 am

    For an existing database, I recommend using Fluent NHibernate for the mapping.
    There is a good example of this in the Sharp Architecture project

    There are tools that do both POCO generation and Fluent Mapping, I haven’t tried any of them but I have read about them.

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

Sidebar

Related Questions

I currently have a database that gets updated from a legacy application. I'd like
I currently have a DetailsView in ASP.NET that gets data from the database based
We have an application that currently supports Oracle and SQL Server databases. We're in
I have a XML file that i'm going to use as a database for
I am currently working on a private project that is going to use Google's
I currently have a Postgres 8.4 database that contains a varchar(10000) column. I'd like
I have a database that is currently sharded. This is the first time that
I have a database that contains data for many clients. Currently, we insert tens
I have a database issue that i currently cannot wrap my head around with
I currently have an MS Access application that connects to a PostgreSQL database via

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.