本文整理汇总了C#中XPCollection.First方法的典型用法代码示例。如果您正苦于以下问题:C# XPCollection.First方法的具体用法?C# XPCollection.First怎么用?C# XPCollection.First使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类XPCollection
的用法示例。
在下文中一共展示了XPCollection.First方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: MapAudRD
public static AudienceRadio MapAudRD(POCO.Audiences.AudienceRadio Adj, UnitOfWork uow, XPCollection<XpoSupportRadio> supports)
{
var audience = new Donnees.AudienceRadio(uow);
audience.Oid = Adj.id != default(Guid) ? Adj.id : Guid.NewGuid();
audience.QuartHeure = Adj.QuartHeure;
audience.NumeroJour = Adj.NumeroJour;
var support = supports.First(e => e.Code == Adj.SupportRadio.Code);
audience.SupportRadio = support;
return audience;
}
示例2: MapAudTV
public static AudienceTV MapAudTV(Zero.POCO.Audiences.AudienceTV Adj, UnitOfWork uow, XPCollection<XpoSupportTV> supports)
{
var audience = new Donnees.AudienceTV(uow);
audience.Oid = Adj.id != default(Guid) ? Adj.id : Guid.NewGuid();
audience.NumeroQuertdheure = Adj.NumeroQuertdheure;
audience.NumeroJour = Adj.NumeroJour;
var support = supports.First(e => e.Code == Adj.SupportTV.Code);
audience.SupportTV = support;
return audience;
}
示例3: MapAudJournal
public static Donnees.AudienceJournal MapAudJournal(AudienceJournal Adj, UnitOfWork uow, XPCollection<XpoSupportPresse> supports)
{
var audience = new Donnees.AudienceJournal(uow);
audience.NombreOccurence = Adj.NombreOccurence;
audience.NumJournal = Adj.NumJournal;
audience.Oid = Adj.id != default(Guid) ? Adj.id : Guid.NewGuid();
var support = supports.First(e => e.Code==Adj.NumJournal);
audience.SupportPresse = support;
return audience;
}