///////////////////////////////////////////////////////////////
// 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.SqlServerSpecific.NET20
// Templates vendor: Solutions Design.
// Templates version:
//////////////////////////////////////////////////////////////
using System;
using System.Collections;
using System.Data;
using SD.LLBLGen.Pro.ORMSupportClasses;
namespace DataFeedFrameworkDAL.HelperClasses
{
///
/// Singleton implementation of the PersistenceInfoProvider. This class is the singleton wrapper through which the actual instance is retrieved.
///
/// It uses a single instance of an internal class. The access isn't marked with locks as the PersistenceInfoProviderBase class is threadsafe.
internal sealed class PersistenceInfoProviderSingleton
{
#region Class Member Declarations
private static readonly IPersistenceInfoProvider _providerInstance = new PersistenceInfoProviderCore();
#endregion
/// private ctor to prevent instances of this class.
private PersistenceInfoProviderSingleton()
{
}
/// Dummy static constructor to make sure threadsafe initialization is performed.
static PersistenceInfoProviderSingleton()
{
}
/// Gets the singleton instance of the PersistenceInfoProviderCore
/// Instance of the PersistenceInfoProvider.
public static IPersistenceInfoProvider GetInstance()
{
return _providerInstance;
}
}
/// Actual implementation of the PersistenceInfoProvider. Used by singleton wrapper.
internal class PersistenceInfoProviderCore : PersistenceInfoProviderBase
{
/// Initializes a new instance of the class.
internal PersistenceInfoProviderCore()
{
Init();
}
/// Method which initializes the internal datastores with the structure of hierarchical types.
private void Init()
{
base.InitClass((3 + 0));
InitFeedCreationEntityMappings();
InitSnippetEntityMappings();
InitSnippetGroupEntityMappings();
}
/// Inits FeedCreationEntity's mappings
private void InitFeedCreationEntityMappings()
{
base.AddElementMapping( "FeedCreationEntity", "DataFeedFramework", @"dbo", "FeedCreation", 9 );
base.AddElementFieldMapping( "FeedCreationEntity", "FeedCreationId", "FeedCreationId", false, (int)SqlDbType.Int, 0, 0, 10, true, "SCOPE_IDENTITY()", null, typeof(System.Int32), 0 );
base.AddElementFieldMapping( "FeedCreationEntity", "FeedCreationTitle", "FeedCreationTitle", false, (int)SqlDbType.VarChar, 200, 0, 0, false, "", null, typeof(System.String), 1 );
base.AddElementFieldMapping( "FeedCreationEntity", "FeedCreationDescription", "FeedCreationDescription", false, (int)SqlDbType.VarChar, 2000, 0, 0, false, "", null, typeof(System.String), 2 );
base.AddElementFieldMapping( "FeedCreationEntity", "FeedCreationStatement", "FeedCreationStatement", false, (int)SqlDbType.VarChar, 4000, 0, 0, false, "", null, typeof(System.String), 3 );
base.AddElementFieldMapping( "FeedCreationEntity", "FeedCreationDatabase", "FeedCreationDatabase", true, (int)SqlDbType.VarChar, 200, 0, 0, false, "", null, typeof(System.String), 4 );
base.AddElementFieldMapping( "FeedCreationEntity", "FeedGuid", "FeedGuid", false, (int)SqlDbType.Char, 36, 0, 0, false, "", null, typeof(System.String), 5 );
base.AddElementFieldMapping( "FeedCreationEntity", "FeedAccessViaGuidOnly", "FeedAccessViaGuidOnly", false, (int)SqlDbType.Bit, 0, 0, 0, false, "", null, typeof(System.Boolean), 6 );
base.AddElementFieldMapping( "FeedCreationEntity", "FeedCreationModifiedDate", "FeedCreationModifiedDate", false, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 7 );
base.AddElementFieldMapping( "FeedCreationEntity", "FeedCreationCreationDate", "FeedCreationCreationDate", false, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 8 );
}
/// Inits SnippetEntity's mappings
private void InitSnippetEntityMappings()
{
base.AddElementMapping( "SnippetEntity", "DataFeedFramework", @"dbo", "Snippet", 10 );
base.AddElementFieldMapping( "SnippetEntity", "SnippetId", "SnippetId", false, (int)SqlDbType.Int, 0, 0, 10, true, "SCOPE_IDENTITY()", null, typeof(System.Int32), 0 );
base.AddElementFieldMapping( "SnippetEntity", "SnippetGroupId", "SnippetGroupId", true, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 1 );
base.AddElementFieldMapping( "SnippetEntity", "SnippetTitle", "SnippetTitle", false, (int)SqlDbType.VarChar, 200, 0, 0, false, "", null, typeof(System.String), 2 );
base.AddElementFieldMapping( "SnippetEntity", "SnippetDescription", "SnippetDescription", true, (int)SqlDbType.Text, 2147483647, 0, 0, false, "", null, typeof(System.String), 3 );
base.AddElementFieldMapping( "SnippetEntity", "SnippetExtra", "SnippetExtra", true, (int)SqlDbType.VarChar, 200, 0, 0, false, "", null, typeof(System.String), 4 );
base.AddElementFieldMapping( "SnippetEntity", "SnippetOrder", "SnippetOrder", false, (int)SqlDbType.Int, 0, 0, 10, false, "", null, typeof(System.Int32), 5 );
base.AddElementFieldMapping( "SnippetEntity", "SnippetValidBegin", "SnippetValidBegin", true, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 6 );
base.AddElementFieldMapping( "SnippetEntity", "SnippetValidEnd", "SnippetValidEnd", true, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 7 );
base.AddElementFieldMapping( "SnippetEntity", "SnippetModifiedDate", "SnippetModifiedDate", false, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 8 );
base.AddElementFieldMapping( "SnippetEntity", "SnippetCreationDate", "SnippetCreationDate", false, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 9 );
}
/// Inits SnippetGroupEntity's mappings
private void InitSnippetGroupEntityMappings()
{
base.AddElementMapping( "SnippetGroupEntity", "DataFeedFramework", @"dbo", "SnippetGroup", 4 );
base.AddElementFieldMapping( "SnippetGroupEntity", "SnippetGroupId", "SnippetGroupId", false, (int)SqlDbType.Int, 0, 0, 10, true, "SCOPE_IDENTITY()", null, typeof(System.Int32), 0 );
base.AddElementFieldMapping( "SnippetGroupEntity", "SnippetGroupTitle", "SnippetGroupTitle", false, (int)SqlDbType.VarChar, 400, 0, 0, false, "", null, typeof(System.String), 1 );
base.AddElementFieldMapping( "SnippetGroupEntity", "SnippetGroupModifiedDate", "SnippetGroupModifiedDate", false, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 2 );
base.AddElementFieldMapping( "SnippetGroupEntity", "SnippetGroupCreationDate", "SnippetGroupCreationDate", false, (int)SqlDbType.DateTime, 0, 0, 0, false, "", null, typeof(System.DateTime), 3 );
}
}
}