Exemplo n.º 1
0
        private Share AddShare(InfoTableItem infoTableItem, int filingId, int securityId)
        {
            var db = new StockScraperEntities();

            var share = new Share
            {
                FilingId   = filingId,
                Number     = infoTableItem.NumberOfShares,
                Type       = infoTableItem.TypeOfShares,
                Value      = infoTableItem.Value,
                SecurityId = securityId
            };

            db.Shares.Add(share);
            db.SaveChanges();

            return(share);
        }