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
Leave a Comment

(required) 

(required) 

(optional)

(required) 

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