473,473 Members | 1,893 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 3497
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.