C# Class SqlToJson.Operator

显示文件 Open project: EdiWang/Sql2Json Class Usage Examples

Public Methods

Method Description
GetDatabaseList ( ) : Response>
Operator ( string server, string username, string password, string initDb = null, bool useWindowsAuth = false ) : System
SqlToJson ( string sql ) : Response
TestConnection ( string server, string username, string password, string initDb, bool useWindowsAuth = false ) : Task

Private Methods

Method Description
BuildConnectionString ( string server, string username, string password, string initDb = null, bool useWindowsAuth = false ) : string
DataReaderToJson ( IDataReader reader ) : string
GetCommand ( string sql ) : DbCommand
GetReader ( string sql ) : IDataReader

Method Details

GetDatabaseList() public method

public GetDatabaseList ( ) : Response>
return Response>

Operator() public method

public Operator ( string server, string username, string password, string initDb = null, bool useWindowsAuth = false ) : System
server string
username string
password string
initDb string
useWindowsAuth bool
return System

SqlToJson() public method

public SqlToJson ( string sql ) : Response
sql string
return Response

TestConnection() public static method

public static TestConnection ( string server, string username, string password, string initDb, bool useWindowsAuth = false ) : Task
server string
username string
password string
initDb string
useWindowsAuth bool
return Task