Click here to Skip to main content
13,193,829 members (38,679 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as


1 bookmarked
Posted 12 Sep 2011

QuicksandCRUD – Quick Persistence for Prototype Applications

, 15 Sep 2011
Rate this:
Please Sign up or sign in to vote.
For when you want CRUD quick and don't care how you get it.
QuicksandCRUD is a C# library that allows for quick and dirty CRUD operations and in memory repositories to be added to most C# applications. Save (create or update), get by id, get all and delete are the only supported operations. Reliant on XML Serialization and XML files, if your object will not serialize, QuicksandCRUD will not work for your application. Designed for quickly developing prototypes, QuicksandCRUD is not recommended for production applications.

How it works

Each class that derives from ResourceBase must include the following properties:
//Folder location for xml file store
public override string RESOURCELOCATION { get { return @"Company\"; } }
//Used to determine what is retrived on a get all
public override string RESOURCEKEY { get { return @"Company"; } }
//Used for serialization
public override Type RESOURCETYPE { get { return typeof(Company); } }

The appconfig must contain the following key for the root location of the xml file store
<add key="RootResourceFile" value="..\..\XML\">  

While not recommended for production applications, QuicksandCRUD has allowed me to prototype applications quickly without having to worry about a persistence layer. I have found it to be a useful tool in my developer toolkit.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Software Developer NeoModulus Consulting, LLC
United States United States
This member doesn't quite have enough reputation to be able to display their biography and homepage.

You may also be interested in...


Comments and Discussions

-- There are no messages in this forum --
Permalink | Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.171018.2 | Last Updated 15 Sep 2011
Article Copyright 2011 by NeoModulus
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid