public Task <AppUserView> QuerySingleViewByAsync(string userName) { var q = AppUserView.Query().ToInnerQuery("t").Sql(" where t.user_name=:0", userName); return(this.Cmd.QuerySingleAsync <AppUserView>(q)); }
public Task <IList <AppUserView> > QueryViewAsync() => this.Cmd.QueryAsync <AppUserView>(AppUserView.Query());