I've been asked by a few people the easiest way to store your data inside Graffiti. Most people start the question with "How do I add tables to the database ....". You could do that, but it would be complicated and annoying to deploy to other users. Simply use the ObjectManager and all your code will move to any Graffiti installation with ease.
Here it is, in less than 2 minutes....
add a reference to Graffiti.Core, make an object... mark it serializable
[Serializable]
public class MyObject
{
private string _name;
private string _description;
public string Name
{
get { return _name; }
set { _name = value; }
}
public string Description
{
get { return _description; }
set { _description = value; }
}
}
instantiate and call Save..
MyObject obj = new MyObject();
ObjectManager.Save(obj, "MyObjectSettings");
retrieve it later..
ObjectManager.Get<MyObject>("MyObjectSettings");
That's it!
Jayme
ricky
on 5.07.2009 at 1:51 AM
thank you, very usefull script!
Sulumits Retsambew
on 8.08.2009 at 5:45 AM
Very useful code. Thanks.
Italian Translation
on 8.08.2009 at 9:44 AM
Thanks mate,I was looking for that info nearly 2 days!There is not match support for Graffiti.
rusli zainal sang visioner
on 8.25.2009 at 1:35 AM
great site
Fisho
on 8.25.2009 at 8:10 PM
Is that all? It's too easy to be true, but it absolutely works. Nice and thanks.
stop dreaming start action
on 9.03.2009 at 10:20 AM
thank you for nice tutorial.
RUSLI ZAINAL SANG VISIONER
on 9.03.2009 at 10:21 AM
that great tutorial
mengembalikan jati diri bangsa
on 9.23.2009 at 9:13 PM
great share
mengembalikan jati diri bangsa
on 9.23.2009 at 9:13 PM
great one
kenali dan kunjungi objek wisata di pandeglang
on 9.23.2009 at 9:15 PM
hemmm very nice
English to Italian translation by Lingua21
on 9.30.2009 at 5:27 AM
Great piece of code. Many thanks.
kenali dan kunjungi objek wisata di pandeglang
on 10.07.2009 at 8:58 PM
very great info
Colon Cleanse
on 10.08.2009 at 6:54 AM
I tried every normal windows method and explorer, that I could think of as well as several supposedly great utility programs that I was told to try.
games online
on 10.09.2009 at 1:54 AM
Good post, please keep it up.
river belle casino
on 10.09.2009 at 12:32 PM
the easiest way to store your data inside Graffiti. Most people start the question with "How do I add tables to the database .........
games
on 10.12.2009 at 5:18 AM
Simply use the ObjectManager and all your code will move to any Graffiti installation with ease
Omar
on 2.05.2010 at 9:14 AM
Well, thats one way to look at it I guess.
promozioni sul gioco al casinò
on 2.19.2010 at 1:22 AM
Well I’ve had my itouch since October. I’ve noticed that the battery goes by supper quick when I go on safari and watch movies. Other than that my batter can last me all day… even though its set on the brightest it can get. Just limit your usage of safari or videos if you want your batter to last a while.
Online Casino
on 2.22.2010 at 8:59 AM
Wonderful Article! I have bookmarked this page and I love to share this with my friends and circle of influence.
Associate Degree Clinical Psychology
on 2.25.2010 at 5:49 AM
I especially like the pick, "Lover, You Should've Come Over" from Grace that is reportedly integral to the production - which merges the 1990's Buckley songs with original 1590's dialogue taken from Shakespeare. Also known to be included is the more raucous, "Eternal Life," also off Buckley's sole studio release. There is no confirmation about any material from posthumous releases.
Bachelor Degree Clinical Psychology
on 2.25.2010 at 5:49 AM
I'm always wary of Shakespeare when modernized, not a fan of "Romeo + Juliet" or the like. The "+" sign was so clever, so modern. But this pairing has merit and could be a match made in heaven, if heaven were brimming with grievous sorrow.
Doctorate Clinical Psychology
on 2.25.2010 at 5:50 AM
I especially like the pick, "Lover, You Should've Come Over" from Grace that is reportedly integral to the production - which merges the 1990's Buckley songs with original 1590's dialogue taken from Shakespeare. Also known to be included is the more raucous, "Eternal Life," also off Buckley's sole studio release. There is no confirmation about any material from posthumous releases.
PhD Clinical Psychology
on 2.25.2010 at 5:51 AM
All cell phone companies are garbage. All concepts of customer support are lost on them.
Associate Degree Counseling Psychology
on 2.25.2010 at 5:51 AM
[The most infamous image of Jeff Buckley, from the cover of Grace. Photo by Merri Cyr]