Astoria Demo - Build Errors

11 posts, 0 answers
  1. Dan Brown
    Dan Brown avatar
    13 posts
    Member since:
    Dec 2009

    Posted 05 Dec 2009 Link to this post

    Hi There

    I'm very new to Silverlight, i've installed silverlight 3 & the Telerik silverligh 3 controls 0n visual studio 2008.  I have tried to run the Astoria / northwind back end Demo which i downloaded from Telerik.  My problem is that i get 27 build errors.  I've tried reinstalling the Rad silverlight tools and have added them to the VS tool box, but nothing i do seams to correct  the problem

    can anyone help please

    Thanks a lot

    Dan


    Error   1   The type or namespace name 'Telerik' could not be found (are you missing a using directive or an assembly reference?)   C:\Users\Stu\Documents\Visual Studio 2008\Projects\AstoriaDemo2\NorthwindBackend\Default.xaml.cs    4   7   NorthwindBackend 
    Error   2   The type or namespace name 'Data' does not exist in the namespace 'System' (are you missing an assembly reference?) C:\Users\Stu\Documents\Visual Studio 2008\Projects\AstoriaDemo2\NorthwindBackend\NorthwindDataSource.cs 5   14  NorthwindBackend 
    Error   3   The type or namespace name 'Data' does not exist in the namespace 'System' (are you missing an assembly reference?) C:\Users\Stu\Documents\Visual Studio 2008\Projects\AstoriaDemo2\NorthwindBackend\Data\service.cs    19  62  NorthwindBackend 
    Error   4   The type or namespace name 'Telerik' could not be found (are you missing a using directive or an assembly reference?)   C:\Users\Stu\Documents\Visual Studio 2008\Projects\AstoriaDemo2\NorthwindBackend\Default.xaml.cs    31  56  NorthwindBackend 
    Error   5   The type or namespace name 'Data' does not exist in the namespace 'System' (are you missing an assembly reference?) C:\Users\Stu\Documents\Visual Studio 2008\Projects\AstoriaDemo2\NorthwindBackend\Data\service.cs    33  31  NorthwindBackend 
    Error   6   The type or namespace name 'Data' does not exist in the namespace 'System' (are you missing an assembly reference?) C:\Users\Stu\Documents\Visual Studio 2008\Projects\AstoriaDemo2\NorthwindBackend\Data\service.cs    44  32  NorthwindBackend 
    Error   7   The type or namespace name 'Data' does not exist in the namespace 'System' (are you missing an assembly reference?) C:\Users\Stu\Documents\Visual Studio 2008\Projects\AstoriaDemo2\NorthwindBackend\Data\service.cs    48  31  NorthwindBackend 
    Error   8   The type or namespace name 'Telerik' could not be found (are you missing a using directive or an assembly reference?)   C:\Users\Stu\Documents\Visual Studio 2008\Projects\AstoriaDemo2\NorthwindBackend\Default.xaml.cs    49  60  NorthwindBackend 
    Error   9   The type or namespace name 'Data' does not exist in the namespace 'System' (are you missing an assembly reference?) C:\Users\Stu\Documents\Visual Studio 2008\Projects\AstoriaDemo2\NorthwindBackend\Data\service.cs    59  32  NorthwindBackend 
    Error   10  The type or namespace name 'Data' does not exist in the namespace 'System' (are you missing an assembly reference?) C:\Users\Stu\Documents\Visual Studio 2008\Projects\AstoriaDemo2\NorthwindBackend\Data\service.cs    63  31  NorthwindBackend 
    Error   11  The type or namespace name 'Data' does not exist in the namespace 'System' (are you missing an assembly reference?) C:\Users\Stu\Documents\Visual Studio 2008\Projects\AstoriaDemo2\NorthwindBackend\Data\service.cs    74  32  NorthwindBackend 
    Error   12  The type or namespace name 'Data' does not exist in the namespace 'System' (are you missing an assembly reference?) C:\Users\Stu\Documents\Visual Studio 2008\Projects\AstoriaDemo2\NorthwindBackend\Data\service.cs    103 21  NorthwindBackend 
    Error   13  The type or namespace name 'Data' does not exist in the namespace 'System' (are you missing an assembly reference?) C:\Users\Stu\Documents\Visual Studio 2008\Projects\AstoriaDemo2\NorthwindBackend\Data\service.cs    103 21  NorthwindBackend 
    Error   14  The type or namespace name 'Data' does not exist in the namespace 'System' (are you missing an assembly reference?) C:\Users\Stu\Documents\Visual Studio 2008\Projects\AstoriaDemo2\NorthwindBackend\Data\service.cs    104 21  NorthwindBackend 
    Error   15  The type or namespace name 'Data' does not exist in the namespace 'System' (are you missing an assembly reference?) C:\Users\Stu\Documents\Visual Studio 2008\Projects\AstoriaDemo2\NorthwindBackend\Data\service.cs    104 21  NorthwindBackend 
    Error   16  The type or namespace name 'Data' does not exist in the namespace 'System' (are you missing an assembly reference?) C:\Users\Stu\Documents\Visual Studio 2008\Projects\AstoriaDemo2\NorthwindBackend\Data\service.cs    209 31  NorthwindBackend 
    Error   17  The type or namespace name 'Data' does not exist in the namespace 'System' (are you missing an assembly reference?) C:\Users\Stu\Documents\Visual Studio 2008\Projects\AstoriaDemo2\NorthwindBackend\Data\service.cs    221 32  NorthwindBackend 
    Error   18  The type or namespace name 'Data' does not exist in the namespace 'System' (are you missing an assembly reference?) C:\Users\Stu\Documents\Visual Studio 2008\Projects\AstoriaDemo2\NorthwindBackend\Data\service.cs    237 21  NorthwindBackend 
    Error   19  The type or namespace name 'Data' does not exist in the namespace 'System' (are you missing an assembly reference?) C:\Users\Stu\Documents\Visual Studio 2008\Projects\AstoriaDemo2\NorthwindBackend\Data\service.cs    237 21  NorthwindBackend 
    Error   20  The type or namespace name 'Data' does not exist in the namespace 'System' (are you missing an assembly reference?) C:\Users\Stu\Documents\Visual Studio 2008\Projects\AstoriaDemo2\NorthwindBackend\Data\service.cs    238 21  NorthwindBackend 
    Error   21  The type or namespace name 'Data' does not exist in the namespace 'System' (are you missing an assembly reference?) C:\Users\Stu\Documents\Visual Studio 2008\Projects\AstoriaDemo2\NorthwindBackend\Data\service.cs    238 21  NorthwindBackend 
    Error   22  The type or namespace name 'Data' does not exist in the namespace 'System' (are you missing an assembly reference?) C:\Users\Stu\Documents\Visual Studio 2008\Projects\AstoriaDemo2\NorthwindBackend\Data\service.cs    462 21  NorthwindBackend 
    Error   23  The type or namespace name 'Data' does not exist in the namespace 'System' (are you missing an assembly reference?) C:\Users\Stu\Documents\Visual Studio 2008\Projects\AstoriaDemo2\NorthwindBackend\Data\service.cs    462 21  NorthwindBackend 
    Error   24  The type or namespace name 'Data' does not exist in the namespace 'System' (are you missing an assembly reference?) C:\Users\Stu\Documents\Visual Studio 2008\Projects\AstoriaDemo2\NorthwindBackend\Data\service.cs    463 21  NorthwindBackend 
    Error   25  The type or namespace name 'Data' does not exist in the namespace 'System' (are you missing an assembly reference?) C:\Users\Stu\Documents\Visual Studio 2008\Projects\AstoriaDemo2\NorthwindBackend\Data\service.cs    463 21  NorthwindBackend 
    Error   26  The type or namespace name 'Data' does not exist in the namespace 'System' (are you missing an assembly reference?) C:\Users\Stu\Documents\Visual Studio 2008\Projects\AstoriaDemo2\NorthwindBackend\Data\service.cs    721 31  NorthwindBackend 
    Error   27  The type or namespace name 'Data' does not exist in the namespace 'System' (are you missing an assembly reference?) C:\Users\Stu\Documents\Visual Studio 2008\Projects\AstoriaDemo2\NorthwindBackend\Data\service.cs    733 32  NorthwindBackend 
    Warning 28  Could not resolve this reference. Could not locate the assembly "Telerik.Windows.Controls". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. NorthwindBackend 
    Warning 29  Could not resolve this reference. Could not locate the assembly "Microsoft.Data.Services.Client, Version=2.0.5.0, Culture=neutralPublicKeyToken=31bf3856ad364e35processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.    NorthwindBackend 
    Warning 30  Could not resolve this reference. Could not locate the assembly "Telerik.Windows.Controls.Input". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.   NorthwindBackend 
    Warning 31  Could not resolve this reference. Could not locate the assembly "Telerik.Windows.Controls.Navigation". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.  NorthwindBackend 
    Warning 32  The referenced component 'Microsoft.Data.Services.Client' could not be found.    
    Warning 33  The referenced component 'Telerik.Windows.Controls' could not be found.      
    Warning 34  The referenced component 'Telerik.Windows.Controls.Input' could not be found.    
    Warning 35  The referenced component 'Telerik.Windows.Controls.Navigation' could not be found.   
     
  2. Dan Brown
    Dan Brown avatar
    13 posts
    Member since:
    Dec 2009

    Posted 08 Dec 2009 Link to this post

    Hi All

    I have sorted the majority of issues, just had to r install the dll's  .  one problem i still face is that i cant find the  'Microsoft.Data.Services.Client.dll  . I have searched my system and cant find it anywhere..  am i missing a download?

    if anyone can tell me wher i can find the Microsoft.Data.Services.Client.dll i'd be really geratful

    Thanks

    Dan
  3. Milan
    Admin
    Milan avatar
    1989 posts

    Posted 10 Dec 2009 Link to this post

    Hello Dan Brown,

     

    It seems that you are missing Ria Services. Our demos require Ria Services to be present on the host machine. We are working on early notification system for our setup program for such dependencies and we will try to introduce those improvements with our next release. 

    There is a catch though - the latest Ria Services, now called WCF Ria Services, introduced breaking changes and our Q3 examples cannot be compiled with the latest Ria. The first option is to download a previous version of the Ria Services or  upgrade to Q3 2008 SP1 which is compatible with WCF Ria Services. 

    Hope this helps.


    Sincerely yours,
    Milan
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  4. Dan Brown
    Dan Brown avatar
    13 posts
    Member since:
    Dec 2009

    Posted 11 Dec 2009 Link to this post


    Hi Milan

    Thanks a lot for your advice, i'm very new to silverlight so please forgive my ignorance, i just need to make sure i fully undestand what you have said.

    My primery concern at the moment is to the Astoria Demo / ADO.NET DataService Demo which i downloaded from
    http://www.telerik.com/account/free-trials/single-trial.aspx?pid=571


    Will installing the upgrade to Q3 2008 SP1 fix my RIA  proplem with the Astoria Demo  or do i need to locat the previous RIA  Services?

    which option is best in order to get the astoria Demo Working Properly?

    Thanks

    Dan
  5. Milan
    Admin
    Milan avatar
    1989 posts

    Posted 14 Dec 2009 Link to this post

    Hi Dan Brown,

     

    Do not worry about being new to Silverlight - I will try to give you as much details as possible.

    For the time being some of our Silverlight examples rely on WCF Ria Services - as a result the WCF Ria Servies should be installed on the host machine. Our latest examples are only compatible with the latest Ria Services beta release which can be downloaded from here

    My advice is to download both the latest Ria Services and our latest service pack release (2009 Q3 SP1). Then, install Ria and after that our SP1 release. Once you have the right version of Ria you should be able to compile our samples without any problems.

    Do not hesitate to write if you have more questions.

    Best wishes,
    Milan
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  6. Dan Brown
    Dan Brown avatar
    13 posts
    Member since:
    Dec 2009

    Posted 16 Dec 2009 Link to this post

    Hi Milan

    Thanks again for your help,

    I am assuming there must be somthing wrong with my pc configuration as i get build errors on every telerik trial app, regardless of if its open acces, ajax or silverlight. i think that i probobly have to many versions of differnt service pack and ria services etc installed on my pc so i'm going to get rid of everthing this weekend and reinstall from scratch.  hopfully this will solve my problem.

    I'll let you know hoe i get on

    Thanks again

    Dan
  7. Milan
    Admin
    Milan avatar
    1989 posts

    Posted 16 Dec 2009 Link to this post

    Hi Dan Brown,

    Feel free for write if you need any help,

     


    All the best,
    Milan
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  8. Dan Brown
    Dan Brown avatar
    13 posts
    Member since:
    Dec 2009

    Posted 17 Dec 2009 Link to this post

    Hi Milan

    I done a compleate reinstall of Vista and then reinstalled VS  and all the relevent silverlight tools , ria servises, SDK's etc but sadly i still have a problem  with the silverlight ASTORIA Demo

    The issue is that the project does not recognise :  private global::System.Data.Services.Client.DataServiceCollection<Product>
    The type or namespace name 'DataServiceCollection' does not exist in the namespace 'System.Data.Services.Client' (are you missing an assembly reference?)

    this only ocours in DATA / SErvices.cs. 

    As i now have the lates version of RIA services, do i need to change the Microsoft.Data.Services.Client Referance to be somthing else or change the private global::System.Data.Services.Client.DataServiceCollection<Product> to be somthing else? 

    Can you advise what code i should change and where to get this project to work properly?

    I have added the error and Data/Services.cs code below. 

    I really hope you can help

    Thanks again for everything

    Dan


    Error   1   The type or namespace name 'DataServiceCollection' does not exist in the namespace 'System.Data.Services.Client' (are you missing an assembly reference?)   C:\Users\Stu\Documents\Visual Studio 2010\Projects\AstoriaDemo\NorthwindBackend\Data\service.cs 209 52  NorthwindBackend 
    Error   2   The type or namespace name 'DataServiceCollection' does not exist in the namespace 'System.Data.Services.Client' (are you missing an assembly reference?)   C:\Users\Stu\Documents\Visual Studio 2010\Projects\AstoriaDemo\NorthwindBackend\Data\service.cs 221 53  NorthwindBackend 
    Error   3   The type or namespace name 'DataServiceCollection' does not exist in the namespace 'System.Data.Services.Client' (are you missing an assembly reference?)   C:\Users\Stu\Documents\Visual Studio 2010\Projects\AstoriaDemo\NorthwindBackend\Data\service.cs 221 124 NorthwindBackend 
    Error   4   The type or namespace name 'DataServiceCollection' does not exist in the namespace 'System.Data.Services.Client' (are you missing an assembly reference?)   C:\Users\Stu\Documents\Visual Studio 2010\Projects\AstoriaDemo\NorthwindBackend\Data\service.cs 721 52  NorthwindBackend 
    Error   5   The type or namespace name 'DataServiceCollection' does not exist in the namespace 'System.Data.Services.Client' (are you missing an assembly reference?)   C:\Users\Stu\Documents\Visual Studio 2010\Projects\AstoriaDemo\NorthwindBackend\Data\service.cs 733 53  NorthwindBackend 
    Error   6   The type or namespace name 'DataServiceCollection' does not exist in the namespace 'System.Data.Services.Client' (are you missing an assembly reference?)   C:\Users\Stu\Documents\Visual Studio 2010\Projects\AstoriaDemo\NorthwindBackend\Data\service.cs 733 124 NorthwindBackend 
     




    /------------------------------------------------------------------------------ 
    // <auto-generated> 
    //     This code was generated by a tool. 
    //     Runtime Version:2.0.50727.4200 
    // 
    //     Changes to this file may cause incorrect behavior and will be lost if 
    //     the code is regenerated. 
    // </auto-generated> 
    //------------------------------------------------------------------------------ 
     
    // Original file name: service.cs 
    // Generation date: 11/13/2009 6:12:07 PM 
    namespace NorthwindModel 
         
        /// <summary> 
        /// There are no comments for Northwind_Entities in the schema. 
        /// </summary> 
        public partial class Northwind_Entities : global::System.Data.Services.Client.DataServiceContext 
        { 
            /// <summary> 
            /// Initialize a new Northwind_Entities object. 
            /// </summary> 
            public Northwind_Entities(global::System.Uri serviceRoot) :  
                    base(serviceRoot) 
            { 
                this.OnContextCreated(); 
            } 
            partial void OnContextCreated(); 
            /// <summary> 
            /// There are no comments for CategorySet in the schema. 
            /// </summary> 
            public global::System.Data.Services.Client.DataServiceQuery<Category> CategorySet 
            { 
                get 
                { 
                    if ((this._CategorySet == null)) 
                    { 
                        this._CategorySet = base.CreateQuery<Category>("CategorySet"); 
                    } 
                    return this._CategorySet; 
                } 
            } 
            private global::System.Data.Services.Client.DataServiceQuery<Category> _CategorySet; 
            /// <summary> 
            /// There are no comments for ProductSet in the schema. 
            /// </summary> 
            public global::System.Data.Services.Client.DataServiceQuery<Product> ProductSet 
            { 
                get 
                { 
                    if ((this._ProductSet == null)) 
                    { 
                        this._ProductSet = base.CreateQuery<Product>("ProductSet"); 
                    } 
                    return this._ProductSet; 
                } 
            } 
            private global::System.Data.Services.Client.DataServiceQuery<Product> _ProductSet; 
            /// <summary> 
            /// There are no comments for SupplierSet in the schema. 
            /// </summary> 
            public global::System.Data.Services.Client.DataServiceQuery<Supplier> SupplierSet 
            { 
                get 
                { 
                    if ((this._SupplierSet == null)) 
                    { 
                        this._SupplierSet = base.CreateQuery<Supplier>("SupplierSet"); 
                    } 
                    return this._SupplierSet; 
                } 
            } 
            private global::System.Data.Services.Client.DataServiceQuery<Supplier> _SupplierSet; 
            /// <summary> 
            /// There are no comments for CategorySet in the schema. 
            /// </summary> 
            public void AddToCategorySet(Category category) 
            { 
                base.AddObject("CategorySet", category); 
            } 
            /// <summary> 
            /// There are no comments for ProductSet in the schema. 
            /// </summary> 
            public void AddToProductSet(Product product) 
            { 
                base.AddObject("ProductSet", product); 
            } 
            /// <summary> 
            /// There are no comments for SupplierSet in the schema. 
            /// </summary> 
            public void AddToSupplierSet(Supplier supplier) 
            { 
                base.AddObject("SupplierSet", supplier); 
            } 
        } 
        /// <summary> 
        /// There are no comments for NorthwindModel.Category in the schema. 
        /// </summary> 
        /// <KeyProperties> 
        /// CategoryID 
        /// </KeyProperties> 
        [global::System.Data.Services.Common.EntitySetAttribute("CategorySet")] 
        [global::System.Data.Services.Common.DataServiceKeyAttribute("CategoryID")] 
        public partial class Category : global::System.ComponentModel.INotifyPropertyChanged 
        { 
            /// <summary> 
            /// Create a new Category object. 
            /// </summary> 
            /// <param name="categoryID">Initial value of CategoryID.</param> 
            /// <param name="categoryName">Initial value of CategoryName.</param> 
            public static Category CreateCategory(int categoryID, string categoryName) 
            { 
                Category category = new Category(); 
                category.CategoryID = categoryID
                category.CategoryName = categoryName
                return category; 
            } 
            /// <summary> 
            /// There are no comments for Property CategoryID in the schema. 
            /// </summary> 
            public int CategoryID 
            { 
                get 
                { 
                    return this._CategoryID; 
                } 
                set 
                { 
                    this.OnCategoryIDChanging(value); 
                    this._CategoryID = value
                    this.OnCategoryIDChanged(); 
                    this.OnPropertyChanged("CategoryID"); 
                } 
            } 
            private int _CategoryID; 
            partial void OnCategoryIDChanging(int value); 
            partial void OnCategoryIDChanged(); 
            /// <summary> 
            /// There are no comments for Property CategoryName in the schema. 
            /// </summary> 
            public string CategoryName 
            { 
                get 
                { 
                    return this._CategoryName; 
                } 
                set 
                { 
                    this.OnCategoryNameChanging(value); 
                    this._CategoryName = value
                    this.OnCategoryNameChanged(); 
                    this.OnPropertyChanged("CategoryName"); 
                } 
            } 
            private string _CategoryName; 
            partial void OnCategoryNameChanging(string value); 
            partial void OnCategoryNameChanged(); 
            /// <summary> 
            /// There are no comments for Property Description in the schema. 
            /// </summary> 
            public string Description 
            { 
                get 
                { 
                    return this._Description; 
                } 
                set 
                { 
                    this.OnDescriptionChanging(value); 
                    this._Description = value
                    this.OnDescriptionChanged(); 
                    this.OnPropertyChanged("Description"); 
                } 
            } 
            private string _Description; 
            partial void OnDescriptionChanging(string value); 
            partial void OnDescriptionChanged(); 
            /// <summary> 
            /// There are no comments for Property Picture in the schema. 
            /// </summary> 
            public byte[] Picture 
            { 
                get 
                { 
                    if ((this._Picture != null)) 
                    { 
                        return ((byte[])(this._Picture.Clone())); 
                    } 
                    else 
                    { 
                        return null; 
                    } 
                } 
                set 
                { 
                    this.OnPictureChanging(value); 
                    this._Picture = value
                    this.OnPictureChanged(); 
                    this.OnPropertyChanged("Picture"); 
                } 
            } 
            private byte[] _Picture; 
            partial void OnPictureChanging(byte[] value); 
            partial void OnPictureChanged(); 
            /// <summary> 
            /// There are no comments for Products in the schema. 
            /// </summary> 
            public global::System.Data.Services.Client.DataServiceCollection<Product> Products 
            { 
                get 
                { 
                    return this._Products; 
                } 
                set 
                { 
                    this._Products = value
                    this.OnPropertyChanged("Products"); 
                } 
            } 
            private global::System.Data.Services.Client.DataServiceCollection<Product> _Products = System.Data.Services.Client.DataServiceCollection.Create<Product>(); 
            public event global::System.ComponentModel.PropertyChangedEventHandler PropertyChanged; 
            protected virtual void OnPropertyChanged(string property) 
            { 
                if ((this.PropertyChanged != null)) 
                { 
                    this.PropertyChanged(this, new global::System.ComponentModel.PropertyChangedEventArgs(property)); 
                } 
            } 
        } 
        /// <summary> 
        /// There are no comments for NorthwindModel.Product in the schema. 
        /// </summary> 
        /// <KeyProperties> 
        /// ProductID 
        /// </KeyProperties> 
        [global::System.Data.Services.Common.EntitySetAttribute("ProductSet")] 
        [global::System.Data.Services.Common.DataServiceKeyAttribute("ProductID")] 
        public partial class Product : global::System.ComponentModel.INotifyPropertyChanged 
        { 
            /// <summary> 
            /// Create a new Product object. 
            /// </summary> 
            /// <param name="discontinued">Initial value of Discontinued.</param> 
            /// <param name="productID">Initial value of ProductID.</param> 
            /// <param name="productName">Initial value of ProductName.</param> 
            public static Product CreateProduct(bool discontinued, int productID, string productName) 
            { 
                Product product = new Product(); 
                product.Discontinued = discontinued
                product.ProductID = productID
                product.ProductName = productName
                return product; 
            } 
            /// <summary> 
            /// There are no comments for Property Discontinued in the schema. 
            /// </summary> 
            public bool Discontinued 
            { 
                get 
                { 
                    return this._Discontinued; 
                } 
                set 
                { 
                    this.OnDiscontinuedChanging(value); 
                    this._Discontinued = value
                    this.OnDiscontinuedChanged(); 
                    this.OnPropertyChanged("Discontinued"); 
                } 
            } 
            private bool _Discontinued; 
            partial void OnDiscontinuedChanging(bool value); 
            partial void OnDiscontinuedChanged(); 
            /// <summary> 
            /// There are no comments for Property ProductID in the schema. 
            /// </summary> 
            public int ProductID 
            { 
                get 
                { 
                    return this._ProductID; 
                } 
                set 
                { 
                    this.OnProductIDChanging(value); 
                    this._ProductID = value
                    this.OnProductIDChanged(); 
                    this.OnPropertyChanged("ProductID"); 
                } 
            } 
            private int _ProductID; 
            partial void OnProductIDChanging(int value); 
            partial void OnProductIDChanged(); 
            /// <summary> 
            /// There are no comments for Property ProductName in the schema. 
            /// </summary> 
            public string ProductName 
            { 
                get 
                { 
                    return this._ProductName; 
                } 
                set 
                { 
                    this.OnProductNameChanging(value); 
                    this._ProductName = value
                    this.OnProductNameChanged(); 
                    this.OnPropertyChanged("ProductName"); 
                } 
            } 
            private string _ProductName; 
            partial void OnProductNameChanging(string value); 
            partial void OnProductNameChanged(); 
            /// <summary> 
            /// There are no comments for Property QuantityPerUnit in the schema. 
            /// </summary> 
            public string QuantityPerUnit 
            { 
                get 
                { 
                    return this._QuantityPerUnit; 
                } 
                set 
                { 
                    this.OnQuantityPerUnitChanging(value); 
                    this._QuantityPerUnit = value
                    this.OnQuantityPerUnitChanged(); 
                    this.OnPropertyChanged("QuantityPerUnit"); 
                } 
            } 
            private string _QuantityPerUnit; 
            partial void OnQuantityPerUnitChanging(string value); 
            partial void OnQuantityPerUnitChanged(); 
            /// <summary> 
            /// There are no comments for Property ReorderLevel in the schema. 
            /// </summary> 
            public global::System.Nullable<short> ReorderLevel 
            { 
                get 
                { 
                    return this._ReorderLevel; 
                } 
                set 
                { 
                    this.OnReorderLevelChanging(value); 
                    this._ReorderLevel = value
                    this.OnReorderLevelChanged(); 
                    this.OnPropertyChanged("ReorderLevel"); 
                } 
            } 
            private global::System.Nullable<short> _ReorderLevel; 
            partial void OnReorderLevelChanging(global::System.Nullable<short> value); 
            partial void OnReorderLevelChanged(); 
            /// <summary> 
            /// There are no comments for Property UnitPrice in the schema. 
            /// </summary> 
            public global::System.Nullable<decimal> UnitPrice 
            { 
                get 
                { 
                    return this._UnitPrice; 
                } 
                set 
                { 
                    this.OnUnitPriceChanging(value); 
                    this._UnitPrice = value
                    this.OnUnitPriceChanged(); 
                    this.OnPropertyChanged("UnitPrice"); 
                } 
            } 
            private global::System.Nullable<decimal> _UnitPrice; 
            partial void OnUnitPriceChanging(global::System.Nullable<decimal> value); 
            partial void OnUnitPriceChanged(); 
            /// <summary> 
            /// There are no comments for Property UnitsInStock in the schema. 
            /// </summary> 
            public global::System.Nullable<short> UnitsInStock 
            { 
                get 
                { 
                    return this._UnitsInStock; 
                } 
                set 
                { 
                    this.OnUnitsInStockChanging(value); 
                    this._UnitsInStock = value
                    this.OnUnitsInStockChanged(); 
                    this.OnPropertyChanged("UnitsInStock"); 
                } 
            } 
            private global::System.Nullable<short> _UnitsInStock; 
            partial void OnUnitsInStockChanging(global::System.Nullable<short> value); 
            partial void OnUnitsInStockChanged(); 
            /// <summary> 
            /// There are no comments for Property UnitsOnOrder in the schema. 
            /// </summary> 
            public global::System.Nullable<short> UnitsOnOrder 
            { 
                get 
                { 
                    return this._UnitsOnOrder; 
                } 
                set 
                { 
                    this.OnUnitsOnOrderChanging(value); 
                    this._UnitsOnOrder = value
                    this.OnUnitsOnOrderChanged(); 
                    this.OnPropertyChanged("UnitsOnOrder"); 
                } 
            } 
            private global::System.Nullable<short> _UnitsOnOrder; 
            partial void OnUnitsOnOrderChanging(global::System.Nullable<short> value); 
            partial void OnUnitsOnOrderChanged(); 
            /// <summary> 
            /// There are no comments for Category in the schema. 
            /// </summary> 
            public Category Category 
            { 
                get 
                { 
                    return this._Category; 
                } 
                set 
                { 
                    this._Category = value
                    this.OnPropertyChanged("Category"); 
                } 
            } 
            private Category _Category; 
            /// <summary> 
            /// There are no comments for Supplier in the schema. 
            /// </summary> 
            public Supplier Supplier 
            { 
                get 
                { 
                    return this._Supplier; 
                } 
                set 
                { 
                    this._Supplier = value
                    this.OnPropertyChanged("Supplier"); 
                } 
            } 
            private Supplier _Supplier; 
            public event global::System.ComponentModel.PropertyChangedEventHandler PropertyChanged; 
            protected virtual void OnPropertyChanged(string property) 
            { 
                if ((this.PropertyChanged != null)) 
                { 
                    this.PropertyChanged(this, new global::System.ComponentModel.PropertyChangedEventArgs(property)); 
                } 
            } 
        } 
        /// <summary> 
        /// There are no comments for NorthwindModel.Supplier in the schema. 
        /// </summary> 
        /// <KeyProperties> 
        /// SupplierID 
        /// </KeyProperties> 
        [global::System.Data.Services.Common.EntitySetAttribute("SupplierSet")] 
        [global::System.Data.Services.Common.DataServiceKeyAttribute("SupplierID")] 
        public partial class Supplier : global::System.ComponentModel.INotifyPropertyChanged 
        { 
            /// <summary> 
            /// Create a new Supplier object. 
            /// </summary> 
            /// <param name="companyName">Initial value of CompanyName.</param> 
            /// <param name="supplierID">Initial value of SupplierID.</param> 
            public static Supplier CreateSupplier(string companyName, int supplierID) 
            { 
                Supplier supplier = new Supplier(); 
                supplier.CompanyName = companyName
                supplier.SupplierID = supplierID
                return supplier; 
            } 
            /// <summary> 
            /// There are no comments for Property Address in the schema. 
            /// </summary> 
            public string Address 
            { 
                get 
                { 
                    return this._Address; 
                } 
                set 
                { 
                    this.OnAddressChanging(value); 
                    this._Address = value
                    this.OnAddressChanged(); 
                    this.OnPropertyChanged("Address"); 
                } 
            } 
            private string _Address; 
            partial void OnAddressChanging(string value); 
            partial void OnAddressChanged(); 
            /// <summary> 
            /// There are no comments for Property City in the schema. 
            /// </summary> 
            public string City 
            { 
                get 
                { 
                    return this._City; 
                } 
                set 
                { 
                    this.OnCityChanging(value); 
                    this._City = value
                    this.OnCityChanged(); 
                    this.OnPropertyChanged("City"); 
                } 
            } 
            private string _City; 
            partial void OnCityChanging(string value); 
            partial void OnCityChanged(); 
            /// <summary> 
            /// There are no comments for Property CompanyName in the schema. 
            /// </summary> 
            public string CompanyName 
            { 
                get 
                { 
                    return this._CompanyName; 
                } 
                set 
                { 
                    this.OnCompanyNameChanging(value); 
                    this._CompanyName = value
                    this.OnCompanyNameChanged(); 
                    this.OnPropertyChanged("CompanyName"); 
                } 
            } 
            private string _CompanyName; 
            partial void OnCompanyNameChanging(string value); 
            partial void OnCompanyNameChanged(); 
            /// <summary> 
            /// There are no comments for Property ContactName in the schema. 
            /// </summary> 
            public string ContactName 
            { 
                get 
                { 
                    return this._ContactName; 
                } 
                set 
                { 
                    this.OnContactNameChanging(value); 
                    this._ContactName = value
                    this.OnContactNameChanged(); 
                    this.OnPropertyChanged("ContactName"); 
                } 
            } 
            private string _ContactName; 
            partial void OnContactNameChanging(string value); 
            partial void OnContactNameChanged(); 
            /// <summary> 
            /// There are no comments for Property ContactTitle in the schema. 
            /// </summary> 
            public string ContactTitle 
            { 
                get 
                { 
                    return this._ContactTitle; 
                } 
                set 
                { 
                    this.OnContactTitleChanging(value); 
                    this._ContactTitle = value
                    this.OnContactTitleChanged(); 
                    this.OnPropertyChanged("ContactTitle"); 
                } 
            } 
            private string _ContactTitle; 
            partial void OnContactTitleChanging(string value); 
            partial void OnContactTitleChanged(); 
            /// <summary> 
            /// There are no comments for Property Country in the schema. 
            /// </summary> 
            public string Country 
            { 
                get 
                { 
                    return this._Country; 
                } 
                set 
                { 
                    this.OnCountryChanging(value); 
                    this._Country = value
                    this.OnCountryChanged(); 
                    this.OnPropertyChanged("Country"); 
                } 
            } 
            private string _Country; 
            partial void OnCountryChanging(string value); 
            partial void OnCountryChanged(); 
            /// <summary> 
            /// There are no comments for Property Fax in the schema. 
            /// </summary> 
            public string Fax 
            { 
                get 
                { 
                    return this._Fax; 
                } 
                set 
                { 
                    this.OnFaxChanging(value); 
                    this._Fax = value
                    this.OnFaxChanged(); 
                    this.OnPropertyChanged("Fax"); 
                } 
            } 
            private string _Fax; 
            partial void OnFaxChanging(string value); 
            partial void OnFaxChanged(); 
            /// <summary> 
            /// There are no comments for Property HomePage in the schema. 
            /// </summary> 
            public string HomePage 
            { 
                get 
                { 
                    return this._HomePage; 
                } 
                set 
                { 
                    this.OnHomePageChanging(value); 
                    this._HomePage = value
                    this.OnHomePageChanged(); 
                    this.OnPropertyChanged("HomePage"); 
                } 
            } 
            private string _HomePage; 
            partial void OnHomePageChanging(string value); 
            partial void OnHomePageChanged(); 
            /// <summary> 
            /// There are no comments for Property Phone in the schema. 
            /// </summary> 
            public string Phone 
            { 
                get 
                { 
                    return this._Phone; 
                } 
                set 
                { 
                    this.OnPhoneChanging(value); 
                    this._Phone = value
                    this.OnPhoneChanged(); 
                    this.OnPropertyChanged("Phone"); 
                } 
            } 
            private string _Phone; 
            partial void OnPhoneChanging(string value); 
            partial void OnPhoneChanged(); 
            /// <summary> 
            /// There are no comments for Property PostalCode in the schema. 
            /// </summary> 
            public string PostalCode 
            { 
                get 
                { 
                    return this._PostalCode; 
                } 
                set 
                { 
                    this.OnPostalCodeChanging(value); 
                    this._PostalCode = value
                    this.OnPostalCodeChanged(); 
                    this.OnPropertyChanged("PostalCode"); 
                } 
            } 
            private string _PostalCode; 
            partial void OnPostalCodeChanging(string value); 
            partial void OnPostalCodeChanged(); 
            /// <summary> 
            /// There are no comments for Property Region in the schema. 
            /// </summary> 
            public string Region 
            { 
                get 
                { 
                    return this._Region; 
                } 
                set 
                { 
                    this.OnRegionChanging(value); 
                    this._Region = value
                    this.OnRegionChanged(); 
                    this.OnPropertyChanged("Region"); 
                } 
            } 
            private string _Region; 
            partial void OnRegionChanging(string value); 
            partial void OnRegionChanged(); 
            /// <summary> 
            /// There are no comments for Property SupplierID in the schema. 
            /// </summary> 
            public int SupplierID 
            { 
                get 
                { 
                    return this._SupplierID; 
                } 
                set 
                { 
                    this.OnSupplierIDChanging(value); 
                    this._SupplierID = value
                    this.OnSupplierIDChanged(); 
                    this.OnPropertyChanged("SupplierID"); 
                } 
            } 
            private int _SupplierID; 
            partial void OnSupplierIDChanging(int value); 
            partial void OnSupplierIDChanged(); 
            /// <summary> 
            /// There are no comments for Products in the schema. 
            /// </summary> 
            public global::System.Data.Services.Client.DataServiceCollection<Product> Products 
            { 
                get 
                { 
                    return this._Products; 
                } 
                set 
                { 
                    this._Products = value
                    this.OnPropertyChanged("Products"); 
                } 
            } 
            private global::System.Data.Services.Client.DataServiceCollection<Product> _Products = System.Data.Services.Client.DataServiceCollection.Create<Product>(); 
            public event global::System.ComponentModel.PropertyChangedEventHandler PropertyChanged; 
            protected virtual void OnPropertyChanged(string property) 
            { 
                if ((this.PropertyChanged != null)) 
                { 
                    this.PropertyChanged(this, new global::System.ComponentModel.PropertyChangedEventArgs(property)); 
                } 
            } 
        } 
     
  9. Dan Brown
    Dan Brown avatar
    13 posts
    Member since:
    Dec 2009

    Posted 17 Dec 2009 Link to this post

    Hi Milan

    I done a compleate reinstall of Vista and then reinstalled VS  and all the relevent silverlight tools , ria servises, SDK's etc but sadly i still have a problem  with the silverlight ASTORIA Demo

    The issue is that the project does not recognise :  private global::System.Data.Services.Client.DataServiceCollection<Product>
    The type or namespace name 'DataServiceCollection' does not exist in the namespace 'System.Data.Services.Client' (are you missing an assembly reference?)

    this only ocours in DATA / SErvices.cs. 

    As i now have the lates version of RIA services, do i need to change the Microsoft.Data.Services.Client Referance to be somthing else or change the private global::System.Data.Services.Client.DataServiceCollection<Product> to be somthing else? 

    Can you advise what code i should change and where to get this project to work properly?

    I have added the error and Data/Services.cs code below. 

    I really hope you can help

    Thanks again for everything

    Dan


    Error   1   The type or namespace name 'DataServiceCollection' does not exist in the namespace 'System.Data.Services.Client' (are you missing an assembly reference?)   C:\Users\Stu\Documents\Visual Studio 2010\Projects\AstoriaDemo\NorthwindBackend\Data\service.cs 209 52  NorthwindBackend 
    Error   2   The type or namespace name 'DataServiceCollection' does not exist in the namespace 'System.Data.Services.Client' (are you missing an assembly reference?)   C:\Users\Stu\Documents\Visual Studio 2010\Projects\AstoriaDemo\NorthwindBackend\Data\service.cs 221 53  NorthwindBackend 
    Error   3   The type or namespace name 'DataServiceCollection' does not exist in the namespace 'System.Data.Services.Client' (are you missing an assembly reference?)   C:\Users\Stu\Documents\Visual Studio 2010\Projects\AstoriaDemo\NorthwindBackend\Data\service.cs 221 124 NorthwindBackend 
    Error   4   The type or namespace name 'DataServiceCollection' does not exist in the namespace 'System.Data.Services.Client' (are you missing an assembly reference?)   C:\Users\Stu\Documents\Visual Studio 2010\Projects\AstoriaDemo\NorthwindBackend\Data\service.cs 721 52  NorthwindBackend 
    Error   5   The type or namespace name 'DataServiceCollection' does not exist in the namespace 'System.Data.Services.Client' (are you missing an assembly reference?)   C:\Users\Stu\Documents\Visual Studio 2010\Projects\AstoriaDemo\NorthwindBackend\Data\service.cs 733 53  NorthwindBackend 
    Error   6   The type or namespace name 'DataServiceCollection' does not exist in the namespace 'System.Data.Services.Client' (are you missing an assembly reference?)   C:\Users\Stu\Documents\Visual Studio 2010\Projects\AstoriaDemo\NorthwindBackend\Data\service.cs 733 124 NorthwindBackend 
     




    /------------------------------------------------------------------------------ 
    // <auto-generated> 
    //     This code was generated by a tool. 
    //     Runtime Version:2.0.50727.4200 
    // 
    //     Changes to this file may cause incorrect behavior and will be lost if 
    //     the code is regenerated. 
    // </auto-generated> 
    //------------------------------------------------------------------------------ 
     
    // Original file name: service.cs 
    // Generation date: 11/13/2009 6:12:07 PM 
    namespace NorthwindModel 
         
        /// <summary> 
        /// There are no comments for Northwind_Entities in the schema. 
        /// </summary> 
        public partial class Northwind_Entities : global::System.Data.Services.Client.DataServiceContext 
        { 
            /// <summary> 
            /// Initialize a new Northwind_Entities object. 
            /// </summary> 
            public Northwind_Entities(global::System.Uri serviceRoot) :  
                    base(serviceRoot) 
            { 
                this.OnContextCreated(); 
            } 
            partial void OnContextCreated(); 
            /// <summary> 
            /// There are no comments for CategorySet in the schema. 
            /// </summary> 
            public global::System.Data.Services.Client.DataServiceQuery<Category> CategorySet 
            { 
                get 
                { 
                    if ((this._CategorySet == null)) 
                    { 
                        this._CategorySet = base.CreateQuery<Category>("CategorySet"); 
                    } 
                    return this._CategorySet; 
                } 
            } 
            private global::System.Data.Services.Client.DataServiceQuery<Category> _CategorySet; 
            /// <summary> 
            /// There are no comments for ProductSet in the schema. 
            /// </summary> 
            public global::System.Data.Services.Client.DataServiceQuery<Product> ProductSet 
            { 
                get 
                { 
                    if ((this._ProductSet == null)) 
                    { 
                        this._ProductSet = base.CreateQuery<Product>("ProductSet"); 
                    } 
                    return this._ProductSet; 
                } 
            } 
            private global::System.Data.Services.Client.DataServiceQuery<Product> _ProductSet; 
            /// <summary> 
            /// There are no comments for SupplierSet in the schema. 
            /// </summary> 
            public global::System.Data.Services.Client.DataServiceQuery<Supplier> SupplierSet 
            { 
                get 
                { 
                    if ((this._SupplierSet == null)) 
                    { 
                        this._SupplierSet = base.CreateQuery<Supplier>("SupplierSet"); 
                    } 
                    return this._SupplierSet; 
                } 
            } 
            private global::System.Data.Services.Client.DataServiceQuery<Supplier> _SupplierSet; 
            /// <summary> 
            /// There are no comments for CategorySet in the schema. 
            /// </summary> 
            public void AddToCategorySet(Category category) 
            { 
                base.AddObject("CategorySet", category); 
            } 
            /// <summary> 
            /// There are no comments for ProductSet in the schema. 
            /// </summary> 
            public void AddToProductSet(Product product) 
            { 
                base.AddObject("ProductSet", product); 
            } 
            /// <summary> 
            /// There are no comments for SupplierSet in the schema. 
            /// </summary> 
            public void AddToSupplierSet(Supplier supplier) 
            { 
                base.AddObject("SupplierSet", supplier); 
            } 
        } 
        /// <summary> 
        /// There are no comments for NorthwindModel.Category in the schema. 
        /// </summary> 
        /// <KeyProperties> 
        /// CategoryID 
        /// </KeyProperties> 
        [global::System.Data.Services.Common.EntitySetAttribute("CategorySet")] 
        [global::System.Data.Services.Common.DataServiceKeyAttribute("CategoryID")] 
        public partial class Category : global::System.ComponentModel.INotifyPropertyChanged 
        { 
            /// <summary> 
            /// Create a new Category object. 
            /// </summary> 
            /// <param name="categoryID">Initial value of CategoryID.</param> 
            /// <param name="categoryName">Initial value of CategoryName.</param> 
            public static Category CreateCategory(int categoryID, string categoryName) 
            { 
                Category category = new Category(); 
                category.CategoryID = categoryID
                category.CategoryName = categoryName
                return category; 
            } 
            /// <summary> 
            /// There are no comments for Property CategoryID in the schema. 
            /// </summary> 
            public int CategoryID 
            { 
                get 
                { 
                    return this._CategoryID; 
                } 
                set 
                { 
                    this.OnCategoryIDChanging(value); 
                    this._CategoryID = value
                    this.OnCategoryIDChanged(); 
                    this.OnPropertyChanged("CategoryID"); 
                } 
            } 
            private int _CategoryID; 
            partial void OnCategoryIDChanging(int value); 
            partial void OnCategoryIDChanged(); 
            /// <summary> 
            /// There are no comments for Property CategoryName in the schema. 
            /// </summary> 
            public string CategoryName 
            { 
                get 
                { 
                    return this._CategoryName; 
                } 
                set 
                { 
                    this.OnCategoryNameChanging(value); 
                    this._CategoryName = value
                    this.OnCategoryNameChanged(); 
                    this.OnPropertyChanged("CategoryName"); 
                } 
            } 
            private string _CategoryName; 
            partial void OnCategoryNameChanging(string value); 
            partial void OnCategoryNameChanged(); 
            /// <summary> 
            /// There are no comments for Property Description in the schema. 
            /// </summary> 
            public string Description 
            { 
                get 
                { 
                    return this._Description; 
                } 
                set 
                { 
                    this.OnDescriptionChanging(value); 
                    this._Description = value
                    this.OnDescriptionChanged(); 
                    this.OnPropertyChanged("Description"); 
                } 
            } 
            private string _Description; 
            partial void OnDescriptionChanging(string value); 
            partial void OnDescriptionChanged(); 
            /// <summary> 
            /// There are no comments for Property Picture in the schema. 
            /// </summary> 
            public byte[] Picture 
            { 
                get 
                { 
                    if ((this._Picture != null)) 
                    { 
                        return ((byte[])(this._Picture.Clone())); 
                    } 
                    else 
                    { 
                        return null; 
                    } 
                } 
                set 
                { 
                    this.OnPictureChanging(value); 
                    this._Picture = value
                    this.OnPictureChanged(); 
                    this.OnPropertyChanged("Picture"); 
                } 
            } 
            private byte[] _Picture; 
            partial void OnPictureChanging(byte[] value); 
            partial void OnPictureChanged(); 
            /// <summary> 
            /// There are no comments for Products in the schema. 
            /// </summary> 
            public global::System.Data.Services.Client.DataServiceCollection<Product> Products 
            { 
                get 
                { 
                    return this._Products; 
                } 
                set 
                { 
                    this._Products = value
                    this.OnPropertyChanged("Products"); 
                } 
            } 
            private global::System.Data.Services.Client.DataServiceCollection<Product> _Products = System.Data.Services.Client.DataServiceCollection.Create<Product>(); 
            public event global::System.ComponentModel.PropertyChangedEventHandler PropertyChanged; 
            protected virtual void OnPropertyChanged(string property) 
            { 
                if ((this.PropertyChanged != null)) 
                { 
                    this.PropertyChanged(this, new global::System.ComponentModel.PropertyChangedEventArgs(property)); 
                } 
            } 
        } 
        /// <summary> 
        /// There are no comments for NorthwindModel.Product in the schema. 
        /// </summary> 
        /// <KeyProperties> 
        /// ProductID 
        /// </KeyProperties> 
        [global::System.Data.Services.Common.EntitySetAttribute("ProductSet")] 
        [global::System.Data.Services.Common.DataServiceKeyAttribute("ProductID")] 
        public partial class Product : global::System.ComponentModel.INotifyPropertyChanged 
        { 
            /// <summary> 
            /// Create a new Product object. 
            /// </summary> 
            /// <param name="discontinued">Initial value of Discontinued.</param> 
            /// <param name="productID">Initial value of ProductID.</param> 
            /// <param name="productName">Initial value of ProductName.</param> 
            public static Product CreateProduct(bool discontinued, int productID, string productName) 
            { 
                Product product = new Product(); 
                product.Discontinued = discontinued
                product.ProductID = productID
                product.ProductName = productName
                return product; 
            } 
            /// <summary> 
            /// There are no comments for Property Discontinued in the schema. 
            /// </summary> 
            public bool Discontinued 
            { 
                get 
                { 
                    return this._Discontinued; 
                } 
                set 
                { 
                    this.OnDiscontinuedChanging(value); 
                    this._Discontinued = value
                    this.OnDiscontinuedChanged(); 
                    this.OnPropertyChanged("Discontinued"); 
                } 
            } 
            private bool _Discontinued; 
            partial void OnDiscontinuedChanging(bool value); 
            partial void OnDiscontinuedChanged(); 
            /// <summary> 
            /// There are no comments for Property ProductID in the schema. 
            /// </summary> 
            public int ProductID 
            { 
                get 
                { 
                    return this._ProductID; 
                } 
                set 
                { 
                    this.OnProductIDChanging(value); 
                    this._ProductID = value
                    this.OnProductIDChanged(); 
                    this.OnPropertyChanged("ProductID"); 
                } 
            } 
            private int _ProductID; 
            partial void OnProductIDChanging(int value); 
            partial void OnProductIDChanged(); 
            /// <summary> 
            /// There are no comments for Property ProductName in the schema. 
            /// </summary> 
            public string ProductName 
            { 
                get 
                { 
                    return this._ProductName; 
                } 
                set 
                { 
                    this.OnProductNameChanging(value); 
                    this._ProductName = value
                    this.OnProductNameChanged(); 
                    this.OnPropertyChanged("ProductName"); 
                } 
            } 
            private string _ProductName; 
            partial void OnProductNameChanging(string value); 
            partial void OnProductNameChanged(); 
            /// <summary> 
            /// There are no comments for Property QuantityPerUnit in the schema. 
            /// </summary> 
            public string QuantityPerUnit 
            { 
                get 
                { 
                    return this._QuantityPerUnit; 
                } 
                set 
                { 
                    this.OnQuantityPerUnitChanging(value); 
                    this._QuantityPerUnit = value
                    this.OnQuantityPerUnitChanged(); 
                    this.OnPropertyChanged("QuantityPerUnit"); 
                } 
            } 
            private string _QuantityPerUnit; 
            partial void OnQuantityPerUnitChanging(string value); 
            partial void OnQuantityPerUnitChanged(); 
            /// <summary> 
            /// There are no comments for Property ReorderLevel in the schema. 
            /// </summary> 
            public global::System.Nullable<short> ReorderLevel 
            { 
                get 
                { 
                    return this._ReorderLevel; 
                } 
                set 
                { 
                    this.OnReorderLevelChanging(value); 
                    this._ReorderLevel = value
                    this.OnReorderLevelChanged(); 
                    this.OnPropertyChanged("ReorderLevel"); 
                } 
            } 
            private global::System.Nullable<short> _ReorderLevel; 
            partial void OnReorderLevelChanging(global::System.Nullable<short> value); 
            partial void OnReorderLevelChanged(); 
            /// <summary> 
            /// There are no comments for Property UnitPrice in the schema. 
            /// </summary> 
            public global::System.Nullable<decimal> UnitPrice 
            { 
                get 
                { 
                    return this._UnitPrice; 
                } 
                set 
                { 
                    this.OnUnitPriceChanging(value); 
                    this._UnitPrice = value
                    this.OnUnitPriceChanged(); 
                    this.OnPropertyChanged("UnitPrice"); 
                } 
            } 
            private global::System.Nullable<decimal> _UnitPrice; 
            partial void OnUnitPriceChanging(global::System.Nullable<decimal> value); 
            partial void OnUnitPriceChanged(); 
            /// <summary> 
            /// There are no comments for Property UnitsInStock in the schema. 
            /// </summary> 
            public global::System.Nullable<short> UnitsInStock 
            { 
                get 
                { 
                    return this._UnitsInStock; 
                } 
                set 
                { 
                    this.OnUnitsInStockChanging(value); 
                    this._UnitsInStock = value
                    this.OnUnitsInStockChanged(); 
                    this.OnPropertyChanged("UnitsInStock"); 
                } 
            } 
            private global::System.Nullable<short> _UnitsInStock; 
            partial void OnUnitsInStockChanging(global::System.Nullable<short> value); 
            partial void OnUnitsInStockChanged(); 
            /// <summary> 
            /// There are no comments for Property UnitsOnOrder in the schema. 
            /// </summary> 
            public global::System.Nullable<short> UnitsOnOrder 
            { 
                get 
                { 
                    return this._UnitsOnOrder; 
                } 
                set 
                { 
                    this.OnUnitsOnOrderChanging(value); 
                    this._UnitsOnOrder = value
                    this.OnUnitsOnOrderChanged(); 
                    this.OnPropertyChanged("UnitsOnOrder"); 
                } 
            } 
            private global::System.Nullable<short> _UnitsOnOrder; 
            partial void OnUnitsOnOrderChanging(global::System.Nullable<short> value); 
            partial void OnUnitsOnOrderChanged(); 
            /// <summary> 
            /// There are no comments for Category in the schema. 
            /// </summary> 
            public Category Category 
            { 
                get 
                { 
                    return this._Category; 
                } 
                set 
                { 
                    this._Category = value
                    this.OnPropertyChanged("Category"); 
                } 
            } 
            private Category _Category; 
            /// <summary> 
            /// There are no comments for Supplier in the schema. 
            /// </summary> 
            public Supplier Supplier 
            { 
                get 
                { 
                    return this._Supplier; 
                } 
                set 
                { 
                    this._Supplier = value
                    this.OnPropertyChanged("Supplier"); 
                } 
            } 
            private Supplier _Supplier; 
            public event global::System.ComponentModel.PropertyChangedEventHandler PropertyChanged; 
            protected virtual void OnPropertyChanged(string property) 
            { 
                if ((this.PropertyChanged != null)) 
                { 
                    this.PropertyChanged(this, new global::System.ComponentModel.PropertyChangedEventArgs(property)); 
                } 
            } 
        } 
        /// <summary> 
        /// There are no comments for NorthwindModel.Supplier in the schema. 
        /// </summary> 
        /// <KeyProperties> 
        /// SupplierID 
        /// </KeyProperties> 
        [global::System.Data.Services.Common.EntitySetAttribute("SupplierSet")] 
        [global::System.Data.Services.Common.DataServiceKeyAttribute("SupplierID")] 
        public partial class Supplier : global::System.ComponentModel.INotifyPropertyChanged 
        { 
            /// <summary> 
            /// Create a new Supplier object. 
            /// </summary> 
            /// <param name="companyName">Initial value of CompanyName.</param> 
            /// <param name="supplierID">Initial value of SupplierID.</param> 
            public static Supplier CreateSupplier(string companyName, int supplierID) 
            { 
                Supplier supplier = new Supplier(); 
                supplier.CompanyName = companyName
                supplier.SupplierID = supplierID
                return supplier; 
            } 
            /// <summary> 
            /// There are no comments for Property Address in the schema. 
            /// </summary> 
            public string Address 
            { 
                get 
                { 
                    return this._Address; 
                } 
                set 
                { 
                    this.OnAddressChanging(value); 
                    this._Address = value
                    this.OnAddressChanged(); 
                    this.OnPropertyChanged("Address"); 
                } 
            } 
            private string _Address; 
            partial void OnAddressChanging(string value); 
            partial void OnAddressChanged(); 
            /// <summary> 
            /// There are no comments for Property City in the schema. 
            /// </summary> 
            public string City 
            { 
                get 
                { 
                    return this._City; 
                } 
                set 
                { 
                    this.OnCityChanging(value); 
                    this._City = value
                    this.OnCityChanged(); 
                    this.OnPropertyChanged("City"); 
                } 
            } 
            private string _City; 
            partial void OnCityChanging(string value); 
            partial void OnCityChanged(); 
            /// <summary> 
            /// There are no comments for Property CompanyName in the schema. 
            /// </summary> 
            public string CompanyName 
            { 
                get 
                { 
                    return this._CompanyName; 
                } 
                set 
                { 
                    this.OnCompanyNameChanging(value); 
                    this._CompanyName = value
                    this.OnCompanyNameChanged(); 
                    this.OnPropertyChanged("CompanyName"); 
                } 
            } 
            private string _CompanyName; 
            partial void OnCompanyNameChanging(string value); 
            partial void OnCompanyNameChanged(); 
            /// <summary> 
            /// There are no comments for Property ContactName in the schema. 
            /// </summary> 
            public string ContactName 
            { 
                get 
                { 
                    return this._ContactName; 
                } 
                set 
                { 
                    this.OnContactNameChanging(value); 
                    this._ContactName = value
                    this.OnContactNameChanged(); 
                    this.OnPropertyChanged("ContactName"); 
                } 
            } 
            private string _ContactName; 
            partial void OnContactNameChanging(string value); 
            partial void OnContactNameChanged(); 
            /// <summary> 
            /// There are no comments for Property ContactTitle in the schema. 
            /// </summary> 
            public string ContactTitle 
            { 
                get 
                { 
                    return this._ContactTitle; 
                } 
                set 
                { 
                    this.OnContactTitleChanging(value); 
                    this._ContactTitle = value
                    this.OnContactTitleChanged(); 
                    this.OnPropertyChanged("ContactTitle"); 
                } 
            } 
            private string _ContactTitle; 
            partial void OnContactTitleChanging(string value); 
            partial void OnContactTitleChanged(); 
            /// <summary> 
            /// There are no comments for Property Country in the schema. 
            /// </summary> 
            public string Country 
            { 
                get 
                { 
                    return this._Country; 
                } 
                set 
                { 
                    this.OnCountryChanging(value); 
                    this._Country = value
                    this.OnCountryChanged(); 
                    this.OnPropertyChanged("Country"); 
                } 
            } 
            private string _Country; 
            partial void OnCountryChanging(string value); 
            partial void OnCountryChanged(); 
            /// <summary> 
            /// There are no comments for Property Fax in the schema. 
            /// </summary> 
            public string Fax 
            { 
                get 
                { 
                    return this._Fax; 
                } 
                set 
                { 
                    this.OnFaxChanging(value); 
                    this._Fax = value
                    this.OnFaxChanged(); 
                    this.OnPropertyChanged("Fax"); 
                } 
            } 
            private string _Fax; 
            partial void OnFaxChanging(string value); 
            partial void OnFaxChanged(); 
            /// <summary> 
            /// There are no comments for Property HomePage in the schema. 
            /// </summary> 
            public string HomePage 
            { 
                get 
                { 
                    return this._HomePage; 
                } 
                set 
                { 
                    this.OnHomePageChanging(value); 
                    this._HomePage = value
                    this.OnHomePageChanged(); 
                    this.OnPropertyChanged("HomePage"); 
                } 
            } 
            private string _HomePage; 
            partial void OnHomePageChanging(string value); 
            partial void OnHomePageChanged(); 
            /// <summary> 
            /// There are no comments for Property Phone in the schema. 
            /// </summary> 
            public string Phone 
            { 
                get 
                { 
                    return this._Phone; 
                } 
                set 
                { 
                    this.OnPhoneChanging(value); 
                    this._Phone = value
                    this.OnPhoneChanged(); 
                    this.OnPropertyChanged("Phone"); 
                } 
            } 
            private string _Phone; 
            partial void OnPhoneChanging(string value); 
            partial void OnPhoneChanged(); 
            /// <summary> 
            /// There are no comments for Property PostalCode in the schema. 
            /// </summary> 
            public string PostalCode 
            { 
                get 
                { 
                    return this._PostalCode; 
                } 
                set 
                { 
                    this.OnPostalCodeChanging(value); 
                    this._PostalCode = value
                    this.OnPostalCodeChanged(); 
                    this.OnPropertyChanged("PostalCode"); 
                } 
            } 
            private string _PostalCode; 
            partial void OnPostalCodeChanging(string value); 
            partial void OnPostalCodeChanged(); 
            /// <summary> 
            /// There are no comments for Property Region in the schema. 
            /// </summary> 
            public string Region 
            { 
                get 
                { 
                    return this._Region; 
                } 
                set 
                { 
                    this.OnRegionChanging(value); 
                    this._Region = value
                    this.OnRegionChanged(); 
                    this.OnPropertyChanged("Region"); 
                } 
            } 
            private string _Region; 
            partial void OnRegionChanging(string value); 
            partial void OnRegionChanged(); 
            /// <summary> 
            /// There are no comments for Property SupplierID in the schema. 
            /// </summary> 
            public int SupplierID 
            { 
                get 
                { 
                    return this._SupplierID; 
                } 
                set 
                { 
                    this.OnSupplierIDChanging(value); 
                    this._SupplierID = value
                    this.OnSupplierIDChanged(); 
                    this.OnPropertyChanged("SupplierID"); 
                } 
            } 
            private int _SupplierID; 
            partial void OnSupplierIDChanging(int value); 
            partial void OnSupplierIDChanged(); 
            /// <summary> 
            /// There are no comments for Products in the schema. 
            /// </summary> 
            public global::System.Data.Services.Client.DataServiceCollection<Product> Products 
            { 
                get 
                { 
                    return this._Products; 
                } 
                set 
                { 
                    this._Products = value
                    this.OnPropertyChanged("Products"); 
                } 
            } 
            private global::System.Data.Services.Client.DataServiceCollection<Product> _Products = System.Data.Services.Client.DataServiceCollection.Create<Product>(); 
            public event global::System.ComponentModel.PropertyChangedEventHandler PropertyChanged; 
            protected virtual void OnPropertyChanged(string property) 
            { 
                if ((this.PropertyChanged != null)) 
                { 
                    this.PropertyChanged(this, new global::System.ComponentModel.PropertyChangedEventArgs(property)); 
                } 
            } 
        } 
     
  10. Kaloyan
    Admin
    Kaloyan avatar
    920 posts

    Posted 18 Dec 2009 Link to this post

    Hi Dan Brown,

    Try installing the ado.net Data Services v1.5 CTP2 as the Astoria demos is using this services. You can download the installation pack form here.

    Kind regards,
    Kaloyan
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  11. Dan Brown
    Dan Brown avatar
    13 posts
    Member since:
    Dec 2009

    Posted 29 Dec 2009 Link to this post

    Hi

    you were right, once i had installed the ado.net Data Services v1.5 CTP2 , eveything worked fine

    Thanks  a lot

    Dan
Back to Top