Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C# 2005 > C# 2005
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
C# 2005 For discussion of Visual C# 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2005 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 13th, 2006, 11:55 PM
Registered User
Join Date: Mar 2006
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default object builder questions

the questions are as follows:

¾¯¸æ 1 ¡°System.Diagnostics.PerformanceCounterCategory. Create(string, string, System.Diagnostics.CounterCreationDataCollection) ±Òѹýʱ:¡°This method has been deprecated. Please use System.Diagnostics.PerformanceCounterCategory.Crea te(string categoryName, string categoryHelp, PerformanceCounterCategoryType categoryType, CounterCreationDataCollection counterData) instead. http://go.microsoft.com/fwlink/?linkid=14202¡± C:\BookManager\EnterpriseObjects\EnterpriseCounter s.cs 103 5 EnterpriseObjects

the source code is : CounterCreationDataCollection list = new CounterCreationDataCollection();

                // go through each counter...
                foreach(EnterpriseCounter counter in Counters)
                    // create some new data...
                    CounterCreationData data = new CounterCreationData();
                    data.CounterName = counter.Name;
                    data.CounterHelp = counter.HelpText;
                    data.CounterType = counter.Type;

                    // add it...

                // create the category and all of the counters...
                PerformanceCounterCategory.Create(PerformanceObjec tName,"",list);

¾¯¸æ 2 ¡°BookManagerObjects.BookAuthorBoundCollectionBa se.this[int]¡±Òþ²ØÁ˼̳еijÉÔ±¡°Enterprise Objects.EntityBoundCollection.this[int]¡±¡£Èç¹ûÊÇÓÐÒâÒþ²Ø£¬ÇëÊ¹Ó Ã¹Ø¼ü×Ö new¡£ C:\BookManager\BookManagerObjects\BookManagerObjec ts\BookAuthorBoundCollectionBase.cs 20 27 BookManagerObjects
the source code is :
namespace BookManagerObjects

    // EntityBoundCollection base implementation for table 'Payments'
    // *DO NOT* add your modifications to this file
    public class PaymentBoundCollectionBase : EnterpriseObjects.EntityBoundCollection

        public Payment this[int index]
                return ((Payment)(this.EntitySet.GetEntity(this.TableInde x, index)));


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Where Can I download the WEO Object Builder??? ocean222 Forum and Wrox.com Feedback 2 September 15th, 2005 11:34 AM
I need help about Wrox Object Builder Huang Forum and Wrox.com Feedback 4 September 15th, 2004 12:53 AM
WEO Object Builder? sagi_archer_2000 All Other Wrox Books 5 May 18th, 2004 10:45 AM
WEO Object Builder DariushT Oracle 2 April 20th, 2004 06:43 PM
Where is the WEO OBJECT BUILDER code? lzy8395 Wrox Book Feedback 5 January 28th, 2004 02:19 PM

All times are GMT -4. The time now is 04:34 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.