Skip to content

Instantly share code, notes, and snippets.

@c1982
Created June 1, 2012 21:44
Show Gist options
  • Save c1982/2855326 to your computer and use it in GitHub Desktop.
Save c1982/2855326 to your computer and use it in GitHub Desktop.
Assembly String
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