本文整理匯總了C#中SidejobModel.SidejobEntities.AddToArchivedProfessionalSuccesfulIPNs方法的典型用法代碼示例。如果您正苦於以下問題:C# SidejobEntities.AddToArchivedProfessionalSuccesfulIPNs方法的具體用法?C# SidejobEntities.AddToArchivedProfessionalSuccesfulIPNs怎麽用?C# SidejobEntities.AddToArchivedProfessionalSuccesfulIPNs使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類SidejobModel.SidejobEntities
的用法示例。
在下文中一共展示了SidejobEntities.AddToArchivedProfessionalSuccesfulIPNs方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: ArchiveSuccessfulIPN
public void ArchiveSuccessfulIPN(SidejobEntities context)
{
var customersuccessfulIPN = (from c in context.CustomerSuccesfulIPNs
where c.ProjectID == ProjectID
select c).ToList();
if (customersuccessfulIPN.Count != 0)
{
foreach (var acsipn in customersuccessfulIPN.Select(csipn => new ArchivedCustomerSuccesfulIPN
{
IPNID = csipn.IPNID,
GrossTotal = csipn.GrossTotal,
Invoice = csipn.Invoice,
PaymentStatus = csipn.PaymentStatus,
FirstName = csipn.FirstName,
LastName = csipn.LastName,
PaymentFee = csipn.PaymentFee,
BusinessEmail = csipn.BusinessEmail,
ReceiverEmail = csipn.ReceiverEmail,
ItemName = csipn.ItemName,
CurrencyCode = csipn.CurrencyCode,
TransactionId = csipn.TransactionId,
Custom = csipn.Custom,
SubscriberId = csipn.SubscriberId,
CustomerID = csipn.CustomerID,
ProjectID = csipn.ProjectID,
TxType = csipn.TxType,
PendingReason = csipn.PendingReason,
PaymentDate = csipn.PaymentDate,
Address = csipn.Address,
City = csipn.City,
State = csipn.State,
Zip = csipn.Zip,
Country = csipn.Country,
CountryCode = csipn.CountryCode,
AddressStatus = csipn.AddressStatus,
PayerStatus = csipn.PayerStatus,
PayerID = csipn.PayerID,
PaymentType = csipn.PaymentType,
NotifyVersion = csipn.NotifyVersion,
PayerPhone = csipn.PayerPhone,
Tax = csipn.Tax,
PayerBusinessName = csipn.PayerBusinessName
}))
{
context.AddToArchivedCustomerSuccesfulIPNs(acsipn);
}
}
var professionalsuccessfulIPN = (from c in context.ProfessionalSuccesfulIPNs
where c.ProjectID == ProjectID
select c).ToList();
if (professionalsuccessfulIPN.Count != 0)
{
foreach (var apsipn in professionalsuccessfulIPN.Select(csipn => new ArchivedProfessionalSuccesfulIPN
{
IPNID = csipn.IPNID,
GrossTotal = csipn.GrossTotal,
Invoice = csipn.Invoice,
PaymentStatus = csipn.PaymentStatus,
FirstName = csipn.FirstName,
LastName = csipn.LastName,
PaymentFee = csipn.PaymentFee,
BusinessEmail = csipn.BusinessEmail,
ReceiverEmail = csipn.ReceiverEmail,
ItemName = csipn.ItemName,
CurrencyCode = csipn.CurrencyCode,
TransactionId = csipn.TransactionId,
Custom = csipn.Custom,
SubscriberId = csipn.SubscriberId,
ProID = csipn.ProID,
ProjectID = csipn.ProjectID,
TxType = csipn.TxType,
PendingReason = csipn.PendingReason,
PaymentDate = csipn.PaymentDate,
Address = csipn.Address,
City = csipn.City,
State = csipn.State,
Zip = csipn.Zip,
Country = csipn.Country,
CountryCode = csipn.CountryCode,
AddressStatus = csipn.AddressStatus,
PayerStatus = csipn.PayerStatus,
PayerID = csipn.PayerID,
PaymentType = csipn.PaymentType,
NotifyVersion = csipn.NotifyVersion,
PayerPhone = csipn.PayerPhone,
Tax = csipn.Tax,
PayerBusinessName = csipn.PayerBusinessName
}))
{
context.AddToArchivedProfessionalSuccesfulIPNs(apsipn);
}
}
var customersuccessfulpdt = (from c in context.CustomerSuccessfulPDTs
where c.ProjectID == ProjectID
select c).ToList();
if (customersuccessfulpdt.Count != 0)
{
//.........這裏部分代碼省略.........