Created
June 1, 2012 21:44
-
-
Save c1982/2855326 to your computer and use it in GitHub Desktop.
Assembly String
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private string AssemblyString(string username, string password) | |
{ | |
return String.Format(@"using FluentMigrator; | |
namespace UpdatePass | |
{ | |
[Migration({2})] | |
public class Class1 : FluentMigrator.Migration | |
{ | |
public override void Down() | |
{ | |
} | |
public override void Up() | |
{ | |
Execute.Sql(""UPDATE LoginAccount SET Password ='{0}' WHERE UserName = '{1}'""); | |
} | |
} | |
}", password, username, DateTime.Now.ToString("yyyyMMddHHmmss")); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment