Skip to content

Instantly share code, notes, and snippets.

@masaru-b-cl
Last active December 30, 2015 19:29
Show Gist options
  • Select an option

  • Save masaru-b-cl/7874641 to your computer and use it in GitHub Desktop.

Select an option

Save masaru-b-cl/7874641 to your computer and use it in GitHub Desktop.
元データ作成
var q = from i in Enumerable.Range(1, 100)
from j in Enumerable.Range(1, 100)
from k in Enumerable.Range(1, 10)
select new Sales
{
Customer = string.Format("取引先{0:d2}", i),
Product = string.Format("商品{0:d2}", j),
UnitPrice = Convert.ToDecimal(j * 100),
Quantity = k
};
var source = q.ToArray();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment