Want to learn ActiveRecord template in C #

Can someone provide the code for a very simple class activerecord with which I could learn? Looking at the source for projects like Castle and SubSonic is a bit overwhelming. I would like to study the active recording template to understand how this works. I know that everything I build will be nothing compared to Castle or SubSonic, but I think the learning experience would be great.

I looked at Hayden ActiveRecord, but I can not find the source. Most of the active entries related to the entry on his website are quite old.

Thanks.

+6
c # activerecord orm
source share
3 answers

Wikipedia provides a simple pseudo-code that demonstrates the concept, besides the fact that I suggest trying to implement it, and then come back if you have any difficulties.

My experience taught me that I never learned anything as well as when I first fought with him, asking for help, when you started, everything is fine, but you need to get a code to prove to yourself that you really understand space, otherwise you just finish cutting and pasting.

+3
source share

Check out the Active record lock .

+1
source share

Subsonic 3 can implement the ActiveRecord template. http://www.subsonicproject.com/

You can examine the patterns and output that they generate.

-one
source share

All Articles