Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
var sql = new Sql()
.Select("Movies.*, Directors.*")
.On<Movie, Director>(dbContext.SqlSyntax, m => m.DirectorId, d => d.Id);
var movies = dbContext.Database.Fetch<Movie, Director, Movie>((m, d) =>
m.Director = d;
return m;
}, sql);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment