C# Class SmartConfig.DataStores.SQLite.CommandFactory

Mostrar archivo Open project: he-dev/SmartConfig

Public Methods

Method Description
CommandFactory ( TableConfiguration tableConfiguration ) : System
CreateDeleteCommand ( SQLiteConnection connection, Setting setting ) : SQLiteCommand
CreateInsertCommand ( SQLiteConnection connection, Setting setting ) : SQLiteCommand
CreateSelectCommand ( SQLiteConnection connection, Setting setting ) : SQLiteCommand

Private Methods

Method Description
AddParameter ( SQLiteCommand command, string name, object value = null ) : void
AddParameters ( SQLiteCommand command, object>.IEnumerable parameters ) : void

Method Details

CommandFactory() public method

public CommandFactory ( TableConfiguration tableConfiguration ) : System
tableConfiguration TableConfiguration
return System

CreateDeleteCommand() public method

public CreateDeleteCommand ( SQLiteConnection connection, Setting setting ) : SQLiteCommand
connection System.Data.SQLite.SQLiteConnection
setting SmartConfig.Data.Setting
return System.Data.SQLite.SQLiteCommand

CreateInsertCommand() public method

public CreateInsertCommand ( SQLiteConnection connection, Setting setting ) : SQLiteCommand
connection System.Data.SQLite.SQLiteConnection
setting SmartConfig.Data.Setting
return System.Data.SQLite.SQLiteCommand

CreateSelectCommand() public method

public CreateSelectCommand ( SQLiteConnection connection, Setting setting ) : SQLiteCommand
connection System.Data.SQLite.SQLiteConnection
setting SmartConfig.Data.Setting
return System.Data.SQLite.SQLiteCommand