-
Notifications
You must be signed in to change notification settings - Fork 0
Examples
Austin edited this page Jul 28, 2019
·
2 revisions
These are currently in various states of working (code coming soon) but give an outline of the syntax.
var query = Chic.From(); var listOfDtos = dapper.Execute(query);
var chic = new Chic(); chic.From<DtoSource, BusinessModel>(); List results = dapper.Execute(chic.GetQuery());
var chic = new Chic(); chic.From(); chic.Join<LeftTable, RightTable>(joinOn => joinOn.MatchingKeyName); chic.Join<RightTable, AThirdTable>(join => join.RightKey, join.AThirdtableForeignKey); dapper.Execute(chic.GetQuery);
//Ascending: chic.OrderBy(o => o.ColumnName);
//Descending, use optional enum chic.OrderBy(o => o.ColumnName, Direction.Descending);