Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raw queries or setup mappings? #367

Open
Gillardo opened this issue Aug 14, 2017 · 0 comments
Open

Raw queries or setup mappings? #367

Gillardo opened this issue Aug 14, 2017 · 0 comments

Comments

@Gillardo
Copy link

Can i use this library to return a result set rather than objects? And poulate objects using a result set?

How do you setup mappings to custom objects..

Example

I have a table called MyObject with columns id, name, company_name, company_address

How can i get that into an object with a child object, like so

public MyObject {
    public int Id { get; set; }
    public MyCompany Company { get; set; }

    public MyCompany {
        public string Name { get; set; }
        public string Address { get; set; }
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant