private void btnFill_Click(object sender, EventArgs e) { UsersBean ub = DBFast.Find <UsersBean>(txtUserID); MDataRow.CreateFrom(ub).SetToAll(this); OutMsg(); }
public void BindPhotoList() { PhotoClass pc = DBFast.Find <PhotoClass>(Query <string>("id")); if (pc != null) { View.Set("title", pc.Name + " - Taurus.MVC"); } using (Photo a = new Photo()) { a.Select("CateID=" + Query <string>("id")).Bind(View); } }
public void BindTopArticle() { ArticleClass ac = DBFast.Find <ArticleClass>("Name='行业资讯' or Name='最新资讯'"); if (ac != null) { View.Set("lnkMore", SetType.Href, "/articlelist?id=" + ac.ID); using (Article a = new Article()) { View.OnForeach += View_OnForeach; a.Select(3, "CateID=" + ac.ID + " order by id desc").Bind(View); } } }