|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EntityMapper.Model;
namespace EntityMapper
{
public class Sampler
{
static public SalesOrder GetOrder()
{
return new SalesOrder { TxDate = DateTime.Today, ContractNo = "A1123", TotalCBM = 5.5m };
}
static public Invoice GetInvoice()
{
return new Invoice();
}
static public string GetMappnigStatements()
{
StringBuilder sb = new StringBuilder();
sb.Append("InvoiceDate = source.TxDate.AddDays(30) ;\r\n");
sb.Append("InvoiceNo = BusinessService.Instance.GetNextInvoiceNo() ;\r\n");
sb.Append("OrderNo = source.ContractNo ;\r\n");
sb.Append("Freight = (source.TotalCBM - 1.5) * 2.2 ;\r\n");
sb.Append("CreateDate = DateTime.Today ;\r\n");
return sb.ToString();
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I am always interested in finding innovative ways for building better applications and founded a technology company since 2003. Welcome to exchange any idea with you and if I am not too busy before deadline of projects, I will reply your emails. Also, if you willing to pay for consulting works and customized software development, you can leave me message.