New Catnap

34 views
Skip to first unread message

Tim Scott

unread,
Jan 13, 2012, 12:28:31 PM1/13/12
to catnap-orm-discuss
I have recently done some pretty major work on Catnap. First I
removed the dependency on IEntity, making Catnap truly POCO friendly.
This is not a breaking change. I kept IEntity and Entity for backward
compatibility.

After that I started a new experimental branch to make mapping more
fluent. Finally I created yet another branch to improve the
configurator and reduce Catnap's use of statics like DomainMap and
SessionFactory. I kept the UnitOfWork static. However this is only
needed if you also use the built in Repository. Otherwise, the new
Catnap is totally compatible with DI using you favorite IoC container.

The result is a much nicer and more flexible design, I think. However
these latter two efforts break stuff. I have made almost no effort to
promote Catnap. Not only is there no "release" of Catnap, there's not
even any kind of versioning yet. For these reasons I feel it's okay
to break stuff with impunity. However, before I merge all my
experiments back into master I thought I would first touch base with
those few who have expressed interest in Catnap by joining this list.

I should add that along the way I have updated my apps that use
Catnap, and although breaking changes always suck, I can attest that
the pain is not too bad.

Please holler if you have any comments or suggestions. Thanks.

Tim Scott

unread,
Jan 13, 2012, 12:36:38 PM1/13/12
to catnap-orm-discuss
Oops, forgot to add this link. You can see the updated APIs here:

https://github.com/timscott/catnap/wiki/Introduction-(New)

Michael S. Muegel

unread,
Jan 13, 2012, 12:40:19 PM1/13/12
to catnap-or...@googlegroups.com
Thanks for the heads up Tim. I am still working on my iOS app that uses Catnap (hobby project). I did make a few minor tweaks to Catnap, but nothing that should be difficult for me to re-do (and consider sending patch... I'll have to review my changes and whether they are useful to others).

Maybe create a Git label for and a ZIP of your first release for anyone sticking with it?? Just in case someone lost the source someone and needed to re-download it.

I'll definitely checkout your new API when I get a chance.

Regards,
-Mike
--
Michael S. Muegel
972-413-6378

Tim Scott

unread,
Jan 13, 2012, 2:23:56 PM1/13/12
to catnap-orm-discuss
Mike,

I merged the first experiment (remove IEntity dependency) into master
since it's non-breaking. Then I created a tag "v0".

If you've made improvements to Catnap, by all means please share. In
case you're not familiar with how to do that on Github, look here:
http://help.github.com/send-pull-requests/. We'd use the Fork & Pull
model.

I'll wait a little bit for others to chime in before I merge all the
other stuff.

Tim

Tim Scott

unread,
Jan 15, 2012, 1:14:03 PM1/15/12
to catnap-orm-discuss
I have merged all experimental branches into master. I have set the
version number in the build to 0.1.

As it happens, I'm out of the MonoTouch business for now -- I have not
yet bought the new Xamarin package. Therefore I have no way to try
out the new Catnap on an iOS device. If someone has the inclination
to give it a try that would be awesome. If you do, please let me know
how it goes. Thanks!

Tim
Reply all
Reply to author
Forward
0 new messages