473,796 Members | 2,661 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

not CLS-complaint

Hi!

I have a strongly typed dataset based on a db (SQL Server)...

One of the tables contains a column with name: ISO-3166-A2 and data type
nchar(2)...

The generated code (xsd.exe) in the dataset looks like this:
public string _ISO_3166_A2 {
....
}

VS.NET 2003 identifies this as an error and aborts compilation stating that
the DataSet code above is not CLS-complaint...

I assume that this is due to the underscore _ used in the name of the
Property...!? Why does xsd.exe generate a name with underscore in this
case?? What can I do?

Regards

/Oscar
Nov 17 '05 #1
1 2022
Hi Oscar,

has the typed dataset to be public?
If it's internal CLS-compliance shouldn't matter.
"Oscar Thornell" <no****@interne t.com> schrieb im Newsbeitrag
news:uW******** ******@TK2MSFTN GP15.phx.gbl...
Hi!

I have a strongly typed dataset based on a db (SQL Server)...

One of the tables contains a column with name: ISO-3166-A2 and data type
nchar(2)...

The generated code (xsd.exe) in the dataset looks like this:
public string _ISO_3166_A2 {
...
}

VS.NET 2003 identifies this as an error and aborts compilation stating
that the DataSet code above is not CLS-complaint...

I assume that this is due to the underscore _ used in the name of the
Property...!? Why does xsd.exe generate a name with underscore in this
case?? What can I do?

Regards

/Oscar

Nov 17 '05 #2

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

Similar topics

25
4652
by: BOOGIEMAN | last post by:
I've just finished reading Python turtorial for non-programmers and I haven't found there anything about some usefull commands I used in QBasic. First of all, what's Python command equivalent to QBasic's "goto" ? Secondly, how do I clear screen (cls) from text and other content ? And last, how do I put program to wait certain amount of seconds ? If I remeber correctly I used to type "Wait 10" and QBasic waits 10 seconds before proceeding...
1
2164
by: Keith R | last post by:
Currently, generic types are not CLS compliant. This puts library authors in a quandry who are faced with three bad alternatives: 1. CLS Compliance but no generics, 2. Using generic types but losing CLS Compliance, or 3. Supporting both, bloating the code and muddying the waters with dual versions of generic classes. This latter is seen in mscorlib with collections classes, Nullable, and EventHandler as examples. I believe there is a...
3
2955
by: news.microsoft.com | last post by:
The question is, is a DataSet CLS compliant? Minimally implemented code, with an attribute in the assemblyinfo.cs compiles just fine (is it possibly the data INSIDE the dataset that could invalidate its compliancy?): using System; using System.Data; namespace ConsoleApplication1
2
2365
by: pnp | last post by:
I tried to add an accessor into a class of an Interface of another class, but the problem is that the compiler displays an error: Type of 'A.B.C.IUsers' is not CLS-compliant What does this mean? -pnp
1
3922
by: Pieter | last post by:
Hi, I have this Warning for several forms when using the DockPanel Suite of Weifen Luo in VS.NET 2005. I read a lot about this CLS-compliant stuff, but I don't now how to chech actually which part of the class is not CSL-compliant? Any body knows what to look for? I just want to get rid of these warnings :-) Thanks a lot in advance,
10
6176
by: moondaddy | last post by:
I converted a vb.1.1 web service project to 2.0 and .net 2.0 created / replace some datasets. The code it automatiacly generated gets a warning message as follows: Warning 150 Name '_ClassColumn' is not CLS-compliant. C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\wsvipn2006\4b065968\dadaeae0\Sources_App_Code\wsvipn2006.dsuser.xsd.8a6308fa.vb 2606 38 http://localhost/wsVIPN2006/ I'm trying to go through all my...
0
2698
by: manoj.sahu | last post by:
hi all, as per my study CLS is the common set of specification which should by meet by the language which want to target CLS(or .net). and CTS is the set of common types(or common data types) which should be supported by all .net language. to be common data type in all language is neccesary condition but its not suffiicient. means to say common data type may be 1 of the specs but it's not all. and cls means all common specs.
5
4997
by: Mitchell S. Honnert | last post by:
I'm thinking about adding unsigned types, like UShort and UInt, to a VB.NET library that I published which edits ID3 tag information. It would make the interface much more clean to have some properties of my main class like TrackNum and Year be UShort instead of Short. I wouldn't have to check for negative values; the data type itself would simply preclude the use of negative values. But of course unsigned types are not CLS-compliant. ...
22
4243
by: mp | last post by:
i have a python program which attempts to call 'cls' but fails: sh: line 1: cls: command not found i tried creating an alias from cls to clear in .profile, .cshrc, and /etc/profile, but none of these options seem to work. my conclusion is that a python program that is executing does not use the shell (because it does not recognize shell aliases). is this correct?
3
21577
by: james_027 | last post by:
hi, is cls & self the same thing? I have seen something like class A: def dosomething(cls): #doing something
0
10236
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10182
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9055
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7552
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5445
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5577
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4120
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 we have to send another system
2
3734
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2928
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.