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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T22:35:39+00:00 2026-05-11T22:35:39+00:00

I have not worked with parameters in ADO.Net very much. I’m writing a custom

  • 0

I have not worked with parameters in ADO.Net very much. I’m writing a custom .Net data provider (modeled on SqlClient), and have to implement the IsNullable property in my parameter class, which inherits from DbParameter. My data provider will not support stored procedures, so I will only be supporting Input (substitution style) parameters.

The MSDN docs are rather unclear on the functionality of IsNullable, stating “Gets or sets a value that indicates whether the parameter accepts null values.” Googling turns up a lot of people confused about what IsNullable does, saying that setting IsNullable to false does not prohibit them from using a parameter will a null value, as they would have expected.

Based on this, I am thinking that perhaps the IsNullable property pertains to usage with a stored procedure, and whether or not the stored procedure’s parameter is nullable, not whether the parameter value can be null.

In that case, since I won’t have stored procedures, my implementation can just be:

        public override bool IsNullable { get { return false; } set {} }

To avoid having to fiddle around with some test code to see how SqlParameter’s implementation of IsNullable works, I’d appreciate it if someone experienced in writing code using parameters could explain IsNullable.

  • 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-11T22:35:39+00:00Added an answer on May 11, 2026 at 10:35 pm

    The IsNullable property is informational. It is helpful when one part of code creates the parameter and another actually uses it. For example, the parameter might be automatically derived from the database, in which case it is helpful to the programmer to be able to see whether or not a null value is likely to be accepted.

    This is my understanding of the IsNullable property. I don’t actually know of any documentation that “proves” this is actually correct.


    Supporting this view would be the implementation of the Oracle Oracle.DataAccess.Client.OracleParameter class, where their docs state:

    IsNullable

    This property is not supported.

    And it is a fact that the value of this property is irrelevant when interfacing with Oracle 10 or 11 or 12, either via the MS driver or the cited Oracle driver.

    Behavior on other databases may differ of course.

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

Sidebar

Related Questions

I'm ashamed to say it, but I have to. I have not worked with
So I've never worked with stored procedures and have not a whole lot of
I have worked on iPhone application but not aware of the formalities to submit
I believe several of us have already worked on a project where not only
I have not used generics much and so cannot figure out if it is
I have not seen much support for Grails to develop facebook apps.I was just
I have not had to mess with mailto links much. However I now need
Note - I have not delved very deeply into Apple's iPhone SDK yet. However,
I have not been able to find a way to cancel/terminate asynchronous read operation
I have not used Windows Vista. I knew that many APIs have been changed/deprecated

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.