Upload to server
uploading
This commit is contained in:
122
patientman/Datalib/DatabaseSpecific/DataAccessAdapter.cs
Normal file
122
patientman/Datalib/DatabaseSpecific/DataAccessAdapter.cs
Normal file
@@ -0,0 +1,122 @@
|
||||
///////////////////////////////////////////////////////////////
|
||||
// This is generated code.
|
||||
//////////////////////////////////////////////////////////////
|
||||
// Code is generated using LLBLGen Pro version: 4.2
|
||||
// Code is generated on:
|
||||
// Code is generated using templates: SD.TemplateBindings.SharedTemplates
|
||||
// Templates vendor: Solutions Design.
|
||||
// Templates version:
|
||||
//////////////////////////////////////////////////////////////
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Data;
|
||||
using System.Data.Common;
|
||||
using System.Configuration;
|
||||
using SD.LLBLGen.Pro.ORMSupportClasses;
|
||||
using SD.LLBLGen.Pro.DQE.Access;
|
||||
|
||||
|
||||
namespace Datalib.DatabaseSpecific
|
||||
{
|
||||
|
||||
// __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces
|
||||
// __LLBLGENPRO_USER_CODE_REGION_END
|
||||
|
||||
/// <summary>Data access adapter class, which controls the complete database interaction with the database for all objects.</summary>
|
||||
/// <remarks>Use a DataAccessAdapter object solely per thread, and per connection. A DataAccessAdapter object contains 1 active connection
|
||||
/// and no thread-access scheduling code. This means that you need to create a new DataAccessAdapter object if you want to utilize
|
||||
/// in another thread a new connection and a new transaction or want to open a new connection.</remarks>
|
||||
public partial class DataAccessAdapter : DataAccessAdapterBase
|
||||
{
|
||||
#region Public static members
|
||||
/// <summary>The name of the key in the *.config file of the executing application which contains the connection string.</summary>
|
||||
/// <remarks>Default: the value set in the LLBLGen Pro project properties</remarks>
|
||||
public static string ConnectionStringKeyName="ConnectionString.MS Access (OleDb)";
|
||||
#endregion
|
||||
|
||||
/// <summary>CTor</summary>
|
||||
public DataAccessAdapter() : this(ReadConnectionStringFromConfig(), false, null, null)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>CTor</summary>
|
||||
/// <param name="keepConnectionOpen">when true, the DataAccessAdapter will not close an opened connection. Use this for multi action usage.</param>
|
||||
public DataAccessAdapter(bool keepConnectionOpen) : this(ReadConnectionStringFromConfig(), keepConnectionOpen, null, null)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>CTor</summary>
|
||||
/// <param name="connectionString">The connection string to use when connecting to the database.</param>
|
||||
public DataAccessAdapter(string connectionString) : this(connectionString, false, null, null)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>CTor</summary>
|
||||
/// <param name="connectionString">The connection string to use when connecting to the database.</param>
|
||||
/// <param name="keepConnectionOpen">when true, the DataAccessAdapter will not close an opened connection. Use this for multi action usage.</param>
|
||||
public DataAccessAdapter(string connectionString, bool keepConnectionOpen) : this(connectionString, keepConnectionOpen, null, null)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>CTor.</summary>
|
||||
/// <param name="connectionString">The connection string to use when connecting to the database.</param>
|
||||
/// <param name="keepConnectionOpen">when true, the DataAccessAdapter will not close an opened connection. Use this for multi action usage.</param>
|
||||
/// <param name="catalogNameUsageSetting"> Configures this data access adapter object how to threat catalog names in persistence information.</param>
|
||||
/// <param name="catalogNameToUse"> The name to use if catalogNameUsageSetting is set to ForceName. Ignored otherwise.</param>
|
||||
/// <remarks>For backwards compatibility.</remarks>
|
||||
public DataAccessAdapter(string connectionString, bool keepConnectionOpen, CatalogNameUsage catalogNameUsageSetting, string catalogNameToUse)
|
||||
: base(PersistenceInfoProviderSingleton.GetInstance())
|
||||
{
|
||||
InitClassPhase2(connectionString, keepConnectionOpen, catalogNameUsageSetting, SchemaNameUsage.Default, catalogNameToUse, string.Empty, null, null);
|
||||
}
|
||||
|
||||
/// <summary>CTor</summary>
|
||||
/// <param name="connectionString">The connection string to use when connecting to the database.</param>
|
||||
/// <param name="keepConnectionOpen">when true, the DataAccessAdapter will not close an opened connection. Use this for multi action usage.</param>
|
||||
/// <param name="schemaNameUsageSetting">Configures this data access adapter object how to threat schema names in persistence information.</param>
|
||||
/// <param name="schemaNameToUse">Oracle specific. The name to use if schemaNameUsageSetting is set to ForceName. Ignored otherwise.</param>
|
||||
public DataAccessAdapter(string connectionString, bool keepConnectionOpen, SchemaNameUsage schemaNameUsageSetting, string schemaNameToUse)
|
||||
: base(PersistenceInfoProviderSingleton.GetInstance())
|
||||
{
|
||||
InitClassPhase2(connectionString, keepConnectionOpen, CatalogNameUsage.Default, schemaNameUsageSetting, string.Empty, schemaNameToUse, null, null);
|
||||
}
|
||||
|
||||
/// <summary>CTor.</summary>
|
||||
/// <param name="connectionString">The connection string to use when connecting to the database.</param>
|
||||
/// <param name="keepConnectionOpen">when true, the DataAccessAdapter will not close an opened connection. Use this for multi action usage.</param>
|
||||
/// <param name="catalogNameOverwrites"> The from-to name value pairs and setting for the overwriting of catalog names. Can be null.</param>
|
||||
/// <param name="schemaNameOverwrites"> The from-to name value pairs and setting for the overwriting of schema names. Can be null.</param>
|
||||
public DataAccessAdapter(string connectionString, bool keepConnectionOpen, CatalogNameOverwriteHashtable catalogNameOverwrites, SchemaNameOverwriteHashtable schemaNameOverwrites)
|
||||
: base(PersistenceInfoProviderSingleton.GetInstance())
|
||||
{
|
||||
InitClassPhase2(connectionString, keepConnectionOpen, CatalogNameUsage.Default, SchemaNameUsage.Default, string.Empty, string.Empty, catalogNameOverwrites, schemaNameOverwrites);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>Creates a new Dynamic Query engine object and passes in the defined catalog/schema overwrite hashtables.</summary>
|
||||
protected override DynamicQueryEngineBase CreateDynamicQueryEngine()
|
||||
{
|
||||
return this.PostProcessNewDynamicQueryEngine(new DynamicQueryEngine());
|
||||
}
|
||||
|
||||
/// <summary>Reads the value of the setting with the key ConnectionStringKeyName from the *.config file and stores that value as the active connection string to use for this object.</summary>
|
||||
/// <returns>connection string read</returns>
|
||||
private static string ReadConnectionStringFromConfig()
|
||||
{
|
||||
return ConfigFileHelper.ReadConnectionStringFromConfig(ConnectionStringKeyName);
|
||||
}
|
||||
|
||||
|
||||
|
||||
#region Custom DataAccessAdapter code.
|
||||
|
||||
// __LLBLGENPRO_USER_CODE_REGION_START CustomDataAccessAdapterCode
|
||||
// __LLBLGENPRO_USER_CODE_REGION_END
|
||||
|
||||
#endregion
|
||||
|
||||
#region Included Code
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user