convert a sql statement to class?

Posted by walter on Stack Overflow See other posts from Stack Overflow or by walter
Published on 2010-04-23T17:17:22Z Indexed on 2010/04/23 17:23 UTC
Read the original article Hit count: 245

Is there a tool or code to convert a sql statement to class?

Something like:

Dim sqlText = "SELECT CustomerID, Name, Address, City FROM dbo.Customer WHERE CustomerID = 1"
Dim obj As New  ***SqlStatementTool***(sqlText)
obj.GetTables() 'Will Return Tables in sqlText
obj.GetWheres() 'Will Return conditions in sqltext
obj.GetParameters() 'will return parameters in sqltext

© Stack Overflow or respective owner

Related posts about sql

Related posts about convert