This question is related to an earlier question. Preserving field names at the F # / C # border
Due to the current restriction encountered with providers of type F # (see the previous question), I want to match the list created by the type provider in my own list of entries in which this entry is partially
type inspection = {
inspectionID : string;
inspectorID : int;
EstablishmentID : string;
EstablishmentName : string;
}
I think a way to do this would be using Seq.map, but I'm not sure. (Recall that I am doing teaching.) So, here is what I tried:
type restaurantCsv = CsvProvider<"C:\somepath\RestaurantRatings2013.csv",HasHeaders=true>
type RawInspectionData(filename : string) =
member this.allData = restaurantCsv.Load(filename)
member this.allInspections =
this.allData.Data
|> Seq.map(fun rcrd -> new inspection[{inspectionID = rcrd.InspectionID;}])
, , , . - p 43 F # For Scientists, . " " {' . ', ','] ' . "
, , , , . ?