public V_AppUser QueryViewBy(string userName) { var q = V_AppUser.Query().ToInnerQuery("t").Sql(" where t.Username=@0", userName); return(this.Cmd.QuerySingle <V_AppUser>(q)); }
public IEnumerable <V_AppUser> QueryView() { return(this.Cmd.Query <V_AppUser>(V_AppUser.Query())); }