예제 #1
0
파일: Form1.cs 프로젝트: xydoublez/cyqdata
        private void btnFill_Click(object sender, EventArgs e)
        {
            UsersBean ub = DBFast.Find <UsersBean>(txtUserID);

            MDataRow.CreateFrom(ub).SetToAll(this);
            OutMsg();
        }
예제 #2
0
        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);
            }
        }
예제 #3
0
        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);
                }
            }
        }