This question is locked. New answers and comments are not allowed.
Hi ,
I am using this code in my application :
Telerik.OpenAccess.ObjectContainer container = (Telerik.OpenAccess.ObjectContainer)Session["container"];
try
{
container.Transaction.Begin();
List<EsfImage> data = container.NamedList("Images").Cast<EsfImage>().ToList();
EsfImage img = data.Where(x => x.ImageID == imageID && x.ImageSizeID == imageSizeID && x.SourceTypeID == sourceTypeID && x.ImageTypeID==imageTypeID).SingleOrDefault();
container.Remove(img);
container.NamedList("Images").Remove(img);
container.Transaction.Commit();
}
When this code execute it shows that row is deleted but when i refresh page then i can see that row again,please help where i am doing wrong
I am using this code in my application :
Telerik.OpenAccess.ObjectContainer container = (Telerik.OpenAccess.ObjectContainer)Session["container"];
try
{
container.Transaction.Begin();
List<EsfImage> data = container.NamedList("Images").Cast<EsfImage>().ToList();
EsfImage img = data.Where(x => x.ImageID == imageID && x.ImageSizeID == imageSizeID && x.SourceTypeID == sourceTypeID && x.ImageTypeID==imageTypeID).SingleOrDefault();
container.Remove(img);
container.NamedList("Images").Remove(img);
container.Transaction.Commit();
}
When this code execute it shows that row is deleted but when i refresh page then i can see that row again,please help where i am doing wrong