Guest User

Untitled

a guest
Oct 16th, 2018
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. private string AssemblyString(string username, string password)
  2. {
  3. return String.Format(@"using FluentMigrator;
  4. namespace UpdatePass
  5. {
  6. [Migration({2})]
  7. public class Class1 : FluentMigrator.Migration
  8. {
  9. public override void Down()
  10. {
  11.  
  12. }
  13.  
  14. public override void Up()
  15. {
  16. Execute.Sql(""UPDATE LoginAccount SET Password ='{0}' WHERE UserName = '{1}'"");
  17. }
  18. }
  19. }", password, username, DateTime.Now.ToString("yyyyMMddHHmmss"));
  20. }
Add Comment
Please, Sign In to add comment