public IList <GetServerInformationResult> GetServerInformation(GetServerInformationParameters parameters) { using (TransactionScope scope = new TransactionScope()) { IList <GetServerInformationResult> result = null; using (IDbConnection connection = new DbConnection(ConnectionString)) { connection.Open(); using (IDbCommand command = connection.CreateCommand()) { command.CommandText = StatementCache.Instance.GetCachedStatement("Imi.SupplyChain.Transportation.Tracing.DataAccess.Queries.GetServerInformation.sql"); ((OracleCommand)command).BindByName = true; foreach (IDbDataParameter parameter in GetServerInformationTranslator.TranslateParameters(parameters)) { command.Parameters.Add(parameter); } LogDbCommand(command); command.Prepare(); using (IDataReader reader = command.ExecuteReader()) { result = GetServerInformationTranslator.TranslateResultSet(reader); } } } scope.Complete(); return(result); } }
public static IList <IDbDataParameter> TranslateParameters(GetServerInformationParameters parameters) { return(new List <IDbDataParameter>()); }