Skip to content

Mapping query result to Property of certain type  #444

@Mardallas

Description

@Mardallas

Hello,

I am trying to see if it is possible to map results to an Property which is an object.

public class Location
{
    public Guid LocationId { get; set; }
    public Address Address { get; set; }

}
public class Address
{
    public string Address1 { get; set; }
    public string Address2 { get; set; }
    public string Suite { get; set; }
    public int City { get; set; }
    public string State { get; set; }
    public string PostalCode { get; set; }
    public string Country { get; set; }
}

and provided that the all columns for address are returned back in the query result.

How can I get the Location object populated with address information .

Thank you,

Mar

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions