Exemple #1
0
    public FakeBookstoreContext()
    {
        var connection = new SqliteConnection("DataSource=:memory:");

        connection.Open();
        var options = new DbContextOptionsBuilder <BookstoreContext>()
                      .UseSqlite(connection)
                      .Options;

        m_context = new BookstoreContext(options);
        m_context.Database.EnsureCreated();
    }
Exemple #2
0
 protected void Button1_Click(object sender, EventArgs e)
 {
     "update testing_mysql.sgipc_latest set username = '******' where email = t1.text";
 }
Exemple #3
0
 protected void Button1_Click(object sender, EventArgs e)
 {
     string sql = "";
     sql ="Update sgipc_latest set username='******' where email = '" + t1.Text + "' and password = '******'" ;
 }