public Opportunity(Opportunity pOpportunity)
            : this()
        {
            CopyBy(pOpportunity);

            pOpportunity.OpportunityRows.ForEach(
                l => OpportunityRows.Add(new OpportunityRows(l)));

            pOpportunity.OpportunityCompetitors.ForEach(
                l => OpportunityCompetitors.Add(new OpportunityCompetitors(l)));
        }
        private List <OpportunityRows> GetRows()
        {
            var line = new OpportunityRows(DBName);

            var lines = line.GetByOpprId(DocEntry);

            foreach (var line1 in lines)
            {
                line1.TableName = line.TableName;
                line1.DBName    = line.DBName;
            }

            return(lines);
        }
 public OpportunityRows(OpportunityRows pOpportunityRows)
     : this()
 {
     CopyBy(pOpportunityRows);
 }