This is a migrated thread and some comments may be shown as answers.

Data Explorer is not showing all properties of partial classes

1 Answer 89 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 1
Richard asked on 20 Jul 2010, 01:43 PM
I have a LINQ business object with some calculated properties defined in a partial class. The calculated properties are showing up in the Data Explorer intermittently. Any ideas why the CityStateZip property is often not showing up in the Data Explorer?

Below is a simple example (with most of the LINQ generated code removed)

public partial class Address: INotifyPropertyChanging, INotifyPropertyChanged
{
    [Column(Storage="_City", DbType="NVarChar(30) NOT NULL", CanBeNull=false)]
    public string City {get; set;}
 
    [Column(Storage="_State", DbType="NVarChar(30) NOT NULL", CanBeNull=false)]
    public string State {get; set;}
 
    [Column(Storage="_Zip", DbType="NVarChar(30) NOT NULL", CanBeNull=false)]
    public string Zip {get; set;}
}

Below is the calculated property in my code:

public partial class Address
{
    public string CityStateZip
    {
        get
        {
            return City + ", " + State + " " + Zip;
        }
    }
}

1 Answer, 1 is accepted

Sort by
0
Hrisi
Telerik team
answered on 23 Jul 2010, 09:54 AM
Hi Richard,

We need the full code of the class definition while you provide only the "partial" definition. But you can try to investigate the problem yourself. Use a reflection to get all public properties and see if the CityStateZip is contained in the collection.

Best wishes,
Hrisi
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
Richard
Top achievements
Rank 1
Answers by
Hrisi
Telerik team
Share this question
or