using (var db = new ExpenseDataClassesDataContext(ConfigurationManager.ConnectionStrings["ConnStr"].ToString()))
{
RecordHeader i1 = new RecordHeader();
//set columns
i1.Id = Session["ClaimID"].ToString();
i1.Type = Session["Type"].ToString();
i1.DataAdded = DateTime.Now;
i1.UserName = Session["UserName"].ToString();
// Add the new object to the Orders collection.
db.RecordHeader.InsertOnSubmit(i1);
// Submit the change to the database.
db.SubmitChanges();
}
0 件のコメント:
コメントを投稿