Example #1
0
        public void AgregarAuctionRecord(AuctionRecord record)
        {
            IHCEntities context = new IHCEntities();

            context.AuctionRecord.Add(record);
            context.SaveChanges();
        }
Example #2
0
        public void AgregarNuevaSubasta(Auction auction)
        {
            IHCEntities context = new IHCEntities();

            context.Auction.Add(auction);
            context.SaveChanges();
        }
Example #3
0
        public void nuevoRegistro(User usuario)
        {
            IHCEntities context = new IHCEntities();

            context.User.Add(usuario);
            context.SaveChanges();
        }
Example #4
0
        public void AgregarAuctionRecord(AuctionRecord record) {

            IHCEntities context = new IHCEntities();

            context.AuctionRecord.Add(record);
            context.SaveChanges();
        }
Example #5
0
        public void nuevoRegistro(User usuario){

            IHCEntities context = new IHCEntities();
            
            context.User.Add(usuario);
            context.SaveChanges();
        }
Example #6
0
        public void UpdateSubasta(Auction subasta ) {
            IHCEntities context = new IHCEntities(); //USANDO LINQ

            var query = (from tAcution in context.Auction
                         where tAcution.AuctionId == subasta.AuctionId
                         select tAcution).First();

            query.AuctionId = subasta.AuctionId;
            query.Description = subasta.Description;
            query.ProductName = subasta.ProductName;
            query.StartDate = subasta.StartDate;
            query.EndDate = subasta.EndDate;
            query.HighestBid = subasta.HighestBid;
            query.Winner = subasta.Winner;
            context.SaveChanges();
        }
Example #7
0
        public void UpdateSubasta(Auction subasta)
        {
            IHCEntities context = new IHCEntities(); //USANDO LINQ

            var query = (from tAcution in context.Auction
                         where tAcution.AuctionId == subasta.AuctionId
                         select tAcution).First();

            query.AuctionId   = subasta.AuctionId;
            query.Description = subasta.Description;
            query.ProductName = subasta.ProductName;
            query.StartDate   = subasta.StartDate;
            query.EndDate     = subasta.EndDate;
            query.HighestBid  = subasta.HighestBid;
            query.Winner      = subasta.Winner;
            context.SaveChanges();
        }
Example #8
0
        public void AgregarNuevaSubasta(Auction auction) {

            IHCEntities context = new IHCEntities();

            context.Auction.Add(auction);
            context.SaveChanges();
        }