Skip to content

Instantly share code, notes, and snippets.

@stdray
Last active August 29, 2015 14:19
Show Gist options
  • Select an option

  • Save stdray/3b0a2a4a76d6cda51419 to your computer and use it in GitHub Desktop.

Select an option

Save stdray/3b0a2a4a76d6cda51419 to your computer and use it in GitHub Desktop.
public override Transform() : Seq[IntDoc]
{
yield EntityBuilder(this)
.Create(notificationEF, null, x => x.docPublishDate)
.Create(notificationEP, null, x => x.docPublishDate)
.Create(notificationISM, null, x => x.docPublishDate)
.Create(notificationISO, null, x => x.docPublishDate)
.Create(notificationOK, null, x => x.docPublishDate)
.Create(notificationOKD, null, x => x.docPublishDate)
.Create(notificationOKOU, null, x => x.docPublishDate)
.Create(notificationPO, null, x => x.docPublishDate)
.Create(notificationZakA, null, x => x.docPublishDate)
.Create(notificationZakK, null, x => x.docPublishDate)
.Create(notificationZakKD, null, x => x.docPublishDate)
.Create(notificationZakKOU, null, x => x.docPublishDate)
.Create(notificationZK, null, x => x.docPublishDate)
.Create(notificationZKBI, null, x => x.docPublishDate)
.Create(notificationZP, null, x => x.docPublishDate)
.Change(notificationChange, null, x => x.docPublishDate)
.Change(placementResult, null, x => x.createDate)
.Change(notificationCancelFailure, null, x => x.docPublishDate)
.Change(notificationCancel, null, x => x.docPublishDate)
.Change(notificationEFDateChange, null, x => x.docPublishDate)
.Change(purchaseProlongationOK, null, x => x.docPublishDate)
.Change(purchaseProlongationZK, null, x => x.docPublishDate)
.Build(x => x.IdentityInfo.TenderIdentity);
yields EntitiesBuilder(this)
.Create(lotEF, x => array[ x.lot ], null, (n, _) => n.docPublishDate)
.Create(lotEP, x => array[ x.lot ], null, (n, _) => n.docPublishDate)
.Create(lotISM, x => x.lots, null, (n, _) => n.docPublishDate)
.Create(lotISO, x => array[ x.lot ], null, (n, _) => n.docPublishDate)
.Create(lotOK, x => x.lots, null, (n, _) => n.docPublishDate)
.Create(lotOKD, x => x.lots, null, (n, _) => n.docPublishDate)
.Create(lotOKOU,x => x.lots, null, (n, _) => n.docPublishDate)
.Create(lotPO, x => array [x.lot ], null, (n, _) => n.docPublishDate)
.Create(lotZakA, x => x.lots, null, (n, _) => n.docPublishDate)
.Create(lotZakK, x => x.lots, null, (n, _) => n.docPublishDate)
.Create(lotZakKD, x => x.lots, null, (n, _) => n.docPublishDate)
.Create(lotZakKOU, x => x.lots, null, (n, _) => n.docPublishDate)
.Create(lotZK, x => array [x.lot] , null, (n, _) => n.docPublishDate)
.Create(lotZKBI, x => array [ x.lot ], null, (n, _) => n.docPublishDate)
.Create(lotZP, x => array [ x.lot ], null, (n, _) => n.docPublishDate)
.Change(lotChange, (l, c) => l.IdentityInfo.LotNumber == c.lot.lotNumber, null, x => x.docPublishDate, lotChange)
.Change(notificationLotCancel, (l, c) => c.lot == null || l.IdentityInfo.LotNumber == c.lot.lotNumber, null, x => x.docPublishDate)
.Change(placementResult, (l, r) => l.IdentityInfo.LotNumber == r.lotNumber, null, x => x.createDate)
.Change(notificationCancelFailure, (l, c) => c.lot == null || l.IdentityInfo.LotNumber == c.lot.lotNumber, null, x => x.docPublishDate)
//.Change(notificationCancel, _ => true, null, x => x.docPublishDate)
.Change(notificationEFDateChange, _ => true, null, x => x.docPublishDate)
.Change(purchaseProlongationOK, (l, c) => l.IdentityInfo.LotNumber == c.lot.lotNumber, null, x => x.docPublishDate)
.Change(purchaseProlongationZK, _ => true, null, x => x.docDate)
.Build(x => string.Format("{0}/{1}", x.IdentityInfo.TenderIdentity, x.IdentityInfo.LotNumber));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment