private void SeedPaymentTemplates() { Insert.IntoTable("PaymentTemplate").InSchema("Payments") .Row(new { Code = "PAYMENT-INTERNET-BYFLY", FormTemplate = new ExplicitUnicodeString( JObject.Parse(Resource.ReadToEnd("M5_Release/Templates/internet-byfly.json")) .ToString(Formatting.None)), InfoTemplate = new ExplicitUnicodeString(Resource.ReadToEnd("M5_Release/Templates/internet-byfly.info.txt")), DisplayName = "Интернет - BYFLY" }); }
public override void Up() { Alter.Table("PaymentTemplate").InSchema("Payments") .AddColumn("InfoTemplate").AsString(4096).Nullable(); Update.Table("PaymentTemplate").InSchema("Payments") .Set(new { InfoTemplate = new ExplicitUnicodeString(Resource.ReadToEnd("M4_Payments/Templates/cell-velcom-phoneno.info.txt")) }) .Where(new { Code = "PAYMENT-CELL-VELCOM-PHONENO" }); Update.Table("PaymentTemplate").InSchema("Payments") .Set(new { InfoTemplate = new ExplicitUnicodeString(Resource.ReadToEnd("M4_Payments/Templates/custom-paymentorder.info.txt")) }) .Where(new { Code = "PAYMENT-CUSTOM-PAYMENTORDER" }); Alter.Table("Payment").InSchema("Payments") .AddColumn("Info").AsString(1024).Nullable(); }
public override void Up() { Update.Table("PaymentTemplate").InSchema("Payments") .Set(new { FormTemplate = new ExplicitUnicodeString(Resource.ReadToEnd("M5_Release/Templates/custom-paymentorder.json")) }) .Where(new { Code = "PAYMENT-CUSTOM-PAYMENTORDER" }); }