NEW

Sep 6, 2009 at 2:01 PM

老大把原来的

public static T New();
        public static T New(params object[] os);

改成了

public static T New { get; }

是为啥,是为了简单吗?

(很赞,这样不用写括号了,也没用过第二个)

Coordinator
Sep 7, 2009 at 2:54 AM

恩,是为了简单。以前是可以用 New(name, age) 这样写的,不过参数顺序无法确定,所以索性改成属性,简单明了。

Sep 8, 2009 at 9:50 AM

The example of dynamic object you provide is not working, can you give me a working example? thanks

Coordinator
Sep 8, 2009 at 12:26 PM

Yeah, the links of version 3.5 of the tutorials has some issues and it fixed now.

The links of Tutorials For Version 3.5 working now.

Coordinator
Sep 8, 2009 at 12:42 PM

And the Dynamic object also fixed.

Thanks.

Sep 10, 2009 at 12:41 PM

Thanks for your help. Today I tried another tutorial section -> "Relation", I found it was also not working .

 

Coordinator
Sep 10, 2009 at 4:08 PM

Yeah. It's fixed now.

Thanks.

Sep 10, 2009 at 10:15 PM

Which one do you fix? I just check it, this page still has same content. http://www.codeplex.com/DbEntry/Wiki/View.aspx?title=Relations&version=8

Coordinator
Sep 11, 2009 at 2:18 AM

I fixed http://dbentry.codeplex.com/Wiki/View.aspx?title=Relations . It works for the recent source code.

Do you mean http://www.codeplex.com/DbEntry/Wiki/View.aspx?title=Relations&version=8 doesn't work for DbEntry.Net 3.5 ?

 

Sep 11, 2009 at 3:19 AM

Yes, you are right. The example at this address (http://www.codeplex.com/DbEntry/Wiki/View.aspx?title=Relations&version=8)does not work. 

Coordinator
Sep 11, 2009 at 8:04 AM

Tested it and it works.

But you need the test.mdb (or the db created by OrmInitDatabase.exe)  which in DbEntry.Net.v3.5.Samples.zip

Sep 11, 2009 at 10:18 AM
Edited Sep 11, 2009 at 10:20 AM

Thanks for your fast reply. I think I've found the problem. When the example called xx.FindById method, because table hasn't been created yet, that's why I cannot make it run. By the way, can you explain why do we have to declare entity class as abstract in dbentry?

Coordinator
Sep 11, 2009 at 11:51 AM

This is why abstract :

Dynamic object

Partial update