本文整理汇总了C#中XPCollection.Select方法的典型用法代码示例。如果您正苦于以下问题:C# XPCollection.Select方法的具体用法?C# XPCollection.Select怎么用?C# XPCollection.Select使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类XPCollection
的用法示例。
在下文中一共展示了XPCollection.Select方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: FindAll
public IEnumerable<Donneur> FindAll()
{
var listeDonneurs = new List<Donneur>();
var config = new AppSettingsReader();
using (
var uow = new UnitOfWork
{
ConnectionString = ((string)config.GetValue("connect", typeof(string)))
})
{
var donneurs = new XPCollection<XpoDonneur>(uow);
listeDonneurs.AddRange(donneurs.Select(Map.MapInverse.MapDonneur).Where(u=>u.Etat));
}
return listeDonneurs;
}
示例2: MapInsertionPresse
public static List<InsertionPresse> MapInsertionPresse(XPCollection<XpoInsertionPresse> xpoInsertionPresses)
{
var listeinsertion = xpoInsertionPresses.Select(xpoInsertionPress => new InsertionPresse()
{
Date = xpoInsertionPress.Date, NombreFoisLus = xpoInsertionPress.NombreFoisLus, SupportPresse = MapSupportPresse(xpoInsertionPress.SupportPresse)
}).ToList();
return listeinsertion;
}
示例3: MapInsertionTv
public static IEnumerable<InsertionTv> MapInsertionTv(XPCollection<XpoInsertionTV> xpoInsertionTVs)
{
var listeinsertion = xpoInsertionTVs.Select(xpoInsertionPress => new InsertionTv()
{
Date = xpoInsertionPress.Date,
NumeroQuartHeure = xpoInsertionPress.NumeroQuartHeure,
SupportTv = MapSupportTv(xpoInsertionPress.SupportTV)
}).ToList();
return listeinsertion;
}
示例4: MapInsertion
public static List<InsertionRadio> MapInsertion(XPCollection<XpoInsertionRadio> xpoInsertionRadios)
{
var listeinsertion = xpoInsertionRadios.Select(xpoInsertionPress => new InsertionRadio()
{
Date = xpoInsertionPress.Date,
NumeroQuartHeure = xpoInsertionPress.NumeroQuartHeure,
SupportRadio = MapSupportRadio(xpoInsertionPress.SupportRadio)
}).ToList();
return listeinsertion;
}