473,614 Members | 2,487 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

vs2005 beta2 'Code Analysis' returns warnings on generated code

I built a simple Data Access Layer with the Visual Studio 2005 DataSet
Designer using the wizard. All who I have talked to who use it,
articles I haver read by those who use it speak very highly about the
quality of code that vs2005 creates.

before adding any code of my own I ran "Code Analysis" (from debug
menu) against the code and got (no errors but) 90 warnings!

I know nothing about the "Code Analysis" and can find nothing in the
help. Some of the warnings are just good suggestions that the user
should consider based on best coding practice and the users intension
for the code such as;

Warning 4 CA2210 : Microsoft.Desig n : Sign 'NorthwindDataA ccess' with a
strong name key. 1

Other warnings point out things I think the Wizard should have handled;
Warning 42 CA1804 : Microsoft.Perfo rmance :
EmployeesTableA dapter.GetData( Nullable`1<Syst em.Int32>):Empl oyeesDataTable
declares a local, 'GetData', of type
NorthwindDataAc cess.EmployeeDa taSet+Employees DataTable, which is never
used or is only assigned to. Use this local or remove it. C:\Documents
and Settings\Admini strator\My Documents\Visua l Studio
2005\Projects\N orthwindDataAcc ess\NorthwindDa taAccess\Employ eeDataSet.Desig ner.vb 1229 NorthwindDataAc cess

More Examples:

Warning 10 CA1801 : Microsoft.Perfo rmance : The 'this' parameter (or
'Me' in VB) of EmployeeDataSet .ShouldSerializ eEmployees():Bo olean is
never used. Mark the method as static (or Shared in VB) or use
'this'/Me in the method body. C:\Documents and
Settings\Admini strator\My Documents\Visua l Studio
2005\Projects\N orthwindDataAcc ess\NorthwindDa taAccess\Employ eeDataSet.Desig ner.vb 188 NorthwindDataAc cess
Warning 48 CA1709 : Microsoft.Namin g : Correct the casing of parameter
name 'LastName'. C:\Documents and Settings\Admini strator\My
Documents\Visua l Studio
2005\Projects\N orthwindDataAcc ess\NorthwindDa taAccess\Employ eeDataSet.Desig ner.vb 1333 NorthwindDataAc cess
Warning 89 CA1706 : Microsoft.Namin g : 'Id' is an abbreviation and
therefore is not subject to acronym casing guidelines. Correct the
capitalization of 'ID' in parameter name 'EmployeeID' by changing it to
'Id'. C:\Documents and Settings\Admini strator\My Documents\Visua l
Studio
2005\Projects\N orthwindDataAcc ess\NorthwindDa taAccess\Employ eeDataSet.Desig ner.vb 1460 NorthwindDataAc cess

Can anyone who knows more about this comment on this feature and the
results I am getting.

Thank you,
dbuchabab

Nov 21 '05 #1
2 2099
dbuchanan,

Not to sent you from this newsgroup. However in my opinon is your question
exactly one which is nice for the newsgroup.

microsoft.publi c.dotnet.framew ork.adonet.

I wished you had crossposted it to that newsgroup in one time, while you
sent it to this newsgroup, because it is interesting of course as well for
this newsgroup.

Cor
Nov 21 '05 #2
sent it to this newsgroup


sent it to that newsgroup
Nov 21 '05 #3

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

Similar topics

7
1535
by: DaVBGuy | last post by:
I'm currently using VB 6 for windows based apps. Should I make the jump to VS.2003 now, or should I wait till (the final) VS.2005 release comes out later this year. If I have not started converting any of our code yet, is it worth while to wait for the 2005 final release to come out. I am not interested in converting our VB6 apps to VS.2005 beta2 as there will be some changes between beta2 and the final release that will probably cause...
3
1905
by: Robert | last post by:
I have an application with custom configuration sections in it's app.config file. Here's a shortened excerpt: <monitors> <monitor type="SystemMonitor.Monitors.NetworkAvailabilityMonitor,SystemMonitor"> <notifiers> <notifier type="SystemMonitor.Notifiers.MessageBoxNotifier,SystemMonitor" />
9
1075
by: Liddle Feesh | last post by:
Can I do this? Will the two environment and frameworks co-exist? I will later on wish to change the VS2005 Beta2 installation into the full VS2005 installation (also still keeping VS2003). Thanks in advance! -- Liddle Feesh
56
3533
by: Rob Dob | last post by:
VS2005 is a PIECE of Garbage and is bug Ridden, I wonder how many others feel the same, I am so sorry that I have moved away from VS2003, VS2005 is unstable, and half the stuff doesn't work, Microsft has spent so much time trying to make it simply that when you try to do something useful with it it doesn't work... Half the time it crashes, and menu items appear for things you cannot do. For example, Go into component designer, ...
10
1926
by: dbuchanan | last post by:
Hello, >From time to time my vb2005 form disappears and is replaced by the following errors. Rebuilding the application never helps. However the errors never affects the operation of my application that I notice, but it is very anoying. To get rid of the errors I must close the form, close the application and then reopen it.
6
3762
by: Dave Booker | last post by:
It appears that I cannot correctly install the AxWebBrowser in VS2005. I can instantiate an "AxWebBrowser browser" and refer to its members, properties, and methods. I'm having trouble with the AxWebBrowser.Document: When I print browser.Document.GetType().ToString() at runtime, I get "mshtml.HTMLDocumentClass". But The VS2005 compiler does not recognize the member AxWebBrowser.Document as anything other than a System.Object -- e.g.,...
7
27828
by: Dale Sampson | last post by:
As you can tell, I am new to VS.net. I have a VB project with a defined data source pointing to a table in a ..mdb file.-- The associated fields are displayed in textboxes using the tableBindingSource. There is also an associated BindingNavigator. The table's primary key is a field called 'who'. I have a valid value for 'who' and want to set the Navigator to the record that contains this value so the fields are displayed in the associated...
0
1547
by: =?Utf-8?B?TWFyayBX?= | last post by:
I have just upgraded Visual Studio from 2003 to 2005 and am in the process of converting my VB applications. Most conversions have gone quite smoothly. However, I have several Add-Ins that I developed to add button bars to Publisher 2003. When built these under VS 2003, they worked. I used the conversion wizard in VS 2005 to convert them. I then rebuilt and installed them. They refused to work in Publisher. I checked the registry and it...
8
1967
by: =?Utf-8?B?UGV0ZXJX?= | last post by:
I install Visual Studio 2005 Pro on Vista. I open and migrate a 2003 web project to 2005. I attempt to browse an aspx file from the Solution Exploer. It displays a blank html page. I create a master page with 3 content placeholders. I create a WebForm that uses the master and then browse it to have a look. I get an empty html page. I change from the IIS to the internal server. No change. Only displays blank page.
0
8198
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8142
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8642
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8294
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
8444
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
4138
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2575
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
1
1758
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1438
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.