Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 2005 > C# 2005
| 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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #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...
                    list.Add(data);
                }

                // 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]
        {
            get
            {
                return ((Payment)(this.EntitySet.GetEntity(this.TableInde x, index)));
            }
        }
    }
}




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





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