SigTrade.Models.DecisionsRepository.GetAllDecisionsPerParagraph C# (CSharp) Method

GetAllDecisionsPerParagraph() public method

public GetAllDecisionsPerParagraph ( int pactionId ) : IList
pactionId int
return IList
        public IList<Decision> GetAllDecisionsPerParagraph(int pactionId)
        {
            return
            DB.Select().From<Decision>().Where(Decision.ParagraphActionIDColumn).IsEqualTo(pactionId).And(Decision.DeletedColumn).IsNull().ExecuteTypedList<Decision>();

              //  throw new NotImplementedException();
        }

Usage Example

Example #1
0
        public void TestDecisionDetails()
        {
            IGenericRepository gens = new GenericRepository();

            IDecisionsRepository decisions = new DecisionsRepository();
            IList<Decision> decs = decisions.GetAllDecisionsPerParagraph(12);

            IList<DecisionDetails> details = UpdateUtils.GetDecisionDetails(decs);

               //   int j = recs.getAllRecommendationsByParagraph(12).Count;

            Assert.AreEqual(details.Count,decs.Count);
        }
All Usage Examples Of SigTrade.Models.DecisionsRepository::GetAllDecisionsPerParagraph