public void Create(DalProduct e) { var product = new Product() { Id = e.Id, Auction_Cost = e.Auction_Cost, AuctionStart = e.AuctionStart, AuctionEnd = e.AuctionEnd, Seller_Id = e.Seller_Id, Customer_Id = e.Customer_Id, Description = e.Description }; context.Set<Product>().Add(product); }
private DalProduct ConvertToDalProductFromOrmProduct(Product ormproduct) { return new DalProduct() { Id = ormproduct.Id, Auction_Cost = ormproduct.Auction_Cost, AuctionStart = ormproduct.AuctionStart, AuctionEnd = ormproduct.AuctionEnd, Seller_Id = ormproduct.Seller_Id, Customer_Id = ormproduct.Customer_Id, Description = ormproduct.Description }; }