Click here to Skip to main content
15,890,185 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: how to get selected datagrid row items ? Pin
Pete O'Hanlon8-May-11 21:44
mvePete O'Hanlon8-May-11 21:44 
GeneralRe: how to get selected datagrid row items ? Pin
SRKSHOME8-May-11 22:36
SRKSHOME8-May-11 22:36 
GeneralRe: how to get selected datagrid row items ? Pin
Pete O'Hanlon9-May-11 0:19
mvePete O'Hanlon9-May-11 0:19 
Questioncustom query Pin
picasso27-May-11 7:52
picasso27-May-11 7:52 
AnswerRe: custom query Pin
Pete O'Hanlon7-May-11 8:29
mvePete O'Hanlon7-May-11 8:29 
QuestionHow to set default location for google map on WP7 Pin
Nguyen Thanh Duc6-May-11 23:30
Nguyen Thanh Duc6-May-11 23:30 
AnswerRe: How to set default location for google map on WP7 Pin
Pete O'Hanlon6-May-11 23:34
mvePete O'Hanlon6-May-11 23:34 
QuestionExtended EDMX Pin
eddieangel6-May-11 7:21
eddieangel6-May-11 7:21 
I have a partial class to extend my entity framework edmx, it looks like this (in brief)"

public partial class Property
{
    private string _displayAddress;
    public string DisplayAddress
    {
        get
        {
            string address = number.ToString();
            if (!String.IsNullOrEmpty(direction))
                address += " " + direction;
            address += " " + street;
            if (suffixId != null)
                address += " " + StreetSuffix.name;
            if (!String.IsNullOrEmpty(unit))
                address += " " + unit;
            return address;
        }
        set { _displayAddress = value; }
    }
}


The kicker is that the StreetSuffix is a separate table that is joined to the property table by virtue of suffixId.

The data service class has this: return this.ObjectContext.Properties.Include("StreetSuffix");.

The metadata class has this:
[Include]
public StreetSuffix StreetSuffix { get; set; }


So what is amiss that is throwing a null error when it tries to process the StreetSuffix.name?

Cheers, --EA
AnswerRe: Extended EDMX Pin
Pete O'Hanlon6-May-11 7:35
mvePete O'Hanlon6-May-11 7:35 
GeneralRe: Extended EDMX Pin
eddieangel6-May-11 7:38
eddieangel6-May-11 7:38 
GeneralRe: Extended EDMX Pin
Pete O'Hanlon6-May-11 8:23
mvePete O'Hanlon6-May-11 8:23 
GeneralRe: Extended EDMX Pin
eddieangel6-May-11 8:24
eddieangel6-May-11 8:24 
QuestionHow to convert arrayclass into normal class object.. Pin
Rocky236-May-11 7:12
Rocky236-May-11 7:12 
AnswerRe: How to convert arrayclass into normal class object.. Pin
Pete O'Hanlon6-May-11 23:38
mvePete O'Hanlon6-May-11 23:38 
GeneralRe: How to convert arrayclass into normal class object.. Pin
Rocky237-May-11 0:20
Rocky237-May-11 0:20 
GeneralRe: How to convert arrayclass into normal class object.. Pin
Pete O'Hanlon7-May-11 1:34
mvePete O'Hanlon7-May-11 1:34 
QuestionWPF samples Pin
arkiboys6-May-11 2:57
arkiboys6-May-11 2:57 
AnswerRe: WPF samples Pin
Ian Shlasko6-May-11 3:10
Ian Shlasko6-May-11 3:10 
AnswerRe: WPF samples Pin
Renat Khabibulin9-May-11 1:09
Renat Khabibulin9-May-11 1:09 
GeneralRe: WPF samples Pin
arkiboys9-May-11 1:11
arkiboys9-May-11 1:11 
GeneralRe: WPF samples Pin
Renat Khabibulin9-May-11 1:32
Renat Khabibulin9-May-11 1:32 
GeneralRe: WPF samples Pin
arkiboys9-May-11 1:42
arkiboys9-May-11 1:42 
QuestionMake two listboxes have the same width Pin
Jean-Louis Leroy6-May-11 2:43
Jean-Louis Leroy6-May-11 2:43 
AnswerRe: Make two listboxes have the same width Pin
Ian Shlasko6-May-11 3:09
Ian Shlasko6-May-11 3:09 
GeneralRe: Make two listboxes have the same width Pin
Jean-Louis Leroy6-May-11 3:18
Jean-Louis Leroy6-May-11 3:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.