Ejemplo n.º 1
0
        public void AgregarAuctionRecord(AuctionRecord record)
        {
            IHCEntities context = new IHCEntities();

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

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

            context.User.Add(usuario);
            context.SaveChanges();
        }
Ejemplo n.º 4
0
        public void AgregarAuctionRecord(AuctionRecord record) {

            IHCEntities context = new IHCEntities();

            context.AuctionRecord.Add(record);
            context.SaveChanges();
        }
Ejemplo n.º 5
0
        public void nuevoRegistro(User usuario){

            IHCEntities context = new IHCEntities();
            
            context.User.Add(usuario);
            context.SaveChanges();
        }
Ejemplo n.º 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();
        }
Ejemplo n.º 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();
        }
Ejemplo n.º 8
0
        public void AgregarNuevaSubasta(Auction auction) {

            IHCEntities context = new IHCEntities();

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