this code also fetch entity base on the value in textbox1.text
DataAccessAdapter da = new DataAccessAdapter();
private TblTestEntity te;
private void button3_Click(object sender, EventArgs e)
{
te = new TblTestEntity();
te.Test = Decimal.Parse(textBox1.Text);
da.FetchEntity(te);
this.pictureBox1.Image = te.Test4;
}
but when I put te = new TblTestEntity(); outside the button3_Click event, it only load the entity base on the textbox.text value for the fisrt time. It mean, if I input another value to textBox1.text and click again, its remain the value of the entity.
Thank you.