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

it's more complex #178

Closed
wuzhenda opened this issue Apr 19, 2022 · 4 comments
Closed

it's more complex #178

wuzhenda opened this issue Apr 19, 2022 · 4 comments

Comments

@wuzhenda
Copy link

can't write the code without document.

` var queryParams = new
{
FirstName = "John",
Street = "Creek Street"
};

var persons = dbConnection.Find<Person>(statement => statement
    .WithAlias("person")
    .Include<Address>(join => join.InnerJoin()
                                  .WithAlias("address"))
    .Where($@"
       {nameof(Person.FirstName):of person} = {nameof(queryParams.FirstName):P} 
       AND {nameof(Address.Street):of address} = {nameof(queryParams.Street):P}")  
    .OrderBy($"{nameof(Person.LastName):of person} DESC")  
    .Skip(10)  
    .Top(20)  
    .WithParameters(queryParams);`
@wuzhenda
Copy link
Author

and changed "Dapper.FastCrud.ModelGenerator" class name?

@MoonStorm
Copy link
Owner

MoonStorm commented Apr 19, 2022

You're gonna have to be more specific. What "document" are you missing? If you meant "documentation", we have a wiki that will help you get started.

@wuzhenda
Copy link
Author

wuzhenda commented Apr 20, 2022

I mean the code in the "README.md " is too complex, not easy to remember.
if write that code,have to go back here for wiki document time by time.

@MoonStorm
Copy link
Owner

Ah I see. Thanks for bringing this to our attention.

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

2 participants