DotNetSqlGenerator.Library.SqlGenerator.cs

Base SqlGenerator to be used by all generators

PostgreSqlGenerator

SqlGenerator()

Enums

public enum DbProvider {PostgreSQL};
public enum SqlStatementType { Insert, Delete, Update, Select };

Properties

protected IDbConnection Connection;
protected string ConnectionString;
public DbProvider DatabaseProvider;
public GenerateSql Generate;

Methods

int RunNonQuery
  • Operates just like a regular ExecuteNonquery
public int RunNonQuery(IDbCommand command, IDbConnection connection)

IDataReader RunReader
  • Operates just like a regular ExecuteReader
public IDataReader RunReader(IDbCommand command, IDbConnection connection)

object RunScalar
  • Operates just like a regular ExecuteScalar
public object RunScalar(IDbCommand command, IDbConnection connection)

Last edited Dec 2, 2010 at 10:02 PM by naspinski, version 12

Comments

No comments yet.