- public class SCurve
- {
- public DateTime ProgressDate { get; set; }
- public decimal PlannedProgressPercentageWithWeightage { get; set; }
- public decimal ActualProgressPercentage { get; set; }
- public decimal PlannedPrgressPercentageWithWeightageCumulative { get; set; }
- public decimal ActualProgressPercentageCumulative { get; set; }
- }
following is my api , is enumerable i s better than list etc
following is what i get from database. in tuples/record.
- { "nodeHierarchy": [{ "L1": "Mechanical" }, { "L2": "nical" }, { "L3": "nical2" }], "weightage": "34", "dateFrom": "01 jan 2020", "dateTo": "04 Feb 2020", "WSID": "Rky6", "scope": "4234", "IsLeafNode": true, "Parentnode": [{ "L1": "Mechanical" }, { "L2": "nical" }] }
- { "nodeHierarchy": [{ "L1": "Mechanical" }, { "L2": "nical" }], "weightage": "34", "dateFrom": "01 jan 2020", "dateTo": "04 Feb 2020", "WSID": "Rky6", "scope": "4234", "IsLeafNode": true, "Parentnode": [{ "L1": "Mechanical" }] }
- { "nodeHierarchy": [{ "L1": "Mechanical" ], "weightage": "34", "dateFrom": "01 jan 2020", "dateTo": "04 Feb 2020", "WSID": "Rky6", "scope": "4234", "IsLeafNode": true, "Parentnode": [] }
Laxmidhar SahooPosted Mar 4, 2020, 11:19 PM
rajesh yadavPosted Mar 3, 2020, 11:59 PM
thank u, that answers me,
as I said my objective is to make an API to send the data in S-curve class formate.
Laxmidhar SahooPosted Mar 1, 2020, 12:19 AM
One important difference between IEnumerable and List (besides one being an interface and the other being a concrete class) is that IEnumerable is read-only and List is not.
So if you need the ability to make permanent changes of any kind to your collection (add & remove), you'll need List. If you just need to read, sort and/or filter your collection, IEnumerable is sufficient for that purpose.