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 168529
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T12:28:11+00:00 2026-05-11T12:28:11+00:00

Few questions on ORM mappers like nhibernate (for .net/c# environment). When queries are run

  • 0

Few questions on ORM mappers like nhibernate (for .net/c# environment).

  1. When queries are run against a sqlserver database, does it use parameter sizes internally?

    paramaters.Add(‘@column1’, SqlDataType.Int, 4)

  2. Do they all use reflection at runtime? i.e. hand coding is always a tad faster?

  3. does it support temp tables, table variables?

  • 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. 2026-05-11T12:28:11+00:00Added an answer on May 11, 2026 at 12:28 pm

    ORM World is powerfull and full featured one, I think today obstacles are peoples theirself, this to say that using ORM’s needs to take changes in mind, in the way of thinkng applications, architectures and patterns.

    To answer you questions:

    1. Query execution depends on more factors, it’s possible to fully customize the engine/environment to take advantages of various features like, deffered execution, future queries (queries executed in a future moment), multiple queries, and last but not least, session management involves in this area:

      1. Deferred execution is based on concepts like lazy-loading and lazy execution, this means that queries are executed against the database just qhen you perform some actions, like accessing to methods of the NHibernate Session like ToList(), another example of deferred execution is with using of LinqToNhibernate, where just when you access to certain objects, queries are executed

      2. Future queries are as I said beforre queries executed in a future moment, Ayende speaks well about that

      3. Multiple queries are queries that can be ‘packed’ together and executed in one time avoiding multiple roundtrips to the DB, and this could be a very cool feature

      4. Session Management, this is another chapter to mention… but take in mind that if you manage well your session, or better, let NHibernate engine to manage well the session, sometime it’s not needed to go to the DN to obtain data

    in all the cases, tools like NHibernate generates queries for you, and parametrized queries are managed well with parameters even depending on the underlying DB engine and conseguently DB Dialect you choose!

    1. It’s clear that frameworks like NHibernate, most of the time, use reflection at runtime, but it’s needed to mention the multiple Reflection optimization are used, see for example Dynamic Proxies… It’s clear that somethime, or maybe all the time direct code could be faster, but just in the unit, in the big picture this could involve in more mistakes and bottlenecks

    2. Talking about NHibernate, or better saying, It’s usefull to understand what you mean when talk about Temp Tables and temp data.. In terms as are, NHibernate, as I know, doesn’t support natively Temp Tables, in the sense of Runtime tables, but this could be done because NHibernate permit to create object mapping at runtime, so a mechanism of Temp data could be implemented using that api

    I hope I provided an usefull answer! …and oops, sorry for my bad english!

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

Sidebar

Related Questions

I have a few questions about data synchronization. The architecture does not seem to
I've discovered this folder in C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files and have a few questions. What
A few questions on MS Access databases - Size: Are there limits to the
I have a few questions related: 1) Is possible to make my program change
There are a few questions on SO already regarding LINQ pivots and while a
There are a few questions about configuring Apache for local development, such as this
I know there are already a few questions regarding recommendations for C++ unit test
Basically I'm going to go a bit broad here and ask a few questions
I've been hearing about triggers, and I have a few questions. What are triggers?
I've seen a few similar questions to this one, but none that were quite

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.