Skip to content

Commit

Permalink
fix(directory): 🐛 convert IOrderedEnumerable<T> -> IEnumerable<T> in …
Browse files Browse the repository at this point in the history
  • Loading branch information
collinbarrett committed Nov 16, 2020
1 parent 2b3956f commit f4022b5
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public LanguageVmProfile()
CreateMap<Language, LanguageVm>()
.ForMember(l => l.FilterListIds,
o => o.MapFrom(l =>
l.FilterListLanguages.Select(fll => fll.FilterListId).OrderBy(flid => flid)));
l.FilterListLanguages.Select(fll => fll.FilterListId).OrderBy(flid => flid).ToList()));
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public LicenseVmProfile()
CreateMap<License, LicenseVm>()
.ForMember(l => l.FilterListIds,
o => o.MapFrom(l =>
l.FilterLists.Select(fl => fl.Id).OrderBy(flid => flid)));
l.FilterLists.Select(fl => fl.Id).OrderBy(flid => flid).ToList()));
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,37 +51,37 @@ public ListDetailsVmProfile()
CreateMap<FilterList, ListDetailsVm>()
.ForMember(fl => fl.SyntaxIds,
o => o.MapFrom(fl =>
fl.FilterListSyntaxes.Select(fls => fls.SyntaxId).OrderBy(sid => sid)))
fl.FilterListSyntaxes.Select(fls => fls.SyntaxId).OrderBy(sid => sid).ToList()))
.ForMember(fl => fl.Iso6391s,
o => o.MapFrom(fl =>
fl.FilterListLanguages.Select(fls => fls.Iso6391).OrderBy(i => i)))
fl.FilterListLanguages.Select(fls => fls.Iso6391).OrderBy(i => i).ToList()))
.ForMember(fl => fl.TagIds,
o => o.MapFrom(fl =>
fl.FilterListTags.Select(flt => flt.TagId).OrderBy(tid => tid)))
fl.FilterListTags.Select(flt => flt.TagId).OrderBy(tid => tid).ToList()))
.ForMember(fl => fl.ViewUrls,
o => o.MapFrom(fl =>
fl.ViewUrls.OrderBy(u => u.SegmentNumber).ThenBy(u => u.Primariness)))
fl.ViewUrls.OrderBy(u => u.SegmentNumber).ThenBy(u => u.Primariness).ToList()))
.ForMember(fl => fl.MaintainerIds,
o => o.MapFrom(fl =>
fl.FilterListMaintainers.Select(flm => flm.MaintainerId).OrderBy(mid => mid)))
fl.FilterListMaintainers.Select(flm => flm.MaintainerId).OrderBy(mid => mid).ToList()))
.ForMember(fl => fl.UpstreamFilterListIds,
o => o.MapFrom(fl =>
fl.UpstreamFilterLists.Select(ufl => ufl.UpstreamFilterListId).OrderBy(flid => flid)))
fl.UpstreamFilterLists.Select(ufl => ufl.UpstreamFilterListId).OrderBy(flid => flid).ToList()))
.ForMember(fl => fl.ForkFilterListIds,
o => o.MapFrom(fl =>
fl.ForkFilterLists.Select(ffl => ffl.ForkFilterListId).OrderBy(flid => flid)))
fl.ForkFilterLists.Select(ffl => ffl.ForkFilterListId).OrderBy(flid => flid).ToList()))
.ForMember(fl => fl.IncludedInFilterListIds,
o => o.MapFrom(fl =>
fl.IncludedInFilterLists.Select(iifl => iifl.IncludedInFilterListId).OrderBy(flid => flid)))
fl.IncludedInFilterLists.Select(iifl => iifl.IncludedInFilterListId).OrderBy(flid => flid).ToList()))
.ForMember(fl => fl.IncludesFilterListIds,
o => o.MapFrom(fl =>
fl.IncludesFilterLists.Select(ifl => ifl.IncludesFilterListId).OrderBy(flid => flid)))
fl.IncludesFilterLists.Select(ifl => ifl.IncludesFilterListId).OrderBy(flid => flid).ToList()))
.ForMember(fl => fl.DependencyFilterListIds,
o => o.MapFrom(fl =>
fl.DependencyFilterLists.Select(dfl => dfl.DependencyFilterListId).OrderBy(flid => flid)))
fl.DependencyFilterLists.Select(dfl => dfl.DependencyFilterListId).OrderBy(flid => flid).ToList()))
.ForMember(fl => fl.DependentFilterListIds,
o => o.MapFrom(fl =>
fl.DependentFilterLists.Select(dfl => dfl.DependentFilterListId).OrderBy(flid => flid)));
fl.DependentFilterLists.Select(dfl => dfl.DependentFilterListId).OrderBy(flid => flid).ToList()));
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,16 @@ public ListVmProfile()
CreateMap<FilterList, ListVm>()
.ForMember(fl => fl.SyntaxIds,
o => o.MapFrom(fl =>
fl.FilterListSyntaxes.Select(fls => fls.SyntaxId).OrderBy(sid => sid)))
fl.FilterListSyntaxes.Select(fls => fls.SyntaxId).OrderBy(sid => sid).ToList()))
.ForMember(fl => fl.Iso6391s,
o => o.MapFrom(fl =>
fl.FilterListLanguages.Select(fls => fls.Iso6391).OrderBy(i => i)))
fl.FilterListLanguages.Select(fls => fls.Iso6391).OrderBy(i => i).ToList()))
.ForMember(fl => fl.TagIds,
o => o.MapFrom(fl =>
fl.FilterListTags.Select(flt => flt.TagId).OrderBy(tid => tid)))
fl.FilterListTags.Select(flt => flt.TagId).OrderBy(tid => tid).ToList()))
.ForMember(fl => fl.MaintainerIds,
o => o.MapFrom(fl =>
fl.FilterListMaintainers.Select(flm => flm.MaintainerId).OrderBy(mid => mid)));
fl.FilterListMaintainers.Select(flm => flm.MaintainerId).OrderBy(mid => mid).ToList()));
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public MaintainerVmProfile()
CreateMap<Maintainer, MaintainerVm>()
.ForMember(m => m.FilterListIds,
o => o.MapFrom(m =>
m.FilterListMaintainers.Select(flm => flm.FilterListId).OrderBy(flid => flid)));
m.FilterListMaintainers.Select(flm => flm.FilterListId).OrderBy(flid => flid).ToList()));
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public SoftwareVmProfile()
CreateMap<Software, SoftwareVm>()
.ForMember(s => s.SyntaxIds,
o => o.MapFrom(s =>
s.SoftwareSyntaxes.Select(ss => ss.SyntaxId).OrderBy(sid => sid)));
s.SoftwareSyntaxes.Select(ss => ss.SyntaxId).OrderBy(sid => sid).ToList()));
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ public SyntaxVmProfile()
CreateMap<Syntax, SyntaxVm>()
.ForMember(s => s.FilterListIds,
o => o.MapFrom(s =>
s.FilterListSyntaxes.Select(sls => sls.FilterListId).OrderBy(flid => flid)))
s.FilterListSyntaxes.Select(sls => sls.FilterListId).OrderBy(flid => flid).ToList()))
.ForMember(s => s.SoftwareIds,
o => o.MapFrom(s =>
s.SoftwareSyntaxes.Select(ss => ss.SoftwareId).OrderBy(sid => sid)));
s.SoftwareSyntaxes.Select(ss => ss.SoftwareId).OrderBy(sid => sid).ToList()));
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public TagVmProfile()
CreateMap<Tag, TagVm>()
.ForMember(t => t.FilterListIds,
o => o.MapFrom(t =>
t.FilterListTags.Select(flt => flt.FilterListId).OrderBy(flid => flid)));
t.FilterListTags.Select(flt => flt.FilterListId).OrderBy(flid => flid).ToList()));
}
}

Expand Down

0 comments on commit f4022b5

Please sign in to comment.