Blog'A'Little

Just another C# guy

Persistent Objects Part 3

The one thing I find missing in other persistent object implementations is the ability to persist data from any kind of source.

You could easily persist data from a Web Service, a dataset, other functionality found in your business logic. Just about anything, actually.

If you look at your persistent objects a bit like facade objects, this would make a lot of sense.

For instance :

1
2
3
4
5
6
7
8
9
[Persistent]
public class MyPersistentObject : PersistentObject
{
[PersistentWebService("<uri for webservice>","get method","set method")]
public string Name {
get { return string.Empty; }
set {}
}
}

The DoLittle Persistency project found at GotDotNet is going in that direction. The implementation uses a PersistencySource and goes through a manager to get the Default source. The default behaviour can easily be changed by implementing your own source. This source could for instance get data from a file, if that is what you are trying to accomplish.

It's a world of opportunities.. :)

kick it on DotNetKicks.com kick it on GameDevKicks.com

Comments

loans said:

Your website is very interesting. I liked your website a lot. Thank you.

kick it on DotNetKicks.com kick it on GameDevKicks.com
# juli 2, 2010 5:53

online payday loans said:

Your post is great. Give thanks you so much for presenting bunches of important ideas. I will bookmark your web publication and will be without a doubt coming back. Again, I recognize the value of your entire work combined with providing such an abundance of vital info for the audience.

kick it on DotNetKicks.com kick it on GameDevKicks.com
# august 25, 2010 3:21

loans bc said:

vipbnevfpwazkdkjcbprmfxxpeikwgqpcce

kick it on DotNetKicks.com kick it on GameDevKicks.com
# september 2, 2010 3:02

online payday loans said:

A very nice niche blog, and a good design there sparks Simplicity yet complex algorithm of the internet. Thank You.

kick it on DotNetKicks.com kick it on GameDevKicks.com
# september 21, 2010 3:13

payday loans in canada said:

I will post a link to this blog on my website. I'm sure my readers will find this info really great.

kick it on DotNetKicks.com kick it on GameDevKicks.com
# september 22, 2010 3:23

payday loans no fax said:

Perfect concepts on this web page. It's rare these days to find websites with data you are seeking. I'm happy I chanced on this webpage. I will certainly bookmark it or even register for your rss feeds simply to be updated on your new posts. Keep up the nice job and I'm sure some other folks researching valued information will actually stop by and benefit from your web page for resources. kidupcdpeev

kick it on DotNetKicks.com kick it on GameDevKicks.com
# september 23, 2010 2:18

loans no fax said:

Thanks for good news! Your site is very useful for me. I bookmarked your site!

kick it on DotNetKicks.com kick it on GameDevKicks.com
# september 26, 2010 2:34

loan canada bad credit said:

Well, the post is actually the sweetest on this deserving topic. I agree with your conclusions and will eagerly look forward to your incoming updates. Just saying thanks will not just be adequate, for the wonderful clarity in your writing. I will at once grab your rss feed to stay informed of any updates. Good work and much success in your business endeavors!

kick it on DotNetKicks.com kick it on GameDevKicks.com
# september 27, 2010 1:09

loan in canada said:

Usually I do not write on blogs, but I would like to say that this article really convinced me to do so! Congratulations, rather nice publish.

kick it on DotNetKicks.com kick it on GameDevKicks.com
# september 28, 2010 1:46

payday loan ontario said:

Finally, an issue that I am passionate about. I have looked for information of this caliber for the last several hours. Your site is greatly appreciated.

kick it on DotNetKicks.com kick it on GameDevKicks.com
# september 28, 2010 3:47

loans for bad credit said:

Finally, an issue that I'm passionate about. I have looked for information of this caliber for the last several hours. Your site is greatly appreciated.

kick it on DotNetKicks.com kick it on GameDevKicks.com
# september 29, 2010 2:49

keselin said:

AAlthough the people to different degrees, but <a href="uggaustralianew.com">boots</a><a href="uggaustralianew.com">ugg</a><a href="uggaustralianew.com">uggs</a><a href="uggaustralianew.com">uggs boots</a><a href="uggaustralianew.com">ugg footwear</a><a href="uggaustralianew.com/ugg-classic-tall-5815-c-6.html">boots and women</a><a href="uggaustralianew.com/ugg-australia-classic-short-5825-boots-c-8.html">womens boots</a><a href="uggaustralianew.com/ugg-jimmy-choo-women-c-72.html">UGG & JIMMY CHOO</a><a href="uggaustralianew.com/ugg-jimmy-choo-boots-c-72.html">women with boots</a><a href="uggaustralianew.com/ugg-bailey-button-triplet-1873-c-51.html">high boot</a>,<a href="uggaustralianew.com/ugg-jimmy-choo-boots-c-72.html">boots on sale</a><a href="uggaustralianew.com/ugg-classic-cardy-5819-black-p-35.html?cPath=7">black boots</a><a href="uggaustralianew.com/ugg-australia-2010-new-arrivals-c-17.html">boots for sale</a> in global economic recession create performance is really amazing.

kick it on DotNetKicks.com kick it on GameDevKicks.com
# oktober 20, 2010 8:04
Leave a Comment

(required) 

(required) 

(optional)

(required) 

Design downloaded from Free Templates - your source for free web templates