/////////////////////////////////////////////////////////////// // This is generated code. ////////////////////////////////////////////////////////////// // Code is generated using LLBLGen Pro version: 2.0.0.0 // Code is generated on: Saturday, February 24, 2007 10:00:22 PM // Code is generated using templates: SD.TemplateBindings.SharedTemplates.NET20 // Templates vendor: Solutions Design. // Templates version: ////////////////////////////////////////////////////////////// using System; using System.Data; using DataFeedFrameworkDAL.HelperClasses; using SD.LLBLGen.Pro.ORMSupportClasses; namespace DataFeedFrameworkDAL.HelperClasses { /// /// Specific implementation of the Transaction class. The constructor will take care of the creation of the physical transaction and the /// opening of the connection. The transaction object is ready to use as soon as the constructor succeeds. /// public partial class Transaction : TransactionBase { /// /// CTor. Will read the connection string from an external source. Opens connection, class /// /// IsolationLevel to use in the transaction /// The name of the transaction to use. public Transaction(IsolationLevel transactionIsolationLevel, string name):base(transactionIsolationLevel, name) { // empty } /// /// CTor. /// /// IsolationLevel to use in the transaction /// The name of the transaction to use. /// Connection string to use in this transaction public Transaction(IsolationLevel transactionIsolationLevel, string name, string connectionString):base(transactionIsolationLevel, name, connectionString) { // empty } /// /// Creates a new IDbConnection instance which will be used by all elements using this ITransaction instance. /// Reads connectionstring from .config file. /// /// new IDbConnection instance protected override System.Data.IDbConnection CreateConnection() { return DbUtils.CreateConnection(); } /// /// Creates a new IDbConnection instance which will be used by all elements using this ITransaction instance /// /// Connection string to use /// new IDbConnection instance protected override System.Data.IDbConnection CreateConnection(string connectionString) { return DbUtils.CreateConnection(connectionString); } /// /// Creates a new physical transaction object over the created connection. The connection is assumed to be open. /// /// a physical transaction object, like an instance of SqlTransaction. protected override System.Data.IDbTransaction CreatePhysicalTransaction() { return DbUtils.CreateTransaction(base.ConnectionToUse, base.TransactionIsolationLevel, this.Name); } #region Included Code #endregion } }