i try to learn transaction scope. Everything looks good. i try to control transaction is running i add 500 char in NAME value (Name nvarchar(50) normally). While My formApplication not running (it is normal), i try to open a table table is empty. Stop running my app form . i can see values of Tables. WHY?
using (var ctx = new DataClassesCallCenterDataContext())
{
using (var scope = new TransactionScope())
{
var test =
from c in ctx.sp_CallCenterAnketEntity()
select c;
int? ID = test.ToList()[0].ID;
var question = new QuestionsYesNo();
question.Question = "Test3?";
question.Date = DateTime.Now;
ctx.QuestionsYesNos.InsertOnSubmit(question);
ctx.SubmitChanges();
Rehber rehber = (
from r in ctx.Rehbers
where r.ID == ID
select r).First();
rehber.Name =
@"SQL Server 2005'i bir [many more characters] izleyin.";
ctx.SubmitChanges();
scope.Complete();
}
}
i try to open QuestionsYesNo table. i can not in my application running?