473,386 Members | 1,710 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

codegen:nullValue, Using Annotations with a Typed DataSet, Not resolved never!

Hello,

The following problam description I did not need to write, I just
copied from the groups from others which met the error and allways the
thread was 1 artical the problem was never resolved!
So, please someone there , any idea?

I've createed a typed dataset that I fill from a sql query.
The problem comes when I try to access the elements after it's filled
if I
have any null dates (which there should be some), it bombs, I can't
even use
IsDBNull() without throwing an error.

I tried using codegen:nullValue="_null" but it won't compile.

How do you handle null dates in a typed dataset ?

I am using a typed dataset and want to allow some columns
to support nulls. I understand that you can specify this
behavior via schema annotations. I have added
the 'codegen' namespace declaration, but when I add the
codegen:nullValue="_null" annotation to a column, I get an
error:

Custom tool 'MSDataSetGenerator' failed. System error.

There is no other information available. Can anyone help
me out on this?

Thanks.
Help
Efy.
Jul 21 '05 #1
1 3495
Efy,

If you go back and read the documentation concerning the use of
codegen:nullValue="_null", you'll see that it specifies that an exception
will be raised if a primitive type is encountered. Both dateTime and date
are primitive types, so there's your problem. If this element permits
nulls, I'd recommend you set it to nullable in the schema and omit the
codegen:nullValue attribute entirely.

HTH,
Nicole
"Efy." <Ef*****@moch.gov.il> wrote in message
news:6d**************************@posting.google.c om...
Hello,

The following problam description I did not need to write, I just
copied from the groups from others which met the error and allways the
thread was 1 artical the problem was never resolved!
So, please someone there , any idea?

I've createed a typed dataset that I fill from a sql query.
The problem comes when I try to access the elements after it's filled
if I
have any null dates (which there should be some), it bombs, I can't
even use
IsDBNull() without throwing an error.

I tried using codegen:nullValue="_null" but it won't compile.

How do you handle null dates in a typed dataset ?

I am using a typed dataset and want to allow some columns
to support nulls. I understand that you can specify this
behavior via schema annotations. I have added
the 'codegen' namespace declaration, but when I add the
codegen:nullValue="_null" annotation to a column, I get an
error:

Custom tool 'MSDataSetGenerator' failed. System error.

There is no other information available. Can anyone help
me out on this?

Thanks.
Help
Efy.

Jul 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

121
by: typingcat | last post by:
First of all, I'm an Asian and I need to input Japanese, Korean and so on. I've tried many PHP IDEs today, but almost non of them supported Unicode (UTF-8) file. I've found that the only Unicode...
11
by: Ceri Williams | last post by:
I followed the excellent MSDN article "Code Generation in the .NET Framework Using XML Schema" to build a substitute for the limited xsd.exe. My code works fine under .NET framework 1.1, but after...
4
by: James Geurts | last post by:
Hi, I have a schema file defining objects. I then use xsd to convert that schema into a C# class file. Is it possible to have xmldoc comments added to the generated c# file? I have attempted to...
0
by: Chuck Bowling | last post by:
I have an XML Schema that's similar to the abbreviated version below; my problem is that both the XML designer in VS 2002 and xsd.exe apparently ignore the heirarchy that the Schema defines. In the...
0
by: Michelle Keys | last post by:
I am trying to call a print function to print a string from a database using javascript. Which is RC_DATA of Varchar2(2500). This is a javascript is not being used. I have a thing that needs to...
1
by: Efy. | last post by:
Hello, The following problam description I did not need to write, I just copied from the groups from others which met the error and allways the thread was 1 artical the problem was never...
2
by: Nu2ASP.NET | last post by:
What I am trying to do is essentially 'flip' the bits, when the user clicks in the checkbox. For example, if the CheckBox appears checked, and the user un-checks it, I want the underlying data...
3
by: c j anderson, mcp | last post by:
I was heartened to discover the ability to (partially) control the generation of a typed dataset from a schema http://msdn2.microsoft.com/library/w2wcdz8t(en-us,vs.80).aspx]. I have, however, had...
3
by: asadikhan | last post by:
Hi, I am trying to use a datalist to edit data in a MySql database as follows. For now I just want to be able to get the changes to be made on the dataset. Here is my code: using System;...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.