SQL Datatype

  • Thread starter Thread starter Axel Dahmen
  • Start date Start date
A

Axel Dahmen

Hi,

we have a discussion here about Typed DataSets and I'd like to get your
opinion:


* Why do Typed DataSets cast database values to intrinsic values instead of
SqlInt32 etc.? The way it's implemented now we're losing NULL values.


* Why don't Sql data types like SqlInt32 have a common base class providing
IsNull() etc.? The way it's implemented now we can't write one single common
function on SQL data types.


TIA,
Axel Dahmen
 
Hi Axel,
* Why do Typed DataSets cast database values to intrinsic values instead of
SqlInt32 etc.? The way it's implemented now we're losing NULL values.

Null values are accesible through IsPROPERTYNull and through SetPropertyNull
methods.
* Why don't Sql data types like SqlInt32 have a common base class providing
IsNull() etc.? The way it's implemented now we can't write one single common
function on SQL data types.

They implement INullable interface instead...
 
Null values are accesible through IsPROPERTYNull and through
SetPropertyNull

Where can I find these? Searching the MSDN I didn't find these keywords.

They implement INullable interface instead...

I see... thanks, that makes sense.
 
Axel Dahmen said:
Where can I find these? Searching the MSDN I didn't find these keywords.

Those are generated for typed dataset (when you create a typed dataset those
methods are added).
For example, if you have strong type MyDataTable then you'll have also
MyDataTableRow which will have such methods.

HTH,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top