示例#1
0
 public static M2Currency Create(string isoName, string name, string symbol)
 {
     var currency = new M2Currency
     {
         CurrencyISOName = isoName,
         Name = new ExplicitUnicodeString(name),
         Symbol = symbol
     };
     return currency;
 }
示例#2
0
        public static M2Currency Create(string isoName, string name, string symbol)
        {
            var currency = new M2Currency
            {
                CurrencyISOName = isoName,
                Name            = new ExplicitUnicodeString(name),
                Symbol          = symbol
            };

            return(currency);
        }
        public override void Up()
        {
            var currencies = new List <M2Currency>
            {
                M2Currency.Create("USD", "Доллар Соединённых Штатов Америки", "$"),
                M2Currency.Create("EUR", "Евро", "\u20AC"),
                M2Currency.Create("BYR", "Белорусский рубль", "Br")
            };

            currencies.ForEach(currency =>
                               Insert.IntoTable("Currency").InSchema("Accounting").Row(currency));
        }