-
Notifications
You must be signed in to change notification settings - Fork 1
Quick Start
Ophir Oren edited this page Feb 21, 2015
·
2 revisions
The main purpose of Poco.Sql is to help you generate your SQL statements easily and in an automated fashion and match your app business model. Poco.Sql has an extention method to help you turn your object to SQL.
To start generating SQL statements from plain objects, first include the Poco.Sql.Extensions
namespace:
using Poco.Sql.Extensions;
After including the Extensions namespace you can access the PocoSql()
method from any object, which will return an instance of the QueryBuilder
class:
myObject.PocoSql()
The following are examples of generating all CRUD statements:
myObject.PocoSql().Select().ToString();
myObject.PocoSql().Insert().ToString();
myObject.PocoSql().Update().ToString();
myObject.PocoSql().Delete().ToString();
For more information read about: