Building a SQL Query Builder Interface in C# -
Building a SQL Query Builder Interface in C# -
i working on building sql interface deed interface able build sql queries many databases, including sqlite , mysql.
as query string syntax differs between these 2 database types, think interface best workaround here.
i want create sure each method (insert, createtable, readcolumn) has necessary arguments build working query works, , gives maximum functionality.
currently have...
public interface idatabase { bool createtable(sqltable table); bool altertable(sqltable from, sqltable to); bool updatevalue(string table, list<sqlvalue> values, list<sqlvalue> wheres); bool insertvalues(string table, list<sqlvalue> values); bool readcolumn(string table, list<sqlvalue> wheres); bool deleterow(string table, list<sqlvalue> wheres); }
can suggest additions/edits should create interface create more functional?
thanks twitchy
what order
, group by
, having
, top
(sql-server), limit
(mysql) etc.? don't think can represented interface, unless restrict mutual subset of sql.
c# sql interface
Comments
Post a Comment