Lockversion save more than once throw exception

Feb 19, 2009 at 4:12 PM
///<summary>test</summary>
    public abstract class test : LinqObjectModel<test>
    {
        public abstract string t { get; set; }

        [SpecialName]
        public abstract int LockVersion { get; set; }

    }



            DbEntry.Context.DropAndCreate(typeof(test));
            var x = test.New();
            x.t = "aa";
            x.Save();

            var x1 = test.FindById(1);
            x1.t = "bb";
            x1.Save();
            x1.t = "cc";
            x1.Save();//exception



Coordinator
Feb 20, 2009 at 4:46 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.