public string ExecuteScalarQuery(string spName, ConnectionType connectionType, DynamicParameters param = null) { IRepository <DapperEntity> repository = new Repository <DapperEntity>( new DapperEntity(DBSettings.GetDBConnectionString(connectionType)), connectionType); return(repository.ExecuteScalarQuery(spName, param, null, null)); }
public List <int> ExecuteAll(string spName, ConnectionType connectionType, List <DynamicParameters> paramList) { IRepository <DapperEntity> repository = new Repository <DapperEntity>( new DapperEntity(DBSettings.GetDBConnectionString(connectionType)), connectionType); return(repository.ExecuteAll(spName, paramList)); }
public IEnumerable <object> Execute(string spName, ConnectionType connectionType, DynamicParameters param = null) { IRepository <DapperEntity> repository = new Repository <DapperEntity>( new DapperEntity(DBSettings.GetDBConnectionString(connectionType)), connectionType); return(repository.Execute(spName, param).ToList()); }
public IEnumerable <object> QuerymultipleRecords(List <ModelBase> modelObject, string spName, ConnectionType connectionType, DynamicParameters param = null) { IRepository <DapperEntity> repository = new Repository <DapperEntity>( new DapperEntity(DBSettings.GetDBConnectionString(connectionType)), connectionType); return(repository.QuerymultipleRecords(modelObject, spName, param)); }