hi there i'm using below method to select infomation from database, how can i insert and delete and update via this mehod:
[Table]
public class Retriveinfo
{
[Column]
public string Name { get; set; }
[Column]
public string LastName { get; set; }
[Column(IsPrimaryKey = true)]
public int Id { get; set; }
}
protected void Button1_Click(object sender, EventArgs e)
{
DataContext dcon = new DataContext(ConfigurationManager.ConnectionStrings["ReviewDatabaseConnectionString"].ConnectionString);
Table<Retriveinfo> Retriveinfos = dcon.GetTable<Retriveinfo>();
var c = from d in Retriveinfos
select new { d.Name, d.LastName };
GridView1.DataSource = c;
GridView1.DataBind();
...
Go to the complete details ...