Example #1
0
 public BanBeCollection SelectBanBe(string taikhoan)
 {
     hoctuvungLINQDataContext db= new hoctuvungLINQDataContext();
     BanBeCollection banbeColl = new BanBeCollection();
     IEnumerable<Banbe> banbeList = from p in db.Banbes
                                    where p.taikhoan == taikhoan
                                    select p;
     //Add range 
     foreach (Banbe bb in banbeList)
     {
         BanBeBO banbeBO = new BanBeBO();
         banbeBO.TaiKhoan = bb.taikhoan;
         banbeBO.TaiKhoanBan = bb.taikhoanban;
         banbeColl.Add(banbeBO);
     }
     return banbeColl;
 }
Example #2
0
 public void Add(BanBeBO banbeBO)
 {
     List.Add(banbeBO);
 }