Skip to content

Instantly share code, notes, and snippets.

@sapiens
Created June 20, 2016 12:56
Show Gist options
  • Save sapiens/ece78183acb36cc7d5a8558a41ed1836 to your computer and use it in GitHub Desktop.
Save sapiens/ece78183acb36cc7d5a8558a41ed1836 to your computer and use it in GitHub Desktop.
_db.RetryOnTransientErrorAsync(cancel
, db => db.WithSql(
q=>q.From<AssetsWithContextViewRow>()
.Where(d=>d.ProjectId==input.ProjectId && d.Name.Contains(input.Word))
.Limit(30)
.SelectAll(useAsterisk:true)
.MapTo<AssetInfoWithContext>()
)
.GetRowsAsync());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment