What's wrong with this code??

Sep 2, 2008 at 4:19 PM
Edited Sep 2, 2008 at 4:30 PM

I am so sorry I already solved this problem

 public abstract class SampleData2 : LinqObjectModel<SampleData2>
    {
        [Length(255)]
        public abstract string url { get; set; }

        public abstract string fff { get;  set;}
    }

above will be ok.

so tired , so make this silly mistake sorry


---------------------------------------------------------------------
QUOTE
-----------------------------------------------------------------------------
    public abstract class SampleData2 : LinqObjectModel<SampleData2>
    {
        [Length(255)]
        public string url;

        public string fff;
    }


and...

DbEntry.Context.DropAndCreate(typeof(SampleData2));
                var t = SampleData2.New();
                t.url = "444";
                t.fff = "vvv";
                t.Save();
//Here I can trace the insert sql
                var t2=SampleData2.FindById(1);
                t2.url = "555";
                t2.fff = "nnn";
                t2.Save();
//here I can't trace the update sql
                var t3 = SampleData2.FindOne(p => p.url == "444");
                t3.url = "hhhh";
                t3.fff = "lll";
                t3.Save();
//here I can't trace the update sql


Sep 2, 2008 at 4:20 PM
CacheEnable already = false