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:
[XmlIgnore]
public override string RESOURCELOCATION { get { return @"Company\"; } }
[XmlIgnore]
public override string RESOURCEKEY { get { return @"Company"; } }
[XmlIgnore]
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 member doesn't quite have enough reputation to be able to display their biography and homepage.