Upload to server

uploading
This commit is contained in:
2025-08-02 05:20:17 +07:00
commit a5eccbd452
984 changed files with 3031800 additions and 0 deletions

View File

@@ -0,0 +1,59 @@
using System.Reflection;
using System.Runtime.CompilerServices;
//
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
//
[assembly: AssemblyTitle("")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("")]
[assembly: AssemblyCopyright("")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: System.CLSCompliant(true)]
//
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("1.0.*")]
//
// In order to sign your assembly you must specify a key to use. Refer to the
// Microsoft .NET Framework documentation for more information on assembly signing.
//
// Use the attributes below to control which key is used for signing.
//
// Notes:
// (*) If no key is specified, the assembly is not signed.
// (*) KeyName refers to a key that has been installed in the Crypto Service
// Provider (CSP) on your machine. KeyFile refers to a file which contains
// a key.
// (*) If the KeyFile and the KeyName values are both specified, the
// following processing occurs:
// (1) If the KeyName can be found in the CSP, that key is used.
// (2) If the KeyName does not exist and the KeyFile does exist, the key
// in the KeyFile is installed into the CSP and used.
// (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility.
// When specifying the KeyFile, the location of the KeyFile should be
// relative to the project output directory which is
// %Project Directory%\obj\<configuration>. For example, if your KeyFile is
// located in the project directory, you would specify the AssemblyKeyFile
// attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")]
// (*) Delay Signing is an advanced option - see the Microsoft .NET Framework
// documentation for more information on this.
//
[assembly: AssemblyDelaySign(false)]
[assembly: AssemblyKeyFile("")]
[assembly: AssemblyKeyName("")]

View File

@@ -0,0 +1,42 @@
//////////////////////////////////////////////////////////////
// <auto-generated>This code was generated by LLBLGen Pro 5.7.</auto-generated>
//////////////////////////////////////////////////////////////
// Code is generated on:
// Code is generated using templates: SD.TemplateBindings.SharedTemplates
// Templates vendor: Solutions Design.
//////////////////////////////////////////////////////////////
using System;
namespace Datalib
{
/// <summary>Enum definition for all the entity types defined in this namespace. Used by the entityfields factory.</summary>
public enum EntityType
{
///<summary>TblField</summary>
TblFieldEntity,
///<summary>TblQuestion</summary>
TblQuestionEntity,
///<summary>TblQuiz</summary>
TblQuizEntity,
///<summary>TblQuizQuestion</summary>
TblQuizQuestionEntity,
///<summary>TblQuizTemplate</summary>
TblQuizTemplateEntity,
///<summary>TblQuizTemplateDetail</summary>
TblQuizTemplateDetailEntity,
///<summary>TblSubject</summary>
TblSubjectEntity,
///<summary>TblTrainingType</summary>
TblTrainingTypeEntity
}
// __LLBLGENPRO_USER_CODE_REGION_START CustomUserConstants
// __LLBLGENPRO_USER_CODE_REGION_END
}

View File

@@ -0,0 +1,116 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{EBB932A0-0C25-40E3-8DB3-1DC684C014BA}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Datalib</RootNamespace>
<AssemblyName>Datalib</AssemblyName>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="SD.LLBLGen.Pro.ORMSupportClasses, Version=5.7.0.0, Culture=neutral, PublicKeyToken=ca73b74ba4e3ff27, processorArchitecture=MSIL">
<SpecificVersion>True</SpecificVersion>
<HintPath>C:\Program Files (x86)\Solutions Design\LLBLGen Pro v5.7\Frameworks\LLBLGen Pro\RuntimeLibraries\CompiledRuntimeLibraries\SD.LLBLGen.Pro.ORMSupportClasses.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="HelperClasses\EntityCollection.cs">
<GeneratedBy>LLBLGen Pro</GeneratedBy>
</Compile>
<Compile Include="AssemblyInfo.cs">
<GeneratedBy>LLBLGen Pro</GeneratedBy>
</Compile>
<Compile Include="ConstantsEnums.cs">
<GeneratedBy>LLBLGen Pro</GeneratedBy>
</Compile>
<Compile Include="HelperClasses\ModelInfoProvider.cs">
<GeneratedBy>LLBLGen Pro</GeneratedBy>
</Compile>
<Compile Include="HelperClasses\TypeDefaultValue.cs">
<GeneratedBy>LLBLGen Pro</GeneratedBy>
</Compile>
<Compile Include="HelperClasses\LinqMetaData.cs">
<GeneratedBy>LLBLGen Pro</GeneratedBy>
</Compile>
<Compile Include="FactoryClasses\QueryFactory.cs">
<GeneratedBy>LLBLGen Pro</GeneratedBy>
</Compile>
<Compile Include="HelperClasses\DynamicRelation.cs">
<GeneratedBy>LLBLGen Pro</GeneratedBy>
</Compile>
<Compile Include="EntityClasses\CommonEntityBase.cs">
<GeneratedBy>LLBLGen Pro</GeneratedBy>
</Compile>
<Compile Include="EntityClasses\TblFieldEntity.cs">
<GeneratedBy>LLBLGen Pro</GeneratedBy>
</Compile>
<Compile Include="EntityClasses\TblQuestionEntity.cs">
<GeneratedBy>LLBLGen Pro</GeneratedBy>
</Compile>
<Compile Include="EntityClasses\TblQuizEntity.cs">
<GeneratedBy>LLBLGen Pro</GeneratedBy>
</Compile>
<Compile Include="EntityClasses\TblQuizQuestionEntity.cs">
<GeneratedBy>LLBLGen Pro</GeneratedBy>
</Compile>
<Compile Include="EntityClasses\TblQuizTemplateEntity.cs">
<GeneratedBy>LLBLGen Pro</GeneratedBy>
</Compile>
<Compile Include="EntityClasses\TblQuizTemplateDetailEntity.cs">
<GeneratedBy>LLBLGen Pro</GeneratedBy>
</Compile>
<Compile Include="EntityClasses\TblSubjectEntity.cs">
<GeneratedBy>LLBLGen Pro</GeneratedBy>
</Compile>
<Compile Include="EntityClasses\TblTrainingTypeEntity.cs">
<GeneratedBy>LLBLGen Pro</GeneratedBy>
</Compile>
<Compile Include="FactoryClasses\EntityFactories.cs">
<GeneratedBy>LLBLGen Pro</GeneratedBy>
</Compile>
<Compile Include="FactoryClasses\EntityFieldFactory.cs">
<GeneratedBy>LLBLGen Pro</GeneratedBy>
</Compile>
<Compile Include="FactoryClasses\EntityFieldsFactory.cs">
<GeneratedBy>LLBLGen Pro</GeneratedBy>
</Compile>
<Compile Include="HelperClasses\ResultsetFields.cs">
<GeneratedBy>LLBLGen Pro</GeneratedBy>
</Compile>
<Compile Include="HelperClasses\FieldCreationClasses.cs">
<GeneratedBy>LLBLGen Pro</GeneratedBy>
</Compile>
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSHARP.Targets" />
</Project>

View File

@@ -0,0 +1,101 @@
//////////////////////////////////////////////////////////////
// <auto-generated>This code was generated by LLBLGen Pro 5.7.</auto-generated>
//////////////////////////////////////////////////////////////
// Code is generated on:
// Code is generated using templates: SD.TemplateBindings.SharedTemplates
// Templates vendor: Solutions Design.
//////////////////////////////////////////////////////////////
using System;
using Datalib.HelperClasses;
using Datalib.FactoryClasses;
using SD.LLBLGen.Pro.ORMSupportClasses;
using System.Runtime.Serialization;
namespace Datalib.EntityClasses
{
// __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces
// __LLBLGENPRO_USER_CODE_REGION_END
/// <summary>Common base class which is the base class for all generated entities which aren't a subtype of another entity.</summary>
[Serializable]
public abstract partial class CommonEntityBase : EntityBase2
// __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces
// __LLBLGENPRO_USER_CODE_REGION_END
{
// __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers
// __LLBLGENPRO_USER_CODE_REGION_END
/// <summary>CTor</summary>
protected CommonEntityBase() {}
/// <summary> Protected CTor for deserialization</summary>
/// <param name="info"></param>
/// <param name="context"></param>
protected CommonEntityBase(SerializationInfo info, StreamingContext context) : base(info, context)
{
// __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
// __LLBLGENPRO_USER_CODE_REGION_END
}
/// <summary>Creates the entity collection and stores it in destination if destination is null</summary>
/// <typeparam name="T">type of the element to store in the collection</typeparam>
/// <typeparam name="TFactory">The type of the factory to pass to the entitycollection ctor.</typeparam>
/// <param name="navigatorName">Name of the property this collection is for.</param>
/// <param name="setContainingEntityInfo">if set to <see langword="true"/> the collection is for an 1:n relationship, and the containing entity info has to be set</param>
/// <param name="forMN">if set to <see langword="true"/> the collection is for an m:n relationship, otherwise for an 1:n relationship</param>
/// <param name="destination">The destination member variable.</param>
/// <returns>the collection referred to by destination if destination isn't null, otherwise the newly created collection (which is then stored in destination</returns>
protected EntityCollection<T> GetOrCreateEntityCollection<T, TFactory>(string navigatorName, bool setContainingEntityInfo, bool forMN, ref EntityCollection<T> destination)
where T:EntityBase2, IEntity2
{
if(destination==null)
{
destination = new EntityCollection<T>(EntityFactoryCache2.GetEntityFactory(typeof(TFactory)));
if(forMN)
{
((IEntityCollectionCore)destination).IsForMN = true;
}
else
{
if(setContainingEntityInfo)
{
destination.SetContainingEntityInfo(this, navigatorName);
}
}
destination.ActiveContext = this.ActiveContext;
}
return destination;
}
/// <inheritdoc/>
protected override IInheritanceInfoProvider GetInheritanceInfoProvider() { return ModelInfoProviderSingleton.GetInstance(); }
/// <inheritdoc/>
protected override ITypeDefaultValue CreateTypeDefaultValueProvider() { return new TypeDefaultValue(); }
/// <inheritdoc/>
protected override IEntityCollection2 CreateEntityCollectionForType<T>() { return CommonEntityBase.CreateEntityCollection<T>(); }
/// <summary>Creates the entity collection for the types specified</summary>
/// <typeparam name="T">type of the element to store in the collection</typeparam>
protected static EntityCollection<T> CreateEntityCollection<T>()
where T:EntityBase2, IEntity2
{
return new EntityCollection<T>(EntityFactoryFactory.GetFactory(typeof(T)));
}
/// <inheritdoc/>
protected override Type LLBLGenProEntityTypeEnumType
{
get { return typeof(Datalib.EntityType); }
}
// __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode
// __LLBLGENPRO_USER_CODE_REGION_END
}
}

View File

@@ -0,0 +1,249 @@
//////////////////////////////////////////////////////////////
// <auto-generated>This code was generated by LLBLGen Pro 5.7.</auto-generated>
//////////////////////////////////////////////////////////////
// Code is generated on:
// Code is generated using templates: SD.TemplateBindings.SharedTemplates
// Templates vendor: Solutions Design.
//////////////////////////////////////////////////////////////
using System;
using System.ComponentModel;
using System.Collections.Generic;
using System.Runtime.Serialization;
using System.Xml.Serialization;
using Datalib.HelperClasses;
using Datalib.FactoryClasses;
using Datalib.RelationClasses;
using SD.LLBLGen.Pro.ORMSupportClasses;
namespace Datalib.EntityClasses
{
// __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces
// __LLBLGENPRO_USER_CODE_REGION_END
/// <summary>Entity class which represents the entity 'TblField'.<br/><br/></summary>
[Serializable]
public partial class TblFieldEntity : CommonEntityBase
// __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces
// __LLBLGENPRO_USER_CODE_REGION_END
{
private TblSubjectEntity _tblSubject;
// __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers
// __LLBLGENPRO_USER_CODE_REGION_END
private static TblFieldEntityStaticMetaData _staticMetaData = new TblFieldEntityStaticMetaData();
private static TblFieldRelations _relationsFactory = new TblFieldRelations();
/// <summary>All names of fields mapped onto a relation. Usable for in-memory filtering</summary>
public static partial class MemberNames
{
/// <summary>Member name TblSubject</summary>
public static readonly string TblSubject = "TblSubject";
}
/// <summary>Static meta-data storage for navigator related information</summary>
protected class TblFieldEntityStaticMetaData : EntityStaticMetaDataBase
{
public TblFieldEntityStaticMetaData()
{
SetEntityCoreInfo("TblFieldEntity", InheritanceHierarchyType.None, false, (int)Datalib.EntityType.TblFieldEntity, typeof(TblFieldEntity), typeof(TblFieldEntityFactory), false);
AddNavigatorMetaData<TblFieldEntity, TblSubjectEntity>("TblSubject", "TblFields", (a, b) => a._tblSubject = b, a => a._tblSubject, (a, b) => a.TblSubject = b, Datalib.RelationClasses.StaticTblFieldRelations.TblSubjectEntityUsingSubjectIdStatic, ()=>new TblFieldRelations().TblSubjectEntityUsingSubjectId, null, new int[] { (int)TblFieldFieldIndex.SubjectId }, null, true, (int)Datalib.EntityType.TblSubjectEntity);
}
}
/// <summary>Static ctor</summary>
static TblFieldEntity()
{
}
/// <summary> CTor</summary>
public TblFieldEntity()
{
InitClassEmpty(null, null);
}
/// <summary> CTor</summary>
/// <param name="fields">Fields object to set as the fields for this entity.</param>
public TblFieldEntity(IEntityFields2 fields)
{
InitClassEmpty(null, fields);
}
/// <summary> CTor</summary>
/// <param name="validator">The custom validator object for this TblFieldEntity</param>
public TblFieldEntity(IValidator validator)
{
InitClassEmpty(validator, null);
}
/// <summary> CTor</summary>
/// <param name="uniqueId">PK value for TblField which data should be fetched into this TblField object</param>
public TblFieldEntity(System.String uniqueId) : this(uniqueId, null)
{
}
/// <summary> CTor</summary>
/// <param name="uniqueId">PK value for TblField which data should be fetched into this TblField object</param>
/// <param name="validator">The custom validator object for this TblFieldEntity</param>
public TblFieldEntity(System.String uniqueId, IValidator validator)
{
InitClassEmpty(validator, null);
this.UniqueId = uniqueId;
}
/// <summary>Private CTor for deserialization</summary>
/// <param name="info"></param>
/// <param name="context"></param>
protected TblFieldEntity(SerializationInfo info, StreamingContext context) : base(info, context)
{
// __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
// __LLBLGENPRO_USER_CODE_REGION_END
}
/// <summary>Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'TblSubject' to this entity.</summary>
/// <returns></returns>
public virtual IRelationPredicateBucket GetRelationInfoTblSubject() { return CreateRelationInfoForNavigator("TblSubject"); }
/// <inheritdoc/>
protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; }
/// <summary>Initializes the class members</summary>
private void InitClassMembers()
{
PerformDependencyInjection();
// __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers
// __LLBLGENPRO_USER_CODE_REGION_END
OnInitClassMembersComplete();
}
/// <summary>Initializes the class with empty data, as if it is a new Entity.</summary>
/// <param name="validator">The validator object for this TblFieldEntity</param>
/// <param name="fields">Fields of this entity</param>
private void InitClassEmpty(IValidator validator, IEntityFields2 fields)
{
OnInitializing();
this.Fields = fields ?? CreateFields();
this.Validator = validator;
InitClassMembers();
// __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty
// __LLBLGENPRO_USER_CODE_REGION_END
OnInitialized();
}
/// <summary>The relations object holding all relations of this entity with other entity classes.</summary>
public static TblFieldRelations Relations { get { return _relationsFactory; } }
/// <summary>Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'TblSubject' for this entity.</summary>
/// <returns>Ready to use IPrefetchPathElement2 implementation.</returns>
public static IPrefetchPathElement2 PrefetchPathTblSubject { get { return _staticMetaData.GetPrefetchPathElement("TblSubject", CommonEntityBase.CreateEntityCollection<TblSubjectEntity>()); } }
/// <summary>The Description property of the Entity TblField<br/><br/></summary>
/// <remarks>Mapped on table field: "tblFields"."Description".<br/>Table field type characteristics (type, precision, scale, length): LongVarWChar, 0, 0, 536870911.<br/>Table field behavior characteristics (is nullable, is PK, is identity): true, false, false</remarks>
public virtual System.String Description
{
get { return (System.String)GetValue((int)TblFieldFieldIndex.Description, true); }
set { SetValue((int)TblFieldFieldIndex.Description, value); }
}
/// <summary>The FieldId property of the Entity TblField<br/><br/></summary>
/// <remarks>Mapped on table field: "tblFields"."FieldID".<br/>Table field type characteristics (type, precision, scale, length): VarWChar, 0, 0, 1.<br/>Table field behavior characteristics (is nullable, is PK, is identity): true, false, false</remarks>
public virtual System.String FieldId
{
get { return (System.String)GetValue((int)TblFieldFieldIndex.FieldId, true); }
set { SetValue((int)TblFieldFieldIndex.FieldId, value); }
}
/// <summary>The FieldName property of the Entity TblField<br/><br/></summary>
/// <remarks>Mapped on table field: "tblFields"."FieldName".<br/>Table field type characteristics (type, precision, scale, length): VarWChar, 0, 0, 50.<br/>Table field behavior characteristics (is nullable, is PK, is identity): true, false, false</remarks>
public virtual System.String FieldName
{
get { return (System.String)GetValue((int)TblFieldFieldIndex.FieldName, true); }
set { SetValue((int)TblFieldFieldIndex.FieldName, value); }
}
/// <summary>The Prefix property of the Entity TblField<br/><br/></summary>
/// <remarks>Mapped on table field: "tblFields"."Prefix".<br/>Table field type characteristics (type, precision, scale, length): VarWChar, 0, 0, 255.<br/>Table field behavior characteristics (is nullable, is PK, is identity): true, false, false</remarks>
public virtual System.String Prefix
{
get { return (System.String)GetValue((int)TblFieldFieldIndex.Prefix, true); }
set { SetValue((int)TblFieldFieldIndex.Prefix, value); }
}
/// <summary>The SubjectId property of the Entity TblField<br/><br/></summary>
/// <remarks>Mapped on table field: "tblFields"."SubjectID".<br/>Table field type characteristics (type, precision, scale, length): VarWChar, 0, 0, 2.<br/>Table field behavior characteristics (is nullable, is PK, is identity): true, false, false</remarks>
public virtual System.String SubjectId
{
get { return (System.String)GetValue((int)TblFieldFieldIndex.SubjectId, true); }
set { SetValue((int)TblFieldFieldIndex.SubjectId, value); }
}
/// <summary>The UniqueId property of the Entity TblField<br/><br/></summary>
/// <remarks>Mapped on table field: "tblFields"."UniqueID".<br/>Table field type characteristics (type, precision, scale, length): VarWChar, 0, 0, 32.<br/>Table field behavior characteristics (is nullable, is PK, is identity): false, true, false</remarks>
public virtual System.String UniqueId
{
get { return (System.String)GetValue((int)TblFieldFieldIndex.UniqueId, true); }
set { SetValue((int)TblFieldFieldIndex.UniqueId, value); }
}
/// <summary>Gets / sets related entity of type 'TblSubjectEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..<br/><br/></summary>
[Browsable(false)]
public virtual TblSubjectEntity TblSubject
{
get { return _tblSubject; }
set { SetSingleRelatedEntityNavigator(value, "TblSubject"); }
}
// __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode
// __LLBLGENPRO_USER_CODE_REGION_END
}
}
namespace Datalib
{
public enum TblFieldFieldIndex
{
///<summary>Description. </summary>
Description,
///<summary>FieldId. </summary>
FieldId,
///<summary>FieldName. </summary>
FieldName,
///<summary>Prefix. </summary>
Prefix,
///<summary>SubjectId. </summary>
SubjectId,
///<summary>UniqueId. </summary>
UniqueId,
/// <summary></summary>
AmountOfFields
}
}
namespace Datalib.RelationClasses
{
/// <summary>Implements the relations factory for the entity: TblField. </summary>
public partial class TblFieldRelations: RelationFactory
{
/// <summary>Returns a new IEntityRelation object, between TblFieldEntity and TblSubjectEntity over the m:1 relation they have, using the relation between the fields: TblField.SubjectId - TblSubject.SubjectId</summary>
public virtual IEntityRelation TblSubjectEntityUsingSubjectId
{
get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "TblSubject", false, new[] { TblSubjectFields.SubjectId, TblFieldFields.SubjectId }); }
}
}
/// <summary>Static class which is used for providing relationship instances which are re-used internally for syncing</summary>
internal static class StaticTblFieldRelations
{
internal static readonly IEntityRelation TblSubjectEntityUsingSubjectIdStatic = new TblFieldRelations().TblSubjectEntityUsingSubjectId;
/// <summary>CTor</summary>
static StaticTblFieldRelations() { }
}
}

View File

@@ -0,0 +1,331 @@
//////////////////////////////////////////////////////////////
// <auto-generated>This code was generated by LLBLGen Pro 5.7.</auto-generated>
//////////////////////////////////////////////////////////////
// Code is generated on:
// Code is generated using templates: SD.TemplateBindings.SharedTemplates
// Templates vendor: Solutions Design.
//////////////////////////////////////////////////////////////
using System;
using System.ComponentModel;
using System.Collections.Generic;
using System.Runtime.Serialization;
using System.Xml.Serialization;
using Datalib.HelperClasses;
using Datalib.FactoryClasses;
using Datalib.RelationClasses;
using SD.LLBLGen.Pro.ORMSupportClasses;
namespace Datalib.EntityClasses
{
// __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces
// __LLBLGENPRO_USER_CODE_REGION_END
/// <summary>Entity class which represents the entity 'TblQuestion'.<br/><br/></summary>
[Serializable]
public partial class TblQuestionEntity : CommonEntityBase
// __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces
// __LLBLGENPRO_USER_CODE_REGION_END
{
private EntityCollection<TblQuizQuestionEntity> _tblQuizQuestions;
private TblSubjectEntity _tblSubject;
// __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers
// __LLBLGENPRO_USER_CODE_REGION_END
private static TblQuestionEntityStaticMetaData _staticMetaData = new TblQuestionEntityStaticMetaData();
private static TblQuestionRelations _relationsFactory = new TblQuestionRelations();
/// <summary>All names of fields mapped onto a relation. Usable for in-memory filtering</summary>
public static partial class MemberNames
{
/// <summary>Member name TblSubject</summary>
public static readonly string TblSubject = "TblSubject";
/// <summary>Member name TblQuizQuestions</summary>
public static readonly string TblQuizQuestions = "TblQuizQuestions";
}
/// <summary>Static meta-data storage for navigator related information</summary>
protected class TblQuestionEntityStaticMetaData : EntityStaticMetaDataBase
{
public TblQuestionEntityStaticMetaData()
{
SetEntityCoreInfo("TblQuestionEntity", InheritanceHierarchyType.None, false, (int)Datalib.EntityType.TblQuestionEntity, typeof(TblQuestionEntity), typeof(TblQuestionEntityFactory), false);
AddNavigatorMetaData<TblQuestionEntity, EntityCollection<TblQuizQuestionEntity>>("TblQuizQuestions", a => a._tblQuizQuestions, (a, b) => a._tblQuizQuestions = b, a => a.TblQuizQuestions, () => new TblQuestionRelations().TblQuizQuestionEntityUsingQuestionId, typeof(TblQuizQuestionEntity), (int)Datalib.EntityType.TblQuizQuestionEntity);
AddNavigatorMetaData<TblQuestionEntity, TblSubjectEntity>("TblSubject", "TblQuestions", (a, b) => a._tblSubject = b, a => a._tblSubject, (a, b) => a.TblSubject = b, Datalib.RelationClasses.StaticTblQuestionRelations.TblSubjectEntityUsingSubjectIdStatic, ()=>new TblQuestionRelations().TblSubjectEntityUsingSubjectId, null, new int[] { (int)TblQuestionFieldIndex.SubjectId }, null, true, (int)Datalib.EntityType.TblSubjectEntity);
}
}
/// <summary>Static ctor</summary>
static TblQuestionEntity()
{
}
/// <summary> CTor</summary>
public TblQuestionEntity()
{
InitClassEmpty(null, null);
}
/// <summary> CTor</summary>
/// <param name="fields">Fields object to set as the fields for this entity.</param>
public TblQuestionEntity(IEntityFields2 fields)
{
InitClassEmpty(null, fields);
}
/// <summary> CTor</summary>
/// <param name="validator">The custom validator object for this TblQuestionEntity</param>
public TblQuestionEntity(IValidator validator)
{
InitClassEmpty(validator, null);
}
/// <summary> CTor</summary>
/// <param name="questionId">PK value for TblQuestion which data should be fetched into this TblQuestion object</param>
public TblQuestionEntity(System.String questionId) : this(questionId, null)
{
}
/// <summary> CTor</summary>
/// <param name="questionId">PK value for TblQuestion which data should be fetched into this TblQuestion object</param>
/// <param name="validator">The custom validator object for this TblQuestionEntity</param>
public TblQuestionEntity(System.String questionId, IValidator validator)
{
InitClassEmpty(validator, null);
this.QuestionId = questionId;
}
/// <summary>Private CTor for deserialization</summary>
/// <param name="info"></param>
/// <param name="context"></param>
protected TblQuestionEntity(SerializationInfo info, StreamingContext context) : base(info, context)
{
// __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
// __LLBLGENPRO_USER_CODE_REGION_END
}
/// <summary>Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'TblQuizQuestion' to this entity.</summary>
/// <returns></returns>
public virtual IRelationPredicateBucket GetRelationInfoTblQuizQuestions() { return CreateRelationInfoForNavigator("TblQuizQuestions"); }
/// <summary>Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'TblSubject' to this entity.</summary>
/// <returns></returns>
public virtual IRelationPredicateBucket GetRelationInfoTblSubject() { return CreateRelationInfoForNavigator("TblSubject"); }
/// <inheritdoc/>
protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; }
/// <summary>Initializes the class members</summary>
private void InitClassMembers()
{
PerformDependencyInjection();
// __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers
// __LLBLGENPRO_USER_CODE_REGION_END
OnInitClassMembersComplete();
}
/// <summary>Initializes the class with empty data, as if it is a new Entity.</summary>
/// <param name="validator">The validator object for this TblQuestionEntity</param>
/// <param name="fields">Fields of this entity</param>
private void InitClassEmpty(IValidator validator, IEntityFields2 fields)
{
OnInitializing();
this.Fields = fields ?? CreateFields();
this.Validator = validator;
InitClassMembers();
// __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty
// __LLBLGENPRO_USER_CODE_REGION_END
OnInitialized();
}
/// <summary>The relations object holding all relations of this entity with other entity classes.</summary>
public static TblQuestionRelations Relations { get { return _relationsFactory; } }
/// <summary>Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'TblQuizQuestion' for this entity.</summary>
/// <returns>Ready to use IPrefetchPathElement2 implementation.</returns>
public static IPrefetchPathElement2 PrefetchPathTblQuizQuestions { get { return _staticMetaData.GetPrefetchPathElement("TblQuizQuestions", CommonEntityBase.CreateEntityCollection<TblQuizQuestionEntity>()); } }
/// <summary>Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'TblSubject' for this entity.</summary>
/// <returns>Ready to use IPrefetchPathElement2 implementation.</returns>
public static IPrefetchPathElement2 PrefetchPathTblSubject { get { return _staticMetaData.GetPrefetchPathElement("TblSubject", CommonEntityBase.CreateEntityCollection<TblSubjectEntity>()); } }
/// <summary>The Answer property of the Entity TblQuestion<br/><br/></summary>
/// <remarks>Mapped on table field: "tblQuestions"."Answer".<br/>Table field type characteristics (type, precision, scale, length): LongVarWChar, 0, 0, 536870911.<br/>Table field behavior characteristics (is nullable, is PK, is identity): true, false, false</remarks>
public virtual System.String Answer
{
get { return (System.String)GetValue((int)TblQuestionFieldIndex.Answer, true); }
set { SetValue((int)TblQuestionFieldIndex.Answer, value); }
}
/// <summary>The Content property of the Entity TblQuestion<br/><br/></summary>
/// <remarks>Mapped on table field: "tblQuestions"."Content".<br/>Table field type characteristics (type, precision, scale, length): LongVarWChar, 0, 0, 536870911.<br/>Table field behavior characteristics (is nullable, is PK, is identity): true, false, false</remarks>
public virtual System.String Content
{
get { return (System.String)GetValue((int)TblQuestionFieldIndex.Content, true); }
set { SetValue((int)TblQuestionFieldIndex.Content, value); }
}
/// <summary>The CreateDate property of the Entity TblQuestion<br/><br/></summary>
/// <remarks>Mapped on table field: "tblQuestions"."CreateDate".<br/>Table field type characteristics (type, precision, scale, length): Date, 0, 0, 0.<br/>Table field behavior characteristics (is nullable, is PK, is identity): true, false, false</remarks>
public virtual Nullable<System.DateTime> CreateDate
{
get { return (Nullable<System.DateTime>)GetValue((int)TblQuestionFieldIndex.CreateDate, false); }
set { SetValue((int)TblQuestionFieldIndex.CreateDate, value); }
}
/// <summary>The Difficulty property of the Entity TblQuestion<br/><br/></summary>
/// <remarks>Mapped on table field: "tblQuestions"."Difficulty".<br/>Table field type characteristics (type, precision, scale, length): VarWChar, 0, 0, 1.<br/>Table field behavior characteristics (is nullable, is PK, is identity): true, false, false</remarks>
public virtual System.String Difficulty
{
get { return (System.String)GetValue((int)TblQuestionFieldIndex.Difficulty, true); }
set { SetValue((int)TblQuestionFieldIndex.Difficulty, value); }
}
/// <summary>The Exclusive property of the Entity TblQuestion<br/><br/></summary>
/// <remarks>Mapped on table field: "tblQuestions"."Exclusive".<br/>Table field type characteristics (type, precision, scale, length): Boolean, 0, 0, 2.<br/>Table field behavior characteristics (is nullable, is PK, is identity): false, false, false</remarks>
public virtual System.Boolean Exclusive
{
get { return (System.Boolean)GetValue((int)TblQuestionFieldIndex.Exclusive, true); }
set { SetValue((int)TblQuestionFieldIndex.Exclusive, value); }
}
/// <summary>The Explaination property of the Entity TblQuestion<br/><br/></summary>
/// <remarks>Mapped on table field: "tblQuestions"."Explaination".<br/>Table field type characteristics (type, precision, scale, length): LongVarWChar, 0, 0, 536870911.<br/>Table field behavior characteristics (is nullable, is PK, is identity): true, false, false</remarks>
public virtual System.String Explaination
{
get { return (System.String)GetValue((int)TblQuestionFieldIndex.Explaination, true); }
set { SetValue((int)TblQuestionFieldIndex.Explaination, value); }
}
/// <summary>The FieldId property of the Entity TblQuestion<br/><br/></summary>
/// <remarks>Mapped on table field: "tblQuestions"."FieldID".<br/>Table field type characteristics (type, precision, scale, length): VarWChar, 0, 0, 1.<br/>Table field behavior characteristics (is nullable, is PK, is identity): true, false, false</remarks>
public virtual System.String FieldId
{
get { return (System.String)GetValue((int)TblQuestionFieldIndex.FieldId, true); }
set { SetValue((int)TblQuestionFieldIndex.FieldId, value); }
}
/// <summary>The Level property of the Entity TblQuestion<br/><br/></summary>
/// <remarks>Mapped on table field: "tblQuestions"."Level".<br/>Table field type characteristics (type, precision, scale, length): VarWChar, 0, 0, 1.<br/>Table field behavior characteristics (is nullable, is PK, is identity): true, false, false</remarks>
public virtual System.String Level
{
get { return (System.String)GetValue((int)TblQuestionFieldIndex.Level, true); }
set { SetValue((int)TblQuestionFieldIndex.Level, value); }
}
/// <summary>The QuestionCode property of the Entity TblQuestion<br/><br/></summary>
/// <remarks>Mapped on table field: "tblQuestions"."QuestionCode".<br/>Table field type characteristics (type, precision, scale, length): VarWChar, 0, 0, 10.<br/>Table field behavior characteristics (is nullable, is PK, is identity): true, false, false</remarks>
public virtual System.String QuestionCode
{
get { return (System.String)GetValue((int)TblQuestionFieldIndex.QuestionCode, true); }
set { SetValue((int)TblQuestionFieldIndex.QuestionCode, value); }
}
/// <summary>The QuestionId property of the Entity TblQuestion<br/><br/></summary>
/// <remarks>Mapped on table field: "tblQuestions"."QuestionID".<br/>Table field type characteristics (type, precision, scale, length): VarWChar, 0, 0, 32.<br/>Table field behavior characteristics (is nullable, is PK, is identity): false, true, false</remarks>
public virtual System.String QuestionId
{
get { return (System.String)GetValue((int)TblQuestionFieldIndex.QuestionId, true); }
set { SetValue((int)TblQuestionFieldIndex.QuestionId, value); }
}
/// <summary>The SubjectId property of the Entity TblQuestion<br/><br/></summary>
/// <remarks>Mapped on table field: "tblQuestions"."SubjectID".<br/>Table field type characteristics (type, precision, scale, length): VarWChar, 0, 0, 2.<br/>Table field behavior characteristics (is nullable, is PK, is identity): true, false, false</remarks>
public virtual System.String SubjectId
{
get { return (System.String)GetValue((int)TblQuestionFieldIndex.SubjectId, true); }
set { SetValue((int)TblQuestionFieldIndex.SubjectId, value); }
}
/// <summary>The Summary property of the Entity TblQuestion<br/><br/></summary>
/// <remarks>Mapped on table field: "tblQuestions"."Summary".<br/>Table field type characteristics (type, precision, scale, length): LongVarWChar, 0, 0, 536870911.<br/>Table field behavior characteristics (is nullable, is PK, is identity): true, false, false</remarks>
public virtual System.String Summary
{
get { return (System.String)GetValue((int)TblQuestionFieldIndex.Summary, true); }
set { SetValue((int)TblQuestionFieldIndex.Summary, value); }
}
/// <summary>Gets the EntityCollection with the related entities of type 'TblQuizQuestionEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.<br/><br/></summary>
[TypeContainedAttribute(typeof(TblQuizQuestionEntity))]
public virtual EntityCollection<TblQuizQuestionEntity> TblQuizQuestions { get { return GetOrCreateEntityCollection<TblQuizQuestionEntity, TblQuizQuestionEntityFactory>("TblQuestion", true, false, ref _tblQuizQuestions); } }
/// <summary>Gets / sets related entity of type 'TblSubjectEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..<br/><br/></summary>
[Browsable(false)]
public virtual TblSubjectEntity TblSubject
{
get { return _tblSubject; }
set { SetSingleRelatedEntityNavigator(value, "TblSubject"); }
}
// __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode
// __LLBLGENPRO_USER_CODE_REGION_END
}
}
namespace Datalib
{
public enum TblQuestionFieldIndex
{
///<summary>Answer. </summary>
Answer,
///<summary>Content. </summary>
Content,
///<summary>CreateDate. </summary>
CreateDate,
///<summary>Difficulty. </summary>
Difficulty,
///<summary>Exclusive. </summary>
Exclusive,
///<summary>Explaination. </summary>
Explaination,
///<summary>FieldId. </summary>
FieldId,
///<summary>Level. </summary>
Level,
///<summary>QuestionCode. </summary>
QuestionCode,
///<summary>QuestionId. </summary>
QuestionId,
///<summary>SubjectId. </summary>
SubjectId,
///<summary>Summary. </summary>
Summary,
/// <summary></summary>
AmountOfFields
}
}
namespace Datalib.RelationClasses
{
/// <summary>Implements the relations factory for the entity: TblQuestion. </summary>
public partial class TblQuestionRelations: RelationFactory
{
/// <summary>Returns a new IEntityRelation object, between TblQuestionEntity and TblQuizQuestionEntity over the 1:n relation they have, using the relation between the fields: TblQuestion.QuestionId - TblQuizQuestion.QuestionId</summary>
public virtual IEntityRelation TblQuizQuestionEntityUsingQuestionId
{
get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "TblQuizQuestions", true, new[] { TblQuestionFields.QuestionId, TblQuizQuestionFields.QuestionId }); }
}
/// <summary>Returns a new IEntityRelation object, between TblQuestionEntity and TblSubjectEntity over the m:1 relation they have, using the relation between the fields: TblQuestion.SubjectId - TblSubject.SubjectId</summary>
public virtual IEntityRelation TblSubjectEntityUsingSubjectId
{
get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "TblSubject", false, new[] { TblSubjectFields.SubjectId, TblQuestionFields.SubjectId }); }
}
}
/// <summary>Static class which is used for providing relationship instances which are re-used internally for syncing</summary>
internal static class StaticTblQuestionRelations
{
internal static readonly IEntityRelation TblQuizQuestionEntityUsingQuestionIdStatic = new TblQuestionRelations().TblQuizQuestionEntityUsingQuestionId;
internal static readonly IEntityRelation TblSubjectEntityUsingSubjectIdStatic = new TblQuestionRelations().TblSubjectEntityUsingSubjectId;
/// <summary>CTor</summary>
static StaticTblQuestionRelations() { }
}
}

View File

@@ -0,0 +1,271 @@
//////////////////////////////////////////////////////////////
// <auto-generated>This code was generated by LLBLGen Pro 5.7.</auto-generated>
//////////////////////////////////////////////////////////////
// Code is generated on:
// Code is generated using templates: SD.TemplateBindings.SharedTemplates
// Templates vendor: Solutions Design.
//////////////////////////////////////////////////////////////
using System;
using System.ComponentModel;
using System.Collections.Generic;
using System.Runtime.Serialization;
using System.Xml.Serialization;
using Datalib.HelperClasses;
using Datalib.FactoryClasses;
using Datalib.RelationClasses;
using SD.LLBLGen.Pro.ORMSupportClasses;
namespace Datalib.EntityClasses
{
// __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces
// __LLBLGENPRO_USER_CODE_REGION_END
/// <summary>Entity class which represents the entity 'TblQuiz'.<br/><br/></summary>
[Serializable]
public partial class TblQuizEntity : CommonEntityBase
// __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces
// __LLBLGENPRO_USER_CODE_REGION_END
{
private EntityCollection<TblQuizQuestionEntity> _tblQuizQuestions;
private TblQuizTemplateEntity _tblQuizTemplate;
// __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers
// __LLBLGENPRO_USER_CODE_REGION_END
private static TblQuizEntityStaticMetaData _staticMetaData = new TblQuizEntityStaticMetaData();
private static TblQuizRelations _relationsFactory = new TblQuizRelations();
/// <summary>All names of fields mapped onto a relation. Usable for in-memory filtering</summary>
public static partial class MemberNames
{
/// <summary>Member name TblQuizTemplate</summary>
public static readonly string TblQuizTemplate = "TblQuizTemplate";
/// <summary>Member name TblQuizQuestions</summary>
public static readonly string TblQuizQuestions = "TblQuizQuestions";
}
/// <summary>Static meta-data storage for navigator related information</summary>
protected class TblQuizEntityStaticMetaData : EntityStaticMetaDataBase
{
public TblQuizEntityStaticMetaData()
{
SetEntityCoreInfo("TblQuizEntity", InheritanceHierarchyType.None, false, (int)Datalib.EntityType.TblQuizEntity, typeof(TblQuizEntity), typeof(TblQuizEntityFactory), false);
AddNavigatorMetaData<TblQuizEntity, EntityCollection<TblQuizQuestionEntity>>("TblQuizQuestions", a => a._tblQuizQuestions, (a, b) => a._tblQuizQuestions = b, a => a.TblQuizQuestions, () => new TblQuizRelations().TblQuizQuestionEntityUsingQuizId, typeof(TblQuizQuestionEntity), (int)Datalib.EntityType.TblQuizQuestionEntity);
AddNavigatorMetaData<TblQuizEntity, TblQuizTemplateEntity>("TblQuizTemplate", "TblQuizzes", (a, b) => a._tblQuizTemplate = b, a => a._tblQuizTemplate, (a, b) => a.TblQuizTemplate = b, Datalib.RelationClasses.StaticTblQuizRelations.TblQuizTemplateEntityUsingQuizTemplateIdStatic, ()=>new TblQuizRelations().TblQuizTemplateEntityUsingQuizTemplateId, null, new int[] { (int)TblQuizFieldIndex.QuizTemplateId }, null, true, (int)Datalib.EntityType.TblQuizTemplateEntity);
}
}
/// <summary>Static ctor</summary>
static TblQuizEntity()
{
}
/// <summary> CTor</summary>
public TblQuizEntity()
{
InitClassEmpty(null, null);
}
/// <summary> CTor</summary>
/// <param name="fields">Fields object to set as the fields for this entity.</param>
public TblQuizEntity(IEntityFields2 fields)
{
InitClassEmpty(null, fields);
}
/// <summary> CTor</summary>
/// <param name="validator">The custom validator object for this TblQuizEntity</param>
public TblQuizEntity(IValidator validator)
{
InitClassEmpty(validator, null);
}
/// <summary> CTor</summary>
/// <param name="quizId">PK value for TblQuiz which data should be fetched into this TblQuiz object</param>
public TblQuizEntity(System.String quizId) : this(quizId, null)
{
}
/// <summary> CTor</summary>
/// <param name="quizId">PK value for TblQuiz which data should be fetched into this TblQuiz object</param>
/// <param name="validator">The custom validator object for this TblQuizEntity</param>
public TblQuizEntity(System.String quizId, IValidator validator)
{
InitClassEmpty(validator, null);
this.QuizId = quizId;
}
/// <summary>Private CTor for deserialization</summary>
/// <param name="info"></param>
/// <param name="context"></param>
protected TblQuizEntity(SerializationInfo info, StreamingContext context) : base(info, context)
{
// __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
// __LLBLGENPRO_USER_CODE_REGION_END
}
/// <summary>Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'TblQuizQuestion' to this entity.</summary>
/// <returns></returns>
public virtual IRelationPredicateBucket GetRelationInfoTblQuizQuestions() { return CreateRelationInfoForNavigator("TblQuizQuestions"); }
/// <summary>Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'TblQuizTemplate' to this entity.</summary>
/// <returns></returns>
public virtual IRelationPredicateBucket GetRelationInfoTblQuizTemplate() { return CreateRelationInfoForNavigator("TblQuizTemplate"); }
/// <inheritdoc/>
protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; }
/// <summary>Initializes the class members</summary>
private void InitClassMembers()
{
PerformDependencyInjection();
// __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers
// __LLBLGENPRO_USER_CODE_REGION_END
OnInitClassMembersComplete();
}
/// <summary>Initializes the class with empty data, as if it is a new Entity.</summary>
/// <param name="validator">The validator object for this TblQuizEntity</param>
/// <param name="fields">Fields of this entity</param>
private void InitClassEmpty(IValidator validator, IEntityFields2 fields)
{
OnInitializing();
this.Fields = fields ?? CreateFields();
this.Validator = validator;
InitClassMembers();
// __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty
// __LLBLGENPRO_USER_CODE_REGION_END
OnInitialized();
}
/// <summary>The relations object holding all relations of this entity with other entity classes.</summary>
public static TblQuizRelations Relations { get { return _relationsFactory; } }
/// <summary>Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'TblQuizQuestion' for this entity.</summary>
/// <returns>Ready to use IPrefetchPathElement2 implementation.</returns>
public static IPrefetchPathElement2 PrefetchPathTblQuizQuestions { get { return _staticMetaData.GetPrefetchPathElement("TblQuizQuestions", CommonEntityBase.CreateEntityCollection<TblQuizQuestionEntity>()); } }
/// <summary>Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'TblQuizTemplate' for this entity.</summary>
/// <returns>Ready to use IPrefetchPathElement2 implementation.</returns>
public static IPrefetchPathElement2 PrefetchPathTblQuizTemplate { get { return _staticMetaData.GetPrefetchPathElement("TblQuizTemplate", CommonEntityBase.CreateEntityCollection<TblQuizTemplateEntity>()); } }
/// <summary>The QuizCode property of the Entity TblQuiz<br/><br/></summary>
/// <remarks>Mapped on table field: "tblQuizs"."QuizCode".<br/>Table field type characteristics (type, precision, scale, length): VarWChar, 0, 0, 255.<br/>Table field behavior characteristics (is nullable, is PK, is identity): true, false, false</remarks>
public virtual System.String QuizCode
{
get { return (System.String)GetValue((int)TblQuizFieldIndex.QuizCode, true); }
set { SetValue((int)TblQuizFieldIndex.QuizCode, value); }
}
/// <summary>The QuizId property of the Entity TblQuiz<br/><br/></summary>
/// <remarks>Mapped on table field: "tblQuizs"."QuizID".<br/>Table field type characteristics (type, precision, scale, length): VarWChar, 0, 0, 32.<br/>Table field behavior characteristics (is nullable, is PK, is identity): false, true, false</remarks>
public virtual System.String QuizId
{
get { return (System.String)GetValue((int)TblQuizFieldIndex.QuizId, true); }
set { SetValue((int)TblQuizFieldIndex.QuizId, value); }
}
/// <summary>The QuizName property of the Entity TblQuiz<br/><br/></summary>
/// <remarks>Mapped on table field: "tblQuizs"."QuizName".<br/>Table field type characteristics (type, precision, scale, length): VarWChar, 0, 0, 255.<br/>Table field behavior characteristics (is nullable, is PK, is identity): true, false, false</remarks>
public virtual System.String QuizName
{
get { return (System.String)GetValue((int)TblQuizFieldIndex.QuizName, true); }
set { SetValue((int)TblQuizFieldIndex.QuizName, value); }
}
/// <summary>The QuizTemplateId property of the Entity TblQuiz<br/><br/></summary>
/// <remarks>Mapped on table field: "tblQuizs"."QuizTemplateID".<br/>Table field type characteristics (type, precision, scale, length): VarWChar, 0, 0, 32.<br/>Table field behavior characteristics (is nullable, is PK, is identity): true, false, false</remarks>
public virtual System.String QuizTemplateId
{
get { return (System.String)GetValue((int)TblQuizFieldIndex.QuizTemplateId, true); }
set { SetValue((int)TblQuizFieldIndex.QuizTemplateId, value); }
}
/// <summary>The QuizTime property of the Entity TblQuiz<br/><br/></summary>
/// <remarks>Mapped on table field: "tblQuizs"."QuizTime".<br/>Table field type characteristics (type, precision, scale, length): Integer, 10, 0, 0.<br/>Table field behavior characteristics (is nullable, is PK, is identity): true, false, false</remarks>
public virtual Nullable<System.Int32> QuizTime
{
get { return (Nullable<System.Int32>)GetValue((int)TblQuizFieldIndex.QuizTime, false); }
set { SetValue((int)TblQuizFieldIndex.QuizTime, value); }
}
/// <summary>The QuizYear property of the Entity TblQuiz<br/><br/></summary>
/// <remarks>Mapped on table field: "tblQuizs"."QuizYear".<br/>Table field type characteristics (type, precision, scale, length): Integer, 10, 0, 0.<br/>Table field behavior characteristics (is nullable, is PK, is identity): true, false, false</remarks>
public virtual Nullable<System.Int32> QuizYear
{
get { return (Nullable<System.Int32>)GetValue((int)TblQuizFieldIndex.QuizYear, false); }
set { SetValue((int)TblQuizFieldIndex.QuizYear, value); }
}
/// <summary>Gets the EntityCollection with the related entities of type 'TblQuizQuestionEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.<br/><br/></summary>
[TypeContainedAttribute(typeof(TblQuizQuestionEntity))]
public virtual EntityCollection<TblQuizQuestionEntity> TblQuizQuestions { get { return GetOrCreateEntityCollection<TblQuizQuestionEntity, TblQuizQuestionEntityFactory>("TblQuiz", true, false, ref _tblQuizQuestions); } }
/// <summary>Gets / sets related entity of type 'TblQuizTemplateEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..<br/><br/></summary>
[Browsable(false)]
public virtual TblQuizTemplateEntity TblQuizTemplate
{
get { return _tblQuizTemplate; }
set { SetSingleRelatedEntityNavigator(value, "TblQuizTemplate"); }
}
// __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode
// __LLBLGENPRO_USER_CODE_REGION_END
}
}
namespace Datalib
{
public enum TblQuizFieldIndex
{
///<summary>QuizCode. </summary>
QuizCode,
///<summary>QuizId. </summary>
QuizId,
///<summary>QuizName. </summary>
QuizName,
///<summary>QuizTemplateId. </summary>
QuizTemplateId,
///<summary>QuizTime. </summary>
QuizTime,
///<summary>QuizYear. </summary>
QuizYear,
/// <summary></summary>
AmountOfFields
}
}
namespace Datalib.RelationClasses
{
/// <summary>Implements the relations factory for the entity: TblQuiz. </summary>
public partial class TblQuizRelations: RelationFactory
{
/// <summary>Returns a new IEntityRelation object, between TblQuizEntity and TblQuizQuestionEntity over the 1:n relation they have, using the relation between the fields: TblQuiz.QuizId - TblQuizQuestion.QuizId</summary>
public virtual IEntityRelation TblQuizQuestionEntityUsingQuizId
{
get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "TblQuizQuestions", true, new[] { TblQuizFields.QuizId, TblQuizQuestionFields.QuizId }); }
}
/// <summary>Returns a new IEntityRelation object, between TblQuizEntity and TblQuizTemplateEntity over the m:1 relation they have, using the relation between the fields: TblQuiz.QuizTemplateId - TblQuizTemplate.QuizTemplateId</summary>
public virtual IEntityRelation TblQuizTemplateEntityUsingQuizTemplateId
{
get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "TblQuizTemplate", false, new[] { TblQuizTemplateFields.QuizTemplateId, TblQuizFields.QuizTemplateId }); }
}
}
/// <summary>Static class which is used for providing relationship instances which are re-used internally for syncing</summary>
internal static class StaticTblQuizRelations
{
internal static readonly IEntityRelation TblQuizQuestionEntityUsingQuizIdStatic = new TblQuizRelations().TblQuizQuestionEntityUsingQuizId;
internal static readonly IEntityRelation TblQuizTemplateEntityUsingQuizTemplateIdStatic = new TblQuizRelations().TblQuizTemplateEntityUsingQuizTemplateId;
/// <summary>CTor</summary>
static StaticTblQuizRelations() { }
}
}

View File

@@ -0,0 +1,266 @@
//////////////////////////////////////////////////////////////
// <auto-generated>This code was generated by LLBLGen Pro 5.7.</auto-generated>
//////////////////////////////////////////////////////////////
// Code is generated on:
// Code is generated using templates: SD.TemplateBindings.SharedTemplates
// Templates vendor: Solutions Design.
//////////////////////////////////////////////////////////////
using System;
using System.ComponentModel;
using System.Collections.Generic;
using System.Runtime.Serialization;
using System.Xml.Serialization;
using Datalib.HelperClasses;
using Datalib.FactoryClasses;
using Datalib.RelationClasses;
using SD.LLBLGen.Pro.ORMSupportClasses;
namespace Datalib.EntityClasses
{
// __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces
// __LLBLGENPRO_USER_CODE_REGION_END
/// <summary>Entity class which represents the entity 'TblQuizQuestion'.<br/><br/></summary>
[Serializable]
public partial class TblQuizQuestionEntity : CommonEntityBase
// __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces
// __LLBLGENPRO_USER_CODE_REGION_END
{
private TblQuestionEntity _tblQuestion;
private TblQuizEntity _tblQuiz;
// __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers
// __LLBLGENPRO_USER_CODE_REGION_END
private static TblQuizQuestionEntityStaticMetaData _staticMetaData = new TblQuizQuestionEntityStaticMetaData();
private static TblQuizQuestionRelations _relationsFactory = new TblQuizQuestionRelations();
/// <summary>All names of fields mapped onto a relation. Usable for in-memory filtering</summary>
public static partial class MemberNames
{
/// <summary>Member name TblQuestion</summary>
public static readonly string TblQuestion = "TblQuestion";
/// <summary>Member name TblQuiz</summary>
public static readonly string TblQuiz = "TblQuiz";
}
/// <summary>Static meta-data storage for navigator related information</summary>
protected class TblQuizQuestionEntityStaticMetaData : EntityStaticMetaDataBase
{
public TblQuizQuestionEntityStaticMetaData()
{
SetEntityCoreInfo("TblQuizQuestionEntity", InheritanceHierarchyType.None, false, (int)Datalib.EntityType.TblQuizQuestionEntity, typeof(TblQuizQuestionEntity), typeof(TblQuizQuestionEntityFactory), false);
AddNavigatorMetaData<TblQuizQuestionEntity, TblQuestionEntity>("TblQuestion", "TblQuizQuestions", (a, b) => a._tblQuestion = b, a => a._tblQuestion, (a, b) => a.TblQuestion = b, Datalib.RelationClasses.StaticTblQuizQuestionRelations.TblQuestionEntityUsingQuestionIdStatic, ()=>new TblQuizQuestionRelations().TblQuestionEntityUsingQuestionId, null, new int[] { (int)TblQuizQuestionFieldIndex.QuestionId }, null, true, (int)Datalib.EntityType.TblQuestionEntity);
AddNavigatorMetaData<TblQuizQuestionEntity, TblQuizEntity>("TblQuiz", "TblQuizQuestions", (a, b) => a._tblQuiz = b, a => a._tblQuiz, (a, b) => a.TblQuiz = b, Datalib.RelationClasses.StaticTblQuizQuestionRelations.TblQuizEntityUsingQuizIdStatic, ()=>new TblQuizQuestionRelations().TblQuizEntityUsingQuizId, null, new int[] { (int)TblQuizQuestionFieldIndex.QuizId }, null, true, (int)Datalib.EntityType.TblQuizEntity);
}
}
/// <summary>Static ctor</summary>
static TblQuizQuestionEntity()
{
}
/// <summary> CTor</summary>
public TblQuizQuestionEntity()
{
InitClassEmpty(null, null);
}
/// <summary> CTor</summary>
/// <param name="fields">Fields object to set as the fields for this entity.</param>
public TblQuizQuestionEntity(IEntityFields2 fields)
{
InitClassEmpty(null, fields);
}
/// <summary> CTor</summary>
/// <param name="validator">The custom validator object for this TblQuizQuestionEntity</param>
public TblQuizQuestionEntity(IValidator validator)
{
InitClassEmpty(validator, null);
}
/// <summary> CTor</summary>
/// <param name="uniqueId">PK value for TblQuizQuestion which data should be fetched into this TblQuizQuestion object</param>
public TblQuizQuestionEntity(System.String uniqueId) : this(uniqueId, null)
{
}
/// <summary> CTor</summary>
/// <param name="uniqueId">PK value for TblQuizQuestion which data should be fetched into this TblQuizQuestion object</param>
/// <param name="validator">The custom validator object for this TblQuizQuestionEntity</param>
public TblQuizQuestionEntity(System.String uniqueId, IValidator validator)
{
InitClassEmpty(validator, null);
this.UniqueId = uniqueId;
}
/// <summary>Private CTor for deserialization</summary>
/// <param name="info"></param>
/// <param name="context"></param>
protected TblQuizQuestionEntity(SerializationInfo info, StreamingContext context) : base(info, context)
{
// __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
// __LLBLGENPRO_USER_CODE_REGION_END
}
/// <summary>Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'TblQuestion' to this entity.</summary>
/// <returns></returns>
public virtual IRelationPredicateBucket GetRelationInfoTblQuestion() { return CreateRelationInfoForNavigator("TblQuestion"); }
/// <summary>Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'TblQuiz' to this entity.</summary>
/// <returns></returns>
public virtual IRelationPredicateBucket GetRelationInfoTblQuiz() { return CreateRelationInfoForNavigator("TblQuiz"); }
/// <inheritdoc/>
protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; }
/// <summary>Initializes the class members</summary>
private void InitClassMembers()
{
PerformDependencyInjection();
// __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers
// __LLBLGENPRO_USER_CODE_REGION_END
OnInitClassMembersComplete();
}
/// <summary>Initializes the class with empty data, as if it is a new Entity.</summary>
/// <param name="validator">The validator object for this TblQuizQuestionEntity</param>
/// <param name="fields">Fields of this entity</param>
private void InitClassEmpty(IValidator validator, IEntityFields2 fields)
{
OnInitializing();
this.Fields = fields ?? CreateFields();
this.Validator = validator;
InitClassMembers();
// __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty
// __LLBLGENPRO_USER_CODE_REGION_END
OnInitialized();
}
/// <summary>The relations object holding all relations of this entity with other entity classes.</summary>
public static TblQuizQuestionRelations Relations { get { return _relationsFactory; } }
/// <summary>Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'TblQuestion' for this entity.</summary>
/// <returns>Ready to use IPrefetchPathElement2 implementation.</returns>
public static IPrefetchPathElement2 PrefetchPathTblQuestion { get { return _staticMetaData.GetPrefetchPathElement("TblQuestion", CommonEntityBase.CreateEntityCollection<TblQuestionEntity>()); } }
/// <summary>Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'TblQuiz' for this entity.</summary>
/// <returns>Ready to use IPrefetchPathElement2 implementation.</returns>
public static IPrefetchPathElement2 PrefetchPathTblQuiz { get { return _staticMetaData.GetPrefetchPathElement("TblQuiz", CommonEntityBase.CreateEntityCollection<TblQuizEntity>()); } }
/// <summary>The QuestionId property of the Entity TblQuizQuestion<br/><br/></summary>
/// <remarks>Mapped on table field: "tblQuizQuestions"."QuestionID".<br/>Table field type characteristics (type, precision, scale, length): VarWChar, 0, 0, 32.<br/>Table field behavior characteristics (is nullable, is PK, is identity): true, false, false</remarks>
public virtual System.String QuestionId
{
get { return (System.String)GetValue((int)TblQuizQuestionFieldIndex.QuestionId, true); }
set { SetValue((int)TblQuizQuestionFieldIndex.QuestionId, value); }
}
/// <summary>The QuizId property of the Entity TblQuizQuestion<br/><br/></summary>
/// <remarks>Mapped on table field: "tblQuizQuestions"."QuizID".<br/>Table field type characteristics (type, precision, scale, length): VarWChar, 0, 0, 32.<br/>Table field behavior characteristics (is nullable, is PK, is identity): false, false, false</remarks>
public virtual System.String QuizId
{
get { return (System.String)GetValue((int)TblQuizQuestionFieldIndex.QuizId, true); }
set { SetValue((int)TblQuizQuestionFieldIndex.QuizId, value); }
}
/// <summary>The QuizTemplateId property of the Entity TblQuizQuestion<br/><br/></summary>
/// <remarks>Mapped on table field: "tblQuizQuestions"."QuizTemplateID".<br/>Table field type characteristics (type, precision, scale, length): VarWChar, 0, 0, 32.<br/>Table field behavior characteristics (is nullable, is PK, is identity): false, false, false</remarks>
public virtual System.String QuizTemplateId
{
get { return (System.String)GetValue((int)TblQuizQuestionFieldIndex.QuizTemplateId, true); }
set { SetValue((int)TblQuizQuestionFieldIndex.QuizTemplateId, value); }
}
/// <summary>The TrainingTypeId property of the Entity TblQuizQuestion<br/><br/></summary>
/// <remarks>Mapped on table field: "tblQuizQuestions"."TrainingTypeID".<br/>Table field type characteristics (type, precision, scale, length): VarWChar, 0, 0, 2.<br/>Table field behavior characteristics (is nullable, is PK, is identity): false, false, false</remarks>
public virtual System.String TrainingTypeId
{
get { return (System.String)GetValue((int)TblQuizQuestionFieldIndex.TrainingTypeId, true); }
set { SetValue((int)TblQuizQuestionFieldIndex.TrainingTypeId, value); }
}
/// <summary>The UniqueId property of the Entity TblQuizQuestion<br/><br/></summary>
/// <remarks>Mapped on table field: "tblQuizQuestions"."UniqueID".<br/>Table field type characteristics (type, precision, scale, length): VarWChar, 0, 0, 32.<br/>Table field behavior characteristics (is nullable, is PK, is identity): false, true, false</remarks>
public virtual System.String UniqueId
{
get { return (System.String)GetValue((int)TblQuizQuestionFieldIndex.UniqueId, true); }
set { SetValue((int)TblQuizQuestionFieldIndex.UniqueId, value); }
}
/// <summary>Gets / sets related entity of type 'TblQuestionEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..<br/><br/></summary>
[Browsable(false)]
public virtual TblQuestionEntity TblQuestion
{
get { return _tblQuestion; }
set { SetSingleRelatedEntityNavigator(value, "TblQuestion"); }
}
/// <summary>Gets / sets related entity of type 'TblQuizEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..<br/><br/></summary>
[Browsable(false)]
public virtual TblQuizEntity TblQuiz
{
get { return _tblQuiz; }
set { SetSingleRelatedEntityNavigator(value, "TblQuiz"); }
}
// __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode
// __LLBLGENPRO_USER_CODE_REGION_END
}
}
namespace Datalib
{
public enum TblQuizQuestionFieldIndex
{
///<summary>QuestionId. </summary>
QuestionId,
///<summary>QuizId. </summary>
QuizId,
///<summary>QuizTemplateId. </summary>
QuizTemplateId,
///<summary>TrainingTypeId. </summary>
TrainingTypeId,
///<summary>UniqueId. </summary>
UniqueId,
/// <summary></summary>
AmountOfFields
}
}
namespace Datalib.RelationClasses
{
/// <summary>Implements the relations factory for the entity: TblQuizQuestion. </summary>
public partial class TblQuizQuestionRelations: RelationFactory
{
/// <summary>Returns a new IEntityRelation object, between TblQuizQuestionEntity and TblQuestionEntity over the m:1 relation they have, using the relation between the fields: TblQuizQuestion.QuestionId - TblQuestion.QuestionId</summary>
public virtual IEntityRelation TblQuestionEntityUsingQuestionId
{
get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "TblQuestion", false, new[] { TblQuestionFields.QuestionId, TblQuizQuestionFields.QuestionId }); }
}
/// <summary>Returns a new IEntityRelation object, between TblQuizQuestionEntity and TblQuizEntity over the m:1 relation they have, using the relation between the fields: TblQuizQuestion.QuizId - TblQuiz.QuizId</summary>
public virtual IEntityRelation TblQuizEntityUsingQuizId
{
get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "TblQuiz", false, new[] { TblQuizFields.QuizId, TblQuizQuestionFields.QuizId }); }
}
}
/// <summary>Static class which is used for providing relationship instances which are re-used internally for syncing</summary>
internal static class StaticTblQuizQuestionRelations
{
internal static readonly IEntityRelation TblQuestionEntityUsingQuestionIdStatic = new TblQuizQuestionRelations().TblQuestionEntityUsingQuestionId;
internal static readonly IEntityRelation TblQuizEntityUsingQuizIdStatic = new TblQuizQuestionRelations().TblQuizEntityUsingQuizId;
/// <summary>CTor</summary>
static StaticTblQuizQuestionRelations() { }
}
}

View File

@@ -0,0 +1,259 @@
//////////////////////////////////////////////////////////////
// <auto-generated>This code was generated by LLBLGen Pro 5.7.</auto-generated>
//////////////////////////////////////////////////////////////
// Code is generated on:
// Code is generated using templates: SD.TemplateBindings.SharedTemplates
// Templates vendor: Solutions Design.
//////////////////////////////////////////////////////////////
using System;
using System.ComponentModel;
using System.Collections.Generic;
using System.Runtime.Serialization;
using System.Xml.Serialization;
using Datalib.HelperClasses;
using Datalib.FactoryClasses;
using Datalib.RelationClasses;
using SD.LLBLGen.Pro.ORMSupportClasses;
namespace Datalib.EntityClasses
{
// __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces
// __LLBLGENPRO_USER_CODE_REGION_END
/// <summary>Entity class which represents the entity 'TblQuizTemplateDetail'.<br/><br/></summary>
[Serializable]
public partial class TblQuizTemplateDetailEntity : CommonEntityBase
// __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces
// __LLBLGENPRO_USER_CODE_REGION_END
{
private TblQuizTemplateEntity _tblQuizTemplate;
// __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers
// __LLBLGENPRO_USER_CODE_REGION_END
private static TblQuizTemplateDetailEntityStaticMetaData _staticMetaData = new TblQuizTemplateDetailEntityStaticMetaData();
private static TblQuizTemplateDetailRelations _relationsFactory = new TblQuizTemplateDetailRelations();
/// <summary>All names of fields mapped onto a relation. Usable for in-memory filtering</summary>
public static partial class MemberNames
{
/// <summary>Member name TblQuizTemplate</summary>
public static readonly string TblQuizTemplate = "TblQuizTemplate";
}
/// <summary>Static meta-data storage for navigator related information</summary>
protected class TblQuizTemplateDetailEntityStaticMetaData : EntityStaticMetaDataBase
{
public TblQuizTemplateDetailEntityStaticMetaData()
{
SetEntityCoreInfo("TblQuizTemplateDetailEntity", InheritanceHierarchyType.None, false, (int)Datalib.EntityType.TblQuizTemplateDetailEntity, typeof(TblQuizTemplateDetailEntity), typeof(TblQuizTemplateDetailEntityFactory), false);
AddNavigatorMetaData<TblQuizTemplateDetailEntity, TblQuizTemplateEntity>("TblQuizTemplate", "TblQuizTemplateDetails", (a, b) => a._tblQuizTemplate = b, a => a._tblQuizTemplate, (a, b) => a.TblQuizTemplate = b, Datalib.RelationClasses.StaticTblQuizTemplateDetailRelations.TblQuizTemplateEntityUsingQuizTemplateIdStatic, ()=>new TblQuizTemplateDetailRelations().TblQuizTemplateEntityUsingQuizTemplateId, null, new int[] { (int)TblQuizTemplateDetailFieldIndex.QuizTemplateId }, null, true, (int)Datalib.EntityType.TblQuizTemplateEntity);
}
}
/// <summary>Static ctor</summary>
static TblQuizTemplateDetailEntity()
{
}
/// <summary> CTor</summary>
public TblQuizTemplateDetailEntity()
{
InitClassEmpty(null, null);
}
/// <summary> CTor</summary>
/// <param name="fields">Fields object to set as the fields for this entity.</param>
public TblQuizTemplateDetailEntity(IEntityFields2 fields)
{
InitClassEmpty(null, fields);
}
/// <summary> CTor</summary>
/// <param name="validator">The custom validator object for this TblQuizTemplateDetailEntity</param>
public TblQuizTemplateDetailEntity(IValidator validator)
{
InitClassEmpty(validator, null);
}
/// <summary> CTor</summary>
/// <param name="uniqueId">PK value for TblQuizTemplateDetail which data should be fetched into this TblQuizTemplateDetail object</param>
public TblQuizTemplateDetailEntity(System.String uniqueId) : this(uniqueId, null)
{
}
/// <summary> CTor</summary>
/// <param name="uniqueId">PK value for TblQuizTemplateDetail which data should be fetched into this TblQuizTemplateDetail object</param>
/// <param name="validator">The custom validator object for this TblQuizTemplateDetailEntity</param>
public TblQuizTemplateDetailEntity(System.String uniqueId, IValidator validator)
{
InitClassEmpty(validator, null);
this.UniqueId = uniqueId;
}
/// <summary>Private CTor for deserialization</summary>
/// <param name="info"></param>
/// <param name="context"></param>
protected TblQuizTemplateDetailEntity(SerializationInfo info, StreamingContext context) : base(info, context)
{
// __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
// __LLBLGENPRO_USER_CODE_REGION_END
}
/// <summary>Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'TblQuizTemplate' to this entity.</summary>
/// <returns></returns>
public virtual IRelationPredicateBucket GetRelationInfoTblQuizTemplate() { return CreateRelationInfoForNavigator("TblQuizTemplate"); }
/// <inheritdoc/>
protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; }
/// <summary>Initializes the class members</summary>
private void InitClassMembers()
{
PerformDependencyInjection();
// __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers
// __LLBLGENPRO_USER_CODE_REGION_END
OnInitClassMembersComplete();
}
/// <summary>Initializes the class with empty data, as if it is a new Entity.</summary>
/// <param name="validator">The validator object for this TblQuizTemplateDetailEntity</param>
/// <param name="fields">Fields of this entity</param>
private void InitClassEmpty(IValidator validator, IEntityFields2 fields)
{
OnInitializing();
this.Fields = fields ?? CreateFields();
this.Validator = validator;
InitClassMembers();
// __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty
// __LLBLGENPRO_USER_CODE_REGION_END
OnInitialized();
}
/// <summary>The relations object holding all relations of this entity with other entity classes.</summary>
public static TblQuizTemplateDetailRelations Relations { get { return _relationsFactory; } }
/// <summary>Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'TblQuizTemplate' for this entity.</summary>
/// <returns>Ready to use IPrefetchPathElement2 implementation.</returns>
public static IPrefetchPathElement2 PrefetchPathTblQuizTemplate { get { return _staticMetaData.GetPrefetchPathElement("TblQuizTemplate", CommonEntityBase.CreateEntityCollection<TblQuizTemplateEntity>()); } }
/// <summary>The Difficulty property of the Entity TblQuizTemplateDetail<br/><br/></summary>
/// <remarks>Mapped on table field: "tblQuizTemplateDetail"."Difficulty".<br/>Table field type characteristics (type, precision, scale, length): VarWChar, 0, 0, 1.<br/>Table field behavior characteristics (is nullable, is PK, is identity): true, false, false</remarks>
public virtual System.String Difficulty
{
get { return (System.String)GetValue((int)TblQuizTemplateDetailFieldIndex.Difficulty, true); }
set { SetValue((int)TblQuizTemplateDetailFieldIndex.Difficulty, value); }
}
/// <summary>The FieldId property of the Entity TblQuizTemplateDetail<br/><br/></summary>
/// <remarks>Mapped on table field: "tblQuizTemplateDetail"."FieldID".<br/>Table field type characteristics (type, precision, scale, length): VarWChar, 0, 0, 1.<br/>Table field behavior characteristics (is nullable, is PK, is identity): true, false, false</remarks>
public virtual System.String FieldId
{
get { return (System.String)GetValue((int)TblQuizTemplateDetailFieldIndex.FieldId, true); }
set { SetValue((int)TblQuizTemplateDetailFieldIndex.FieldId, value); }
}
/// <summary>The Level property of the Entity TblQuizTemplateDetail<br/><br/></summary>
/// <remarks>Mapped on table field: "tblQuizTemplateDetail"."Level".<br/>Table field type characteristics (type, precision, scale, length): VarWChar, 0, 0, 1.<br/>Table field behavior characteristics (is nullable, is PK, is identity): true, false, false</remarks>
public virtual System.String Level
{
get { return (System.String)GetValue((int)TblQuizTemplateDetailFieldIndex.Level, true); }
set { SetValue((int)TblQuizTemplateDetailFieldIndex.Level, value); }
}
/// <summary>The QuestionNum property of the Entity TblQuizTemplateDetail<br/><br/></summary>
/// <remarks>Mapped on table field: "tblQuizTemplateDetail"."QuestionNum".<br/>Table field type characteristics (type, precision, scale, length): SmallInt, 5, 0, 0.<br/>Table field behavior characteristics (is nullable, is PK, is identity): true, false, false</remarks>
public virtual Nullable<System.Int16> QuestionNum
{
get { return (Nullable<System.Int16>)GetValue((int)TblQuizTemplateDetailFieldIndex.QuestionNum, false); }
set { SetValue((int)TblQuizTemplateDetailFieldIndex.QuestionNum, value); }
}
/// <summary>The QuizTemplateId property of the Entity TblQuizTemplateDetail<br/><br/></summary>
/// <remarks>Mapped on table field: "tblQuizTemplateDetail"."QuizTemplateID".<br/>Table field type characteristics (type, precision, scale, length): VarWChar, 0, 0, 32.<br/>Table field behavior characteristics (is nullable, is PK, is identity): true, false, false</remarks>
public virtual System.String QuizTemplateId
{
get { return (System.String)GetValue((int)TblQuizTemplateDetailFieldIndex.QuizTemplateId, true); }
set { SetValue((int)TblQuizTemplateDetailFieldIndex.QuizTemplateId, value); }
}
/// <summary>The SubjectId property of the Entity TblQuizTemplateDetail<br/><br/></summary>
/// <remarks>Mapped on table field: "tblQuizTemplateDetail"."SubjectID".<br/>Table field type characteristics (type, precision, scale, length): VarWChar, 0, 0, 2.<br/>Table field behavior characteristics (is nullable, is PK, is identity): true, false, false</remarks>
public virtual System.String SubjectId
{
get { return (System.String)GetValue((int)TblQuizTemplateDetailFieldIndex.SubjectId, true); }
set { SetValue((int)TblQuizTemplateDetailFieldIndex.SubjectId, value); }
}
/// <summary>The UniqueId property of the Entity TblQuizTemplateDetail<br/><br/></summary>
/// <remarks>Mapped on table field: "tblQuizTemplateDetail"."UniqueID".<br/>Table field type characteristics (type, precision, scale, length): VarWChar, 0, 0, 32.<br/>Table field behavior characteristics (is nullable, is PK, is identity): false, true, false</remarks>
public virtual System.String UniqueId
{
get { return (System.String)GetValue((int)TblQuizTemplateDetailFieldIndex.UniqueId, true); }
set { SetValue((int)TblQuizTemplateDetailFieldIndex.UniqueId, value); }
}
/// <summary>Gets / sets related entity of type 'TblQuizTemplateEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..<br/><br/></summary>
[Browsable(false)]
public virtual TblQuizTemplateEntity TblQuizTemplate
{
get { return _tblQuizTemplate; }
set { SetSingleRelatedEntityNavigator(value, "TblQuizTemplate"); }
}
// __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode
// __LLBLGENPRO_USER_CODE_REGION_END
}
}
namespace Datalib
{
public enum TblQuizTemplateDetailFieldIndex
{
///<summary>Difficulty. </summary>
Difficulty,
///<summary>FieldId. </summary>
FieldId,
///<summary>Level. </summary>
Level,
///<summary>QuestionNum. </summary>
QuestionNum,
///<summary>QuizTemplateId. </summary>
QuizTemplateId,
///<summary>SubjectId. </summary>
SubjectId,
///<summary>UniqueId. </summary>
UniqueId,
/// <summary></summary>
AmountOfFields
}
}
namespace Datalib.RelationClasses
{
/// <summary>Implements the relations factory for the entity: TblQuizTemplateDetail. </summary>
public partial class TblQuizTemplateDetailRelations: RelationFactory
{
/// <summary>Returns a new IEntityRelation object, between TblQuizTemplateDetailEntity and TblQuizTemplateEntity over the m:1 relation they have, using the relation between the fields: TblQuizTemplateDetail.QuizTemplateId - TblQuizTemplate.QuizTemplateId</summary>
public virtual IEntityRelation TblQuizTemplateEntityUsingQuizTemplateId
{
get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "TblQuizTemplate", false, new[] { TblQuizTemplateFields.QuizTemplateId, TblQuizTemplateDetailFields.QuizTemplateId }); }
}
}
/// <summary>Static class which is used for providing relationship instances which are re-used internally for syncing</summary>
internal static class StaticTblQuizTemplateDetailRelations
{
internal static readonly IEntityRelation TblQuizTemplateEntityUsingQuizTemplateIdStatic = new TblQuizTemplateDetailRelations().TblQuizTemplateEntityUsingQuizTemplateId;
/// <summary>CTor</summary>
static StaticTblQuizTemplateDetailRelations() { }
}
}

View File

@@ -0,0 +1,304 @@
//////////////////////////////////////////////////////////////
// <auto-generated>This code was generated by LLBLGen Pro 5.7.</auto-generated>
//////////////////////////////////////////////////////////////
// Code is generated on:
// Code is generated using templates: SD.TemplateBindings.SharedTemplates
// Templates vendor: Solutions Design.
//////////////////////////////////////////////////////////////
using System;
using System.ComponentModel;
using System.Collections.Generic;
using System.Runtime.Serialization;
using System.Xml.Serialization;
using Datalib.HelperClasses;
using Datalib.FactoryClasses;
using Datalib.RelationClasses;
using SD.LLBLGen.Pro.ORMSupportClasses;
namespace Datalib.EntityClasses
{
// __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces
// __LLBLGENPRO_USER_CODE_REGION_END
/// <summary>Entity class which represents the entity 'TblQuizTemplate'.<br/><br/></summary>
[Serializable]
public partial class TblQuizTemplateEntity : CommonEntityBase
// __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces
// __LLBLGENPRO_USER_CODE_REGION_END
{
private EntityCollection<TblQuizEntity> _tblQuizzes;
private EntityCollection<TblQuizTemplateDetailEntity> _tblQuizTemplateDetails;
private TblTrainingTypeEntity _tblTrainingType;
// __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers
// __LLBLGENPRO_USER_CODE_REGION_END
private static TblQuizTemplateEntityStaticMetaData _staticMetaData = new TblQuizTemplateEntityStaticMetaData();
private static TblQuizTemplateRelations _relationsFactory = new TblQuizTemplateRelations();
/// <summary>All names of fields mapped onto a relation. Usable for in-memory filtering</summary>
public static partial class MemberNames
{
/// <summary>Member name TblTrainingType</summary>
public static readonly string TblTrainingType = "TblTrainingType";
/// <summary>Member name TblQuizzes</summary>
public static readonly string TblQuizzes = "TblQuizzes";
/// <summary>Member name TblQuizTemplateDetails</summary>
public static readonly string TblQuizTemplateDetails = "TblQuizTemplateDetails";
}
/// <summary>Static meta-data storage for navigator related information</summary>
protected class TblQuizTemplateEntityStaticMetaData : EntityStaticMetaDataBase
{
public TblQuizTemplateEntityStaticMetaData()
{
SetEntityCoreInfo("TblQuizTemplateEntity", InheritanceHierarchyType.None, false, (int)Datalib.EntityType.TblQuizTemplateEntity, typeof(TblQuizTemplateEntity), typeof(TblQuizTemplateEntityFactory), false);
AddNavigatorMetaData<TblQuizTemplateEntity, EntityCollection<TblQuizEntity>>("TblQuizzes", a => a._tblQuizzes, (a, b) => a._tblQuizzes = b, a => a.TblQuizzes, () => new TblQuizTemplateRelations().TblQuizEntityUsingQuizTemplateId, typeof(TblQuizEntity), (int)Datalib.EntityType.TblQuizEntity);
AddNavigatorMetaData<TblQuizTemplateEntity, EntityCollection<TblQuizTemplateDetailEntity>>("TblQuizTemplateDetails", a => a._tblQuizTemplateDetails, (a, b) => a._tblQuizTemplateDetails = b, a => a.TblQuizTemplateDetails, () => new TblQuizTemplateRelations().TblQuizTemplateDetailEntityUsingQuizTemplateId, typeof(TblQuizTemplateDetailEntity), (int)Datalib.EntityType.TblQuizTemplateDetailEntity);
AddNavigatorMetaData<TblQuizTemplateEntity, TblTrainingTypeEntity>("TblTrainingType", "TblQuizTemplates", (a, b) => a._tblTrainingType = b, a => a._tblTrainingType, (a, b) => a.TblTrainingType = b, Datalib.RelationClasses.StaticTblQuizTemplateRelations.TblTrainingTypeEntityUsingTrainingTypeIdStatic, ()=>new TblQuizTemplateRelations().TblTrainingTypeEntityUsingTrainingTypeId, null, new int[] { (int)TblQuizTemplateFieldIndex.TrainingTypeId }, null, true, (int)Datalib.EntityType.TblTrainingTypeEntity);
}
}
/// <summary>Static ctor</summary>
static TblQuizTemplateEntity()
{
}
/// <summary> CTor</summary>
public TblQuizTemplateEntity()
{
InitClassEmpty(null, null);
}
/// <summary> CTor</summary>
/// <param name="fields">Fields object to set as the fields for this entity.</param>
public TblQuizTemplateEntity(IEntityFields2 fields)
{
InitClassEmpty(null, fields);
}
/// <summary> CTor</summary>
/// <param name="validator">The custom validator object for this TblQuizTemplateEntity</param>
public TblQuizTemplateEntity(IValidator validator)
{
InitClassEmpty(validator, null);
}
/// <summary> CTor</summary>
/// <param name="quizTemplateId">PK value for TblQuizTemplate which data should be fetched into this TblQuizTemplate object</param>
public TblQuizTemplateEntity(System.String quizTemplateId) : this(quizTemplateId, null)
{
}
/// <summary> CTor</summary>
/// <param name="quizTemplateId">PK value for TblQuizTemplate which data should be fetched into this TblQuizTemplate object</param>
/// <param name="validator">The custom validator object for this TblQuizTemplateEntity</param>
public TblQuizTemplateEntity(System.String quizTemplateId, IValidator validator)
{
InitClassEmpty(validator, null);
this.QuizTemplateId = quizTemplateId;
}
/// <summary>Private CTor for deserialization</summary>
/// <param name="info"></param>
/// <param name="context"></param>
protected TblQuizTemplateEntity(SerializationInfo info, StreamingContext context) : base(info, context)
{
// __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
// __LLBLGENPRO_USER_CODE_REGION_END
}
/// <summary>Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'TblQuiz' to this entity.</summary>
/// <returns></returns>
public virtual IRelationPredicateBucket GetRelationInfoTblQuizzes() { return CreateRelationInfoForNavigator("TblQuizzes"); }
/// <summary>Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'TblQuizTemplateDetail' to this entity.</summary>
/// <returns></returns>
public virtual IRelationPredicateBucket GetRelationInfoTblQuizTemplateDetails() { return CreateRelationInfoForNavigator("TblQuizTemplateDetails"); }
/// <summary>Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'TblTrainingType' to this entity.</summary>
/// <returns></returns>
public virtual IRelationPredicateBucket GetRelationInfoTblTrainingType() { return CreateRelationInfoForNavigator("TblTrainingType"); }
/// <inheritdoc/>
protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; }
/// <summary>Initializes the class members</summary>
private void InitClassMembers()
{
PerformDependencyInjection();
// __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers
// __LLBLGENPRO_USER_CODE_REGION_END
OnInitClassMembersComplete();
}
/// <summary>Initializes the class with empty data, as if it is a new Entity.</summary>
/// <param name="validator">The validator object for this TblQuizTemplateEntity</param>
/// <param name="fields">Fields of this entity</param>
private void InitClassEmpty(IValidator validator, IEntityFields2 fields)
{
OnInitializing();
this.Fields = fields ?? CreateFields();
this.Validator = validator;
InitClassMembers();
// __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty
// __LLBLGENPRO_USER_CODE_REGION_END
OnInitialized();
}
/// <summary>The relations object holding all relations of this entity with other entity classes.</summary>
public static TblQuizTemplateRelations Relations { get { return _relationsFactory; } }
/// <summary>Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'TblQuiz' for this entity.</summary>
/// <returns>Ready to use IPrefetchPathElement2 implementation.</returns>
public static IPrefetchPathElement2 PrefetchPathTblQuizzes { get { return _staticMetaData.GetPrefetchPathElement("TblQuizzes", CommonEntityBase.CreateEntityCollection<TblQuizEntity>()); } }
/// <summary>Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'TblQuizTemplateDetail' for this entity.</summary>
/// <returns>Ready to use IPrefetchPathElement2 implementation.</returns>
public static IPrefetchPathElement2 PrefetchPathTblQuizTemplateDetails { get { return _staticMetaData.GetPrefetchPathElement("TblQuizTemplateDetails", CommonEntityBase.CreateEntityCollection<TblQuizTemplateDetailEntity>()); } }
/// <summary>Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'TblTrainingType' for this entity.</summary>
/// <returns>Ready to use IPrefetchPathElement2 implementation.</returns>
public static IPrefetchPathElement2 PrefetchPathTblTrainingType { get { return _staticMetaData.GetPrefetchPathElement("TblTrainingType", CommonEntityBase.CreateEntityCollection<TblTrainingTypeEntity>()); } }
/// <summary>The FooterDes property of the Entity TblQuizTemplate<br/><br/></summary>
/// <remarks>Mapped on table field: "tblQuizTemplate"."FooterDes".<br/>Table field type characteristics (type, precision, scale, length): LongVarWChar, 0, 0, 536870911.<br/>Table field behavior characteristics (is nullable, is PK, is identity): true, false, false</remarks>
public virtual System.String FooterDes
{
get { return (System.String)GetValue((int)TblQuizTemplateFieldIndex.FooterDes, true); }
set { SetValue((int)TblQuizTemplateFieldIndex.FooterDes, value); }
}
/// <summary>The HeaderDes property of the Entity TblQuizTemplate<br/><br/></summary>
/// <remarks>Mapped on table field: "tblQuizTemplate"."HeaderDes".<br/>Table field type characteristics (type, precision, scale, length): LongVarWChar, 0, 0, 536870911.<br/>Table field behavior characteristics (is nullable, is PK, is identity): true, false, false</remarks>
public virtual System.String HeaderDes
{
get { return (System.String)GetValue((int)TblQuizTemplateFieldIndex.HeaderDes, true); }
set { SetValue((int)TblQuizTemplateFieldIndex.HeaderDes, value); }
}
/// <summary>The QuizTemplateCode property of the Entity TblQuizTemplate<br/><br/></summary>
/// <remarks>Mapped on table field: "tblQuizTemplate"."QuizTemplateCode".<br/>Table field type characteristics (type, precision, scale, length): VarWChar, 0, 0, 255.<br/>Table field behavior characteristics (is nullable, is PK, is identity): true, false, false</remarks>
public virtual System.String QuizTemplateCode
{
get { return (System.String)GetValue((int)TblQuizTemplateFieldIndex.QuizTemplateCode, true); }
set { SetValue((int)TblQuizTemplateFieldIndex.QuizTemplateCode, value); }
}
/// <summary>The QuizTemplateId property of the Entity TblQuizTemplate<br/><br/></summary>
/// <remarks>Mapped on table field: "tblQuizTemplate"."QuizTemplateID".<br/>Table field type characteristics (type, precision, scale, length): VarWChar, 0, 0, 32.<br/>Table field behavior characteristics (is nullable, is PK, is identity): false, true, false</remarks>
public virtual System.String QuizTemplateId
{
get { return (System.String)GetValue((int)TblQuizTemplateFieldIndex.QuizTemplateId, true); }
set { SetValue((int)TblQuizTemplateFieldIndex.QuizTemplateId, value); }
}
/// <summary>The Renumering property of the Entity TblQuizTemplate<br/><br/></summary>
/// <remarks>Mapped on table field: "tblQuizTemplate"."Renumering".<br/>Table field type characteristics (type, precision, scale, length): Boolean, 0, 0, 2.<br/>Table field behavior characteristics (is nullable, is PK, is identity): false, false, false</remarks>
public virtual System.Boolean Renumering
{
get { return (System.Boolean)GetValue((int)TblQuizTemplateFieldIndex.Renumering, true); }
set { SetValue((int)TblQuizTemplateFieldIndex.Renumering, value); }
}
/// <summary>The TemplateQuizName property of the Entity TblQuizTemplate<br/><br/></summary>
/// <remarks>Mapped on table field: "tblQuizTemplate"."TemplateQuizName".<br/>Table field type characteristics (type, precision, scale, length): VarWChar, 0, 0, 255.<br/>Table field behavior characteristics (is nullable, is PK, is identity): true, false, false</remarks>
public virtual System.String TemplateQuizName
{
get { return (System.String)GetValue((int)TblQuizTemplateFieldIndex.TemplateQuizName, true); }
set { SetValue((int)TblQuizTemplateFieldIndex.TemplateQuizName, value); }
}
/// <summary>The TrainingTypeId property of the Entity TblQuizTemplate<br/><br/></summary>
/// <remarks>Mapped on table field: "tblQuizTemplate"."TrainingTypeID".<br/>Table field type characteristics (type, precision, scale, length): VarWChar, 0, 0, 2.<br/>Table field behavior characteristics (is nullable, is PK, is identity): false, false, false</remarks>
public virtual System.String TrainingTypeId
{
get { return (System.String)GetValue((int)TblQuizTemplateFieldIndex.TrainingTypeId, true); }
set { SetValue((int)TblQuizTemplateFieldIndex.TrainingTypeId, value); }
}
/// <summary>Gets the EntityCollection with the related entities of type 'TblQuizEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.<br/><br/></summary>
[TypeContainedAttribute(typeof(TblQuizEntity))]
public virtual EntityCollection<TblQuizEntity> TblQuizzes { get { return GetOrCreateEntityCollection<TblQuizEntity, TblQuizEntityFactory>("TblQuizTemplate", true, false, ref _tblQuizzes); } }
/// <summary>Gets the EntityCollection with the related entities of type 'TblQuizTemplateDetailEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.<br/><br/></summary>
[TypeContainedAttribute(typeof(TblQuizTemplateDetailEntity))]
public virtual EntityCollection<TblQuizTemplateDetailEntity> TblQuizTemplateDetails { get { return GetOrCreateEntityCollection<TblQuizTemplateDetailEntity, TblQuizTemplateDetailEntityFactory>("TblQuizTemplate", true, false, ref _tblQuizTemplateDetails); } }
/// <summary>Gets / sets related entity of type 'TblTrainingTypeEntity' which has to be set using a fetch action earlier. If no related entity is set for this property, null is returned..<br/><br/></summary>
[Browsable(false)]
public virtual TblTrainingTypeEntity TblTrainingType
{
get { return _tblTrainingType; }
set { SetSingleRelatedEntityNavigator(value, "TblTrainingType"); }
}
// __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode
// __LLBLGENPRO_USER_CODE_REGION_END
}
}
namespace Datalib
{
public enum TblQuizTemplateFieldIndex
{
///<summary>FooterDes. </summary>
FooterDes,
///<summary>HeaderDes. </summary>
HeaderDes,
///<summary>QuizTemplateCode. </summary>
QuizTemplateCode,
///<summary>QuizTemplateId. </summary>
QuizTemplateId,
///<summary>Renumering. </summary>
Renumering,
///<summary>TemplateQuizName. </summary>
TemplateQuizName,
///<summary>TrainingTypeId. </summary>
TrainingTypeId,
/// <summary></summary>
AmountOfFields
}
}
namespace Datalib.RelationClasses
{
/// <summary>Implements the relations factory for the entity: TblQuizTemplate. </summary>
public partial class TblQuizTemplateRelations: RelationFactory
{
/// <summary>Returns a new IEntityRelation object, between TblQuizTemplateEntity and TblQuizEntity over the 1:n relation they have, using the relation between the fields: TblQuizTemplate.QuizTemplateId - TblQuiz.QuizTemplateId</summary>
public virtual IEntityRelation TblQuizEntityUsingQuizTemplateId
{
get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "TblQuizzes", true, new[] { TblQuizTemplateFields.QuizTemplateId, TblQuizFields.QuizTemplateId }); }
}
/// <summary>Returns a new IEntityRelation object, between TblQuizTemplateEntity and TblQuizTemplateDetailEntity over the 1:n relation they have, using the relation between the fields: TblQuizTemplate.QuizTemplateId - TblQuizTemplateDetail.QuizTemplateId</summary>
public virtual IEntityRelation TblQuizTemplateDetailEntityUsingQuizTemplateId
{
get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "TblQuizTemplateDetails", true, new[] { TblQuizTemplateFields.QuizTemplateId, TblQuizTemplateDetailFields.QuizTemplateId }); }
}
/// <summary>Returns a new IEntityRelation object, between TblQuizTemplateEntity and TblTrainingTypeEntity over the m:1 relation they have, using the relation between the fields: TblQuizTemplate.TrainingTypeId - TblTrainingType.TrainingTypeId</summary>
public virtual IEntityRelation TblTrainingTypeEntityUsingTrainingTypeId
{
get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.ManyToOne, "TblTrainingType", false, new[] { TblTrainingTypeFields.TrainingTypeId, TblQuizTemplateFields.TrainingTypeId }); }
}
}
/// <summary>Static class which is used for providing relationship instances which are re-used internally for syncing</summary>
internal static class StaticTblQuizTemplateRelations
{
internal static readonly IEntityRelation TblQuizEntityUsingQuizTemplateIdStatic = new TblQuizTemplateRelations().TblQuizEntityUsingQuizTemplateId;
internal static readonly IEntityRelation TblQuizTemplateDetailEntityUsingQuizTemplateIdStatic = new TblQuizTemplateRelations().TblQuizTemplateDetailEntityUsingQuizTemplateId;
internal static readonly IEntityRelation TblTrainingTypeEntityUsingTrainingTypeIdStatic = new TblQuizTemplateRelations().TblTrainingTypeEntityUsingTrainingTypeId;
/// <summary>CTor</summary>
static StaticTblQuizTemplateRelations() { }
}
}

View File

@@ -0,0 +1,237 @@
//////////////////////////////////////////////////////////////
// <auto-generated>This code was generated by LLBLGen Pro 5.7.</auto-generated>
//////////////////////////////////////////////////////////////
// Code is generated on:
// Code is generated using templates: SD.TemplateBindings.SharedTemplates
// Templates vendor: Solutions Design.
//////////////////////////////////////////////////////////////
using System;
using System.ComponentModel;
using System.Collections.Generic;
using System.Runtime.Serialization;
using System.Xml.Serialization;
using Datalib.HelperClasses;
using Datalib.FactoryClasses;
using Datalib.RelationClasses;
using SD.LLBLGen.Pro.ORMSupportClasses;
namespace Datalib.EntityClasses
{
// __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces
// __LLBLGENPRO_USER_CODE_REGION_END
/// <summary>Entity class which represents the entity 'TblSubject'.<br/><br/></summary>
[Serializable]
public partial class TblSubjectEntity : CommonEntityBase
// __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces
// __LLBLGENPRO_USER_CODE_REGION_END
{
private EntityCollection<TblFieldEntity> _tblFields;
private EntityCollection<TblQuestionEntity> _tblQuestions;
// __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers
// __LLBLGENPRO_USER_CODE_REGION_END
private static TblSubjectEntityStaticMetaData _staticMetaData = new TblSubjectEntityStaticMetaData();
private static TblSubjectRelations _relationsFactory = new TblSubjectRelations();
/// <summary>All names of fields mapped onto a relation. Usable for in-memory filtering</summary>
public static partial class MemberNames
{
/// <summary>Member name TblFields</summary>
public static readonly string TblFields = "TblFields";
/// <summary>Member name TblQuestions</summary>
public static readonly string TblQuestions = "TblQuestions";
}
/// <summary>Static meta-data storage for navigator related information</summary>
protected class TblSubjectEntityStaticMetaData : EntityStaticMetaDataBase
{
public TblSubjectEntityStaticMetaData()
{
SetEntityCoreInfo("TblSubjectEntity", InheritanceHierarchyType.None, false, (int)Datalib.EntityType.TblSubjectEntity, typeof(TblSubjectEntity), typeof(TblSubjectEntityFactory), false);
AddNavigatorMetaData<TblSubjectEntity, EntityCollection<TblFieldEntity>>("TblFields", a => a._tblFields, (a, b) => a._tblFields = b, a => a.TblFields, () => new TblSubjectRelations().TblFieldEntityUsingSubjectId, typeof(TblFieldEntity), (int)Datalib.EntityType.TblFieldEntity);
AddNavigatorMetaData<TblSubjectEntity, EntityCollection<TblQuestionEntity>>("TblQuestions", a => a._tblQuestions, (a, b) => a._tblQuestions = b, a => a.TblQuestions, () => new TblSubjectRelations().TblQuestionEntityUsingSubjectId, typeof(TblQuestionEntity), (int)Datalib.EntityType.TblQuestionEntity);
}
}
/// <summary>Static ctor</summary>
static TblSubjectEntity()
{
}
/// <summary> CTor</summary>
public TblSubjectEntity()
{
InitClassEmpty(null, null);
}
/// <summary> CTor</summary>
/// <param name="fields">Fields object to set as the fields for this entity.</param>
public TblSubjectEntity(IEntityFields2 fields)
{
InitClassEmpty(null, fields);
}
/// <summary> CTor</summary>
/// <param name="validator">The custom validator object for this TblSubjectEntity</param>
public TblSubjectEntity(IValidator validator)
{
InitClassEmpty(validator, null);
}
/// <summary> CTor</summary>
/// <param name="subjectId">PK value for TblSubject which data should be fetched into this TblSubject object</param>
public TblSubjectEntity(System.String subjectId) : this(subjectId, null)
{
}
/// <summary> CTor</summary>
/// <param name="subjectId">PK value for TblSubject which data should be fetched into this TblSubject object</param>
/// <param name="validator">The custom validator object for this TblSubjectEntity</param>
public TblSubjectEntity(System.String subjectId, IValidator validator)
{
InitClassEmpty(validator, null);
this.SubjectId = subjectId;
}
/// <summary>Private CTor for deserialization</summary>
/// <param name="info"></param>
/// <param name="context"></param>
protected TblSubjectEntity(SerializationInfo info, StreamingContext context) : base(info, context)
{
// __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
// __LLBLGENPRO_USER_CODE_REGION_END
}
/// <summary>Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'TblField' to this entity.</summary>
/// <returns></returns>
public virtual IRelationPredicateBucket GetRelationInfoTblFields() { return CreateRelationInfoForNavigator("TblFields"); }
/// <summary>Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'TblQuestion' to this entity.</summary>
/// <returns></returns>
public virtual IRelationPredicateBucket GetRelationInfoTblQuestions() { return CreateRelationInfoForNavigator("TblQuestions"); }
/// <inheritdoc/>
protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; }
/// <summary>Initializes the class members</summary>
private void InitClassMembers()
{
PerformDependencyInjection();
// __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers
// __LLBLGENPRO_USER_CODE_REGION_END
OnInitClassMembersComplete();
}
/// <summary>Initializes the class with empty data, as if it is a new Entity.</summary>
/// <param name="validator">The validator object for this TblSubjectEntity</param>
/// <param name="fields">Fields of this entity</param>
private void InitClassEmpty(IValidator validator, IEntityFields2 fields)
{
OnInitializing();
this.Fields = fields ?? CreateFields();
this.Validator = validator;
InitClassMembers();
// __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty
// __LLBLGENPRO_USER_CODE_REGION_END
OnInitialized();
}
/// <summary>The relations object holding all relations of this entity with other entity classes.</summary>
public static TblSubjectRelations Relations { get { return _relationsFactory; } }
/// <summary>Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'TblField' for this entity.</summary>
/// <returns>Ready to use IPrefetchPathElement2 implementation.</returns>
public static IPrefetchPathElement2 PrefetchPathTblFields { get { return _staticMetaData.GetPrefetchPathElement("TblFields", CommonEntityBase.CreateEntityCollection<TblFieldEntity>()); } }
/// <summary>Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'TblQuestion' for this entity.</summary>
/// <returns>Ready to use IPrefetchPathElement2 implementation.</returns>
public static IPrefetchPathElement2 PrefetchPathTblQuestions { get { return _staticMetaData.GetPrefetchPathElement("TblQuestions", CommonEntityBase.CreateEntityCollection<TblQuestionEntity>()); } }
/// <summary>The SubjectDes property of the Entity TblSubject<br/><br/></summary>
/// <remarks>Mapped on table field: "tblSubjects"."SubjectDes".<br/>Table field type characteristics (type, precision, scale, length): LongVarWChar, 0, 0, 536870911.<br/>Table field behavior characteristics (is nullable, is PK, is identity): true, false, false</remarks>
public virtual System.String SubjectDes
{
get { return (System.String)GetValue((int)TblSubjectFieldIndex.SubjectDes, true); }
set { SetValue((int)TblSubjectFieldIndex.SubjectDes, value); }
}
/// <summary>The SubjectId property of the Entity TblSubject<br/><br/></summary>
/// <remarks>Mapped on table field: "tblSubjects"."SubjectID".<br/>Table field type characteristics (type, precision, scale, length): VarWChar, 0, 0, 2.<br/>Table field behavior characteristics (is nullable, is PK, is identity): false, true, false</remarks>
public virtual System.String SubjectId
{
get { return (System.String)GetValue((int)TblSubjectFieldIndex.SubjectId, true); }
set { SetValue((int)TblSubjectFieldIndex.SubjectId, value); }
}
/// <summary>The SubjectName property of the Entity TblSubject<br/><br/></summary>
/// <remarks>Mapped on table field: "tblSubjects"."SubjectName".<br/>Table field type characteristics (type, precision, scale, length): VarWChar, 0, 0, 50.<br/>Table field behavior characteristics (is nullable, is PK, is identity): true, false, false</remarks>
public virtual System.String SubjectName
{
get { return (System.String)GetValue((int)TblSubjectFieldIndex.SubjectName, true); }
set { SetValue((int)TblSubjectFieldIndex.SubjectName, value); }
}
/// <summary>Gets the EntityCollection with the related entities of type 'TblFieldEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.<br/><br/></summary>
[TypeContainedAttribute(typeof(TblFieldEntity))]
public virtual EntityCollection<TblFieldEntity> TblFields { get { return GetOrCreateEntityCollection<TblFieldEntity, TblFieldEntityFactory>("TblSubject", true, false, ref _tblFields); } }
/// <summary>Gets the EntityCollection with the related entities of type 'TblQuestionEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.<br/><br/></summary>
[TypeContainedAttribute(typeof(TblQuestionEntity))]
public virtual EntityCollection<TblQuestionEntity> TblQuestions { get { return GetOrCreateEntityCollection<TblQuestionEntity, TblQuestionEntityFactory>("TblSubject", true, false, ref _tblQuestions); } }
// __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode
// __LLBLGENPRO_USER_CODE_REGION_END
}
}
namespace Datalib
{
public enum TblSubjectFieldIndex
{
///<summary>SubjectDes. </summary>
SubjectDes,
///<summary>SubjectId. </summary>
SubjectId,
///<summary>SubjectName. </summary>
SubjectName,
/// <summary></summary>
AmountOfFields
}
}
namespace Datalib.RelationClasses
{
/// <summary>Implements the relations factory for the entity: TblSubject. </summary>
public partial class TblSubjectRelations: RelationFactory
{
/// <summary>Returns a new IEntityRelation object, between TblSubjectEntity and TblFieldEntity over the 1:n relation they have, using the relation between the fields: TblSubject.SubjectId - TblField.SubjectId</summary>
public virtual IEntityRelation TblFieldEntityUsingSubjectId
{
get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "TblFields", true, new[] { TblSubjectFields.SubjectId, TblFieldFields.SubjectId }); }
}
/// <summary>Returns a new IEntityRelation object, between TblSubjectEntity and TblQuestionEntity over the 1:n relation they have, using the relation between the fields: TblSubject.SubjectId - TblQuestion.SubjectId</summary>
public virtual IEntityRelation TblQuestionEntityUsingSubjectId
{
get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "TblQuestions", true, new[] { TblSubjectFields.SubjectId, TblQuestionFields.SubjectId }); }
}
}
/// <summary>Static class which is used for providing relationship instances which are re-used internally for syncing</summary>
internal static class StaticTblSubjectRelations
{
internal static readonly IEntityRelation TblFieldEntityUsingSubjectIdStatic = new TblSubjectRelations().TblFieldEntityUsingSubjectId;
internal static readonly IEntityRelation TblQuestionEntityUsingSubjectIdStatic = new TblSubjectRelations().TblQuestionEntityUsingSubjectId;
/// <summary>CTor</summary>
static StaticTblSubjectRelations() { }
}
}

View File

@@ -0,0 +1,204 @@
//////////////////////////////////////////////////////////////
// <auto-generated>This code was generated by LLBLGen Pro 5.7.</auto-generated>
//////////////////////////////////////////////////////////////
// Code is generated on:
// Code is generated using templates: SD.TemplateBindings.SharedTemplates
// Templates vendor: Solutions Design.
//////////////////////////////////////////////////////////////
using System;
using System.ComponentModel;
using System.Collections.Generic;
using System.Runtime.Serialization;
using System.Xml.Serialization;
using Datalib.HelperClasses;
using Datalib.FactoryClasses;
using Datalib.RelationClasses;
using SD.LLBLGen.Pro.ORMSupportClasses;
namespace Datalib.EntityClasses
{
// __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces
// __LLBLGENPRO_USER_CODE_REGION_END
/// <summary>Entity class which represents the entity 'TblTrainingType'.<br/><br/></summary>
[Serializable]
public partial class TblTrainingTypeEntity : CommonEntityBase
// __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces
// __LLBLGENPRO_USER_CODE_REGION_END
{
private EntityCollection<TblQuizTemplateEntity> _tblQuizTemplates;
// __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers
// __LLBLGENPRO_USER_CODE_REGION_END
private static TblTrainingTypeEntityStaticMetaData _staticMetaData = new TblTrainingTypeEntityStaticMetaData();
private static TblTrainingTypeRelations _relationsFactory = new TblTrainingTypeRelations();
/// <summary>All names of fields mapped onto a relation. Usable for in-memory filtering</summary>
public static partial class MemberNames
{
/// <summary>Member name TblQuizTemplates</summary>
public static readonly string TblQuizTemplates = "TblQuizTemplates";
}
/// <summary>Static meta-data storage for navigator related information</summary>
protected class TblTrainingTypeEntityStaticMetaData : EntityStaticMetaDataBase
{
public TblTrainingTypeEntityStaticMetaData()
{
SetEntityCoreInfo("TblTrainingTypeEntity", InheritanceHierarchyType.None, false, (int)Datalib.EntityType.TblTrainingTypeEntity, typeof(TblTrainingTypeEntity), typeof(TblTrainingTypeEntityFactory), false);
AddNavigatorMetaData<TblTrainingTypeEntity, EntityCollection<TblQuizTemplateEntity>>("TblQuizTemplates", a => a._tblQuizTemplates, (a, b) => a._tblQuizTemplates = b, a => a.TblQuizTemplates, () => new TblTrainingTypeRelations().TblQuizTemplateEntityUsingTrainingTypeId, typeof(TblQuizTemplateEntity), (int)Datalib.EntityType.TblQuizTemplateEntity);
}
}
/// <summary>Static ctor</summary>
static TblTrainingTypeEntity()
{
}
/// <summary> CTor</summary>
public TblTrainingTypeEntity()
{
InitClassEmpty(null, null);
}
/// <summary> CTor</summary>
/// <param name="fields">Fields object to set as the fields for this entity.</param>
public TblTrainingTypeEntity(IEntityFields2 fields)
{
InitClassEmpty(null, fields);
}
/// <summary> CTor</summary>
/// <param name="validator">The custom validator object for this TblTrainingTypeEntity</param>
public TblTrainingTypeEntity(IValidator validator)
{
InitClassEmpty(validator, null);
}
/// <summary> CTor</summary>
/// <param name="trainingTypeId">PK value for TblTrainingType which data should be fetched into this TblTrainingType object</param>
public TblTrainingTypeEntity(System.String trainingTypeId) : this(trainingTypeId, null)
{
}
/// <summary> CTor</summary>
/// <param name="trainingTypeId">PK value for TblTrainingType which data should be fetched into this TblTrainingType object</param>
/// <param name="validator">The custom validator object for this TblTrainingTypeEntity</param>
public TblTrainingTypeEntity(System.String trainingTypeId, IValidator validator)
{
InitClassEmpty(validator, null);
this.TrainingTypeId = trainingTypeId;
}
/// <summary>Private CTor for deserialization</summary>
/// <param name="info"></param>
/// <param name="context"></param>
protected TblTrainingTypeEntity(SerializationInfo info, StreamingContext context) : base(info, context)
{
// __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
// __LLBLGENPRO_USER_CODE_REGION_END
}
/// <summary>Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'TblQuizTemplate' to this entity.</summary>
/// <returns></returns>
public virtual IRelationPredicateBucket GetRelationInfoTblQuizTemplates() { return CreateRelationInfoForNavigator("TblQuizTemplates"); }
/// <inheritdoc/>
protected override EntityStaticMetaDataBase GetEntityStaticMetaData() { return _staticMetaData; }
/// <summary>Initializes the class members</summary>
private void InitClassMembers()
{
PerformDependencyInjection();
// __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers
// __LLBLGENPRO_USER_CODE_REGION_END
OnInitClassMembersComplete();
}
/// <summary>Initializes the class with empty data, as if it is a new Entity.</summary>
/// <param name="validator">The validator object for this TblTrainingTypeEntity</param>
/// <param name="fields">Fields of this entity</param>
private void InitClassEmpty(IValidator validator, IEntityFields2 fields)
{
OnInitializing();
this.Fields = fields ?? CreateFields();
this.Validator = validator;
InitClassMembers();
// __LLBLGENPRO_USER_CODE_REGION_START InitClassEmpty
// __LLBLGENPRO_USER_CODE_REGION_END
OnInitialized();
}
/// <summary>The relations object holding all relations of this entity with other entity classes.</summary>
public static TblTrainingTypeRelations Relations { get { return _relationsFactory; } }
/// <summary>Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'TblQuizTemplate' for this entity.</summary>
/// <returns>Ready to use IPrefetchPathElement2 implementation.</returns>
public static IPrefetchPathElement2 PrefetchPathTblQuizTemplates { get { return _staticMetaData.GetPrefetchPathElement("TblQuizTemplates", CommonEntityBase.CreateEntityCollection<TblQuizTemplateEntity>()); } }
/// <summary>The TrainingTypeId property of the Entity TblTrainingType<br/><br/></summary>
/// <remarks>Mapped on table field: "tblTrainingTypes"."TrainingTypeID".<br/>Table field type characteristics (type, precision, scale, length): VarWChar, 0, 0, 2.<br/>Table field behavior characteristics (is nullable, is PK, is identity): false, true, false</remarks>
public virtual System.String TrainingTypeId
{
get { return (System.String)GetValue((int)TblTrainingTypeFieldIndex.TrainingTypeId, true); }
set { SetValue((int)TblTrainingTypeFieldIndex.TrainingTypeId, value); }
}
/// <summary>The TrainingTypeName property of the Entity TblTrainingType<br/><br/></summary>
/// <remarks>Mapped on table field: "tblTrainingTypes"."TrainingTypeName".<br/>Table field type characteristics (type, precision, scale, length): VarWChar, 0, 0, 255.<br/>Table field behavior characteristics (is nullable, is PK, is identity): true, false, false</remarks>
public virtual System.String TrainingTypeName
{
get { return (System.String)GetValue((int)TblTrainingTypeFieldIndex.TrainingTypeName, true); }
set { SetValue((int)TblTrainingTypeFieldIndex.TrainingTypeName, value); }
}
/// <summary>Gets the EntityCollection with the related entities of type 'TblQuizTemplateEntity' which are related to this entity via a relation of type '1:n'. If the EntityCollection hasn't been fetched yet, the collection returned will be empty.<br/><br/></summary>
[TypeContainedAttribute(typeof(TblQuizTemplateEntity))]
public virtual EntityCollection<TblQuizTemplateEntity> TblQuizTemplates { get { return GetOrCreateEntityCollection<TblQuizTemplateEntity, TblQuizTemplateEntityFactory>("TblTrainingType", true, false, ref _tblQuizTemplates); } }
// __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode
// __LLBLGENPRO_USER_CODE_REGION_END
}
}
namespace Datalib
{
public enum TblTrainingTypeFieldIndex
{
///<summary>TrainingTypeId. </summary>
TrainingTypeId,
///<summary>TrainingTypeName. </summary>
TrainingTypeName,
/// <summary></summary>
AmountOfFields
}
}
namespace Datalib.RelationClasses
{
/// <summary>Implements the relations factory for the entity: TblTrainingType. </summary>
public partial class TblTrainingTypeRelations: RelationFactory
{
/// <summary>Returns a new IEntityRelation object, between TblTrainingTypeEntity and TblQuizTemplateEntity over the 1:n relation they have, using the relation between the fields: TblTrainingType.TrainingTypeId - TblQuizTemplate.TrainingTypeId</summary>
public virtual IEntityRelation TblQuizTemplateEntityUsingTrainingTypeId
{
get { return ModelInfoProviderSingleton.GetInstance().CreateRelation(RelationType.OneToMany, "TblQuizTemplates", true, new[] { TblTrainingTypeFields.TrainingTypeId, TblQuizTemplateFields.TrainingTypeId }); }
}
}
/// <summary>Static class which is used for providing relationship instances which are re-used internally for syncing</summary>
internal static class StaticTblTrainingTypeRelations
{
internal static readonly IEntityRelation TblQuizTemplateEntityUsingTrainingTypeIdStatic = new TblTrainingTypeRelations().TblQuizTemplateEntityUsingTrainingTypeId;
/// <summary>CTor</summary>
static StaticTblTrainingTypeRelations() { }
}
}

View File

@@ -0,0 +1,280 @@
//////////////////////////////////////////////////////////////
// <auto-generated>This code was generated by LLBLGen Pro 5.7.</auto-generated>
//////////////////////////////////////////////////////////////
// Code is generated on:
// Code is generated using templates: SD.TemplateBindings.SharedTemplates
// Templates vendor: Solutions Design.
//////////////////////////////////////////////////////////////
using System;
using System.Collections.Generic;
using Datalib.EntityClasses;
using Datalib.HelperClasses;
using Datalib.RelationClasses;
using SD.LLBLGen.Pro.ORMSupportClasses;
namespace Datalib.FactoryClasses
{
// __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces
// __LLBLGENPRO_USER_CODE_REGION_END
/// <summary>general base class for the generated factories</summary>
[Serializable]
public partial class EntityFactoryBase2<TEntity> : EntityFactoryCore2
where TEntity : EntityBase2, IEntity2
{
private readonly Datalib.EntityType _typeOfEntity;
private readonly bool _isInHierarchy;
/// <summary>CTor</summary>
/// <param name="entityName">Name of the entity.</param>
/// <param name="typeOfEntity">The type of entity.</param>
/// <param name="isInHierarchy">If true, the entity of this factory is in an inheritance hierarchy, false otherwise</param>
public EntityFactoryBase2(string entityName, Datalib.EntityType typeOfEntity, bool isInHierarchy) : base(entityName)
{
_typeOfEntity = typeOfEntity;
_isInHierarchy = isInHierarchy;
}
/// <inheritdoc/>
public override IEntityFields2 CreateFields() { return ModelInfoProviderSingleton.GetInstance().GetEntityFields(this.ForEntityName); }
/// <inheritdoc/>
public override IEntity2 CreateEntityFromEntityTypeValue(int entityTypeValue) { return GeneralEntityFactory.Create((Datalib.EntityType)entityTypeValue); }
/// <inheritdoc/>
public override IRelationCollection CreateHierarchyRelations(string objectAlias) { return ModelInfoProviderSingleton.GetInstance().GetHierarchyRelations(this.ForEntityName, objectAlias); }
/// <inheritdoc/>
public override IEntityFactory2 GetEntityFactory(object[] fieldValues, Dictionary<string, int> entityFieldStartIndexesPerEntity)
{
return (IEntityFactory2)ModelInfoProviderSingleton.GetInstance().GetEntityFactory(this.ForEntityName, fieldValues, entityFieldStartIndexesPerEntity) ?? this;
}
/// <inheritdoc/>
public override IPredicateExpression GetEntityTypeFilter(bool negate, string objectAlias) { return ModelInfoProviderSingleton.GetInstance().GetEntityTypeFilter(this.ForEntityName, objectAlias, negate); }
/// <inheritdoc/>
public override IEntityCollection2 CreateEntityCollection() { return new EntityCollection<TEntity>(this); }
/// <inheritdoc/>
public override IEntityFields2 CreateHierarchyFields()
{
return _isInHierarchy ? new EntityFields2(ModelInfoProviderSingleton.GetInstance().GetHierarchyFields(this.ForEntityName), ModelInfoProviderSingleton.GetInstance(), null) : base.CreateHierarchyFields();
}
/// <inheritdoc/>
protected override Type ForEntityType { get { return typeof(TEntity); } }
}
/// <summary>Factory to create new, empty TblFieldEntity objects.</summary>
[Serializable]
public partial class TblFieldEntityFactory : EntityFactoryBase2<TblFieldEntity>
{
/// <summary>CTor</summary>
public TblFieldEntityFactory() : base("TblFieldEntity", Datalib.EntityType.TblFieldEntity, false) { }
/// <inheritdoc/>
protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new TblFieldEntity(fields); }
}
/// <summary>Factory to create new, empty TblQuestionEntity objects.</summary>
[Serializable]
public partial class TblQuestionEntityFactory : EntityFactoryBase2<TblQuestionEntity>
{
/// <summary>CTor</summary>
public TblQuestionEntityFactory() : base("TblQuestionEntity", Datalib.EntityType.TblQuestionEntity, false) { }
/// <inheritdoc/>
protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new TblQuestionEntity(fields); }
}
/// <summary>Factory to create new, empty TblQuizEntity objects.</summary>
[Serializable]
public partial class TblQuizEntityFactory : EntityFactoryBase2<TblQuizEntity>
{
/// <summary>CTor</summary>
public TblQuizEntityFactory() : base("TblQuizEntity", Datalib.EntityType.TblQuizEntity, false) { }
/// <inheritdoc/>
protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new TblQuizEntity(fields); }
}
/// <summary>Factory to create new, empty TblQuizQuestionEntity objects.</summary>
[Serializable]
public partial class TblQuizQuestionEntityFactory : EntityFactoryBase2<TblQuizQuestionEntity>
{
/// <summary>CTor</summary>
public TblQuizQuestionEntityFactory() : base("TblQuizQuestionEntity", Datalib.EntityType.TblQuizQuestionEntity, false) { }
/// <inheritdoc/>
protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new TblQuizQuestionEntity(fields); }
}
/// <summary>Factory to create new, empty TblQuizTemplateEntity objects.</summary>
[Serializable]
public partial class TblQuizTemplateEntityFactory : EntityFactoryBase2<TblQuizTemplateEntity>
{
/// <summary>CTor</summary>
public TblQuizTemplateEntityFactory() : base("TblQuizTemplateEntity", Datalib.EntityType.TblQuizTemplateEntity, false) { }
/// <inheritdoc/>
protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new TblQuizTemplateEntity(fields); }
}
/// <summary>Factory to create new, empty TblQuizTemplateDetailEntity objects.</summary>
[Serializable]
public partial class TblQuizTemplateDetailEntityFactory : EntityFactoryBase2<TblQuizTemplateDetailEntity>
{
/// <summary>CTor</summary>
public TblQuizTemplateDetailEntityFactory() : base("TblQuizTemplateDetailEntity", Datalib.EntityType.TblQuizTemplateDetailEntity, false) { }
/// <inheritdoc/>
protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new TblQuizTemplateDetailEntity(fields); }
}
/// <summary>Factory to create new, empty TblSubjectEntity objects.</summary>
[Serializable]
public partial class TblSubjectEntityFactory : EntityFactoryBase2<TblSubjectEntity>
{
/// <summary>CTor</summary>
public TblSubjectEntityFactory() : base("TblSubjectEntity", Datalib.EntityType.TblSubjectEntity, false) { }
/// <inheritdoc/>
protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new TblSubjectEntity(fields); }
}
/// <summary>Factory to create new, empty TblTrainingTypeEntity objects.</summary>
[Serializable]
public partial class TblTrainingTypeEntityFactory : EntityFactoryBase2<TblTrainingTypeEntity>
{
/// <summary>CTor</summary>
public TblTrainingTypeEntityFactory() : base("TblTrainingTypeEntity", Datalib.EntityType.TblTrainingTypeEntity, false) { }
/// <inheritdoc/>
protected override IEntity2 CreateImpl(IEntityFields2 fields) { return new TblTrainingTypeEntity(fields); }
}
/// <summary>Factory to create new, empty Entity objects based on the entity type specified. Uses entity specific factory objects</summary>
[Serializable]
public partial class GeneralEntityFactory
{
/// <summary>Creates a new, empty Entity object of the type specified</summary>
/// <param name="entityTypeToCreate">The entity type to create.</param>
/// <returns>A new, empty Entity object.</returns>
public static IEntity2 Create(Datalib.EntityType entityTypeToCreate)
{
var factoryToUse = EntityFactoryFactory.GetFactory(entityTypeToCreate);
IEntity2 toReturn = null;
if(factoryToUse != null)
{
toReturn = factoryToUse.Create();
}
return toReturn;
}
}
/// <summary>Class which is used to obtain the entity factory based on the .NET type of the entity. </summary>
[Serializable]
public static class EntityFactoryFactory
{
private static Dictionary<Type, IEntityFactory2> _factoryPerType = new Dictionary<Type, IEntityFactory2>();
/// <summary>Initializes the <see cref="EntityFactoryFactory"/> class.</summary>
static EntityFactoryFactory()
{
foreach(int entityTypeValue in Enum.GetValues(typeof(Datalib.EntityType)))
{
var factory = GetFactory((Datalib.EntityType)entityTypeValue);
_factoryPerType.Add(factory.ForEntityType ?? factory.Create().GetType(), factory);
}
}
/// <summary>Gets the factory of the entity with the .NET type specified</summary>
/// <param name="typeOfEntity">The type of entity.</param>
/// <returns>factory to use or null if not found</returns>
public static IEntityFactory2 GetFactory(Type typeOfEntity) { return _factoryPerType.GetValue(typeOfEntity); }
/// <summary>Gets the factory of the entity with the Datalib.EntityType specified</summary>
/// <param name="typeOfEntity">The type of entity.</param>
/// <returns>factory to use or null if not found</returns>
public static IEntityFactory2 GetFactory(Datalib.EntityType typeOfEntity)
{
switch(typeOfEntity)
{
case Datalib.EntityType.TblFieldEntity:
return new TblFieldEntityFactory();
case Datalib.EntityType.TblQuestionEntity:
return new TblQuestionEntityFactory();
case Datalib.EntityType.TblQuizEntity:
return new TblQuizEntityFactory();
case Datalib.EntityType.TblQuizQuestionEntity:
return new TblQuizQuestionEntityFactory();
case Datalib.EntityType.TblQuizTemplateEntity:
return new TblQuizTemplateEntityFactory();
case Datalib.EntityType.TblQuizTemplateDetailEntity:
return new TblQuizTemplateDetailEntityFactory();
case Datalib.EntityType.TblSubjectEntity:
return new TblSubjectEntityFactory();
case Datalib.EntityType.TblTrainingTypeEntity:
return new TblTrainingTypeEntityFactory();
default:
return null;
}
}
}
/// <summary>Element creator for creating project elements from somewhere else, like inside Linq providers.</summary>
public class ElementCreator : ElementCreatorBase, IElementCreator2
{
/// <summary>Gets the factory of the Entity type with the Datalib.EntityType value passed in</summary>
/// <param name="entityTypeValue">The entity type value.</param>
/// <returns>the entity factory of the entity type or null if not found</returns>
public IEntityFactory2 GetFactory(int entityTypeValue) { return (IEntityFactory2)this.GetFactoryImpl(entityTypeValue); }
/// <summary>Gets the factory of the Entity type with the .NET type passed in</summary>
/// <param name="typeOfEntity">The type of entity.</param>
/// <returns>the entity factory of the entity type or null if not found</returns>
public IEntityFactory2 GetFactory(Type typeOfEntity) { return (IEntityFactory2)this.GetFactoryImpl(typeOfEntity); }
/// <summary>Creates a new resultset fields object with the number of field slots reserved as specified</summary>
/// <param name="numberOfFields">The number of fields.</param>
/// <returns>ready to use resultsetfields object</returns>
public IEntityFields2 CreateResultsetFields(int numberOfFields) { return new ResultsetFields(numberOfFields); }
/// <inheritdoc/>
public override IInheritanceInfoProvider ObtainInheritanceInfoProviderInstance() { return ModelInfoProviderSingleton.GetInstance(); }
/// <inheritdoc/>
public override IDynamicRelation CreateDynamicRelation(DerivedTableDefinition leftOperand) { return new DynamicRelation(leftOperand); }
/// <inheritdoc/>
public override IDynamicRelation CreateDynamicRelation(DerivedTableDefinition leftOperand, JoinHint joinType, DerivedTableDefinition rightOperand, IPredicate onClause)
{
return new DynamicRelation(leftOperand, joinType, rightOperand, onClause);
}
/// <inheritdoc/>
public override IDynamicRelation CreateDynamicRelation(IEntityFieldCore leftOperand, JoinHint joinType, DerivedTableDefinition rightOperand, string aliasLeftOperand, IPredicate onClause)
{
return new DynamicRelation(leftOperand, joinType, rightOperand, aliasLeftOperand, onClause);
}
/// <inheritdoc/>
public override IDynamicRelation CreateDynamicRelation(DerivedTableDefinition leftOperand, JoinHint joinType, string rightOperandEntityName, string aliasRightOperand, IPredicate onClause)
{
return new DynamicRelation(leftOperand, joinType, (Datalib.EntityType)Enum.Parse(typeof(Datalib.EntityType), rightOperandEntityName, false), aliasRightOperand, onClause);
}
/// <inheritdoc/>
public override IDynamicRelation CreateDynamicRelation(string leftOperandEntityName, JoinHint joinType, string rightOperandEntityName, string aliasLeftOperand, string aliasRightOperand, IPredicate onClause)
{
return new DynamicRelation((Datalib.EntityType)Enum.Parse(typeof(Datalib.EntityType), leftOperandEntityName, false), joinType, (Datalib.EntityType)Enum.Parse(typeof(Datalib.EntityType), rightOperandEntityName, false), aliasLeftOperand, aliasRightOperand, onClause);
}
/// <inheritdoc/>
public override IDynamicRelation CreateDynamicRelation(IEntityFieldCore leftOperand, JoinHint joinType, string rightOperandEntityName, string aliasLeftOperand, string aliasRightOperand, IPredicate onClause)
{
return new DynamicRelation(leftOperand, joinType, (Datalib.EntityType)Enum.Parse(typeof(Datalib.EntityType), rightOperandEntityName, false), aliasLeftOperand, aliasRightOperand, onClause);
}
/// <inheritdoc/>
protected override IEntityFactoryCore GetFactoryImpl(int entityTypeValue) { return EntityFactoryFactory.GetFactory((Datalib.EntityType)entityTypeValue); }
/// <inheritdoc/>
protected override IEntityFactoryCore GetFactoryImpl(Type typeOfEntity) { return EntityFactoryFactory.GetFactory(typeOfEntity); }
}
}

View File

@@ -0,0 +1,28 @@
//////////////////////////////////////////////////////////////
// <auto-generated>This code was generated by LLBLGen Pro 5.7.</auto-generated>
//////////////////////////////////////////////////////////////
// Code is generated on:
// Code is generated using templates: SD.TemplateBindings.SharedTemplates
// Templates vendor: Solutions Design.
//////////////////////////////////////////////////////////////
using System;
using Datalib.HelperClasses;
using SD.LLBLGen.Pro.ORMSupportClasses;
namespace Datalib.FactoryClasses
{
/// <summary>Factory class for IEntityField2 instances, used in IEntityFields2 instances. For backwards compatibility</summary>
public static partial class EntityFieldFactory
{
/// <summary>Creates a new IEntityField2 instance for usage in the EntityFields object for the entity related to the field index specified.</summary>
/// <param name="fieldIndex">The field which IEntityField2 instance should be created</param>
/// <returns>The IEntityField2 instance for the field specified in fieldIndex</returns>
public static IEntityField2 Create(Enum fieldIndex) { return new EntityField2(ModelInfoProviderSingleton.GetInstance().GetFieldInfo(fieldIndex)); }
/// <summary>Creates a new IEntityField2 instance, which represents the field objectName.fieldName</summary>
/// <param name="objectName">the name of the object the field belongs to, like CustomerEntity or OrdersTypedView</param>
/// <param name="fieldName">the name of the field to create</param>
public static IEntityField2 Create(string objectName, string fieldName) { return new EntityField2(ModelInfoProviderSingleton.GetInstance().GetFieldInfo(objectName, fieldName)); }
}
}

View File

@@ -0,0 +1,27 @@
//////////////////////////////////////////////////////////////
// <auto-generated>This code was generated by LLBLGen Pro 5.7.</auto-generated>
//////////////////////////////////////////////////////////////
// Code is generated on:
// Code is generated using templates: SD.TemplateBindings.SharedTemplates
// Templates vendor: Solutions Design.
//////////////////////////////////////////////////////////////
using System;
using Datalib.HelperClasses;
using SD.LLBLGen.Pro.ORMSupportClasses;
namespace Datalib.FactoryClasses
{
/// <summary>Generates IEntityFields2 instances for different kind of Entities. For backwards compatibility.</summary>
public static partial class EntityFieldsFactory
{
/// <summary>General factory entrance method which will return an EntityFields2 object with the format generated by the factory specified</summary>
/// <param name="relatedEntityType">The type of entity the fields are for</param>
/// <returns>The IEntityFields instance requested</returns>
public static IEntityFields2 CreateEntityFieldsObject(Datalib.EntityType relatedEntityType)
{
return ModelInfoProviderSingleton.GetInstance().GetEntityFields(relatedEntityType.ToString());
}
}
}

View File

@@ -0,0 +1,49 @@
//////////////////////////////////////////////////////////////
// <auto-generated>This code was generated by LLBLGen Pro 5.7.</auto-generated>
//////////////////////////////////////////////////////////////
// Code is generated on:
// Code is generated using templates: SD.TemplateBindings.SharedTemplates
// Templates vendor: Solutions Design.
//////////////////////////////////////////////////////////////
using System;
using System.Linq;
using Datalib.EntityClasses;
using Datalib.HelperClasses;
using SD.LLBLGen.Pro.ORMSupportClasses;
using SD.LLBLGen.Pro.QuerySpec.AdapterSpecific;
using SD.LLBLGen.Pro.QuerySpec;
namespace Datalib.FactoryClasses
{
/// <summary>Factory class to produce DynamicQuery instances and EntityQuery instances</summary>
public partial class QueryFactory : QueryFactoryBase2
{
/// <summary>Creates and returns a new EntityQuery for the TblField entity</summary>
public EntityQuery<TblFieldEntity> TblField { get { return Create<TblFieldEntity>(); } }
/// <summary>Creates and returns a new EntityQuery for the TblQuestion entity</summary>
public EntityQuery<TblQuestionEntity> TblQuestion { get { return Create<TblQuestionEntity>(); } }
/// <summary>Creates and returns a new EntityQuery for the TblQuiz entity</summary>
public EntityQuery<TblQuizEntity> TblQuiz { get { return Create<TblQuizEntity>(); } }
/// <summary>Creates and returns a new EntityQuery for the TblQuizQuestion entity</summary>
public EntityQuery<TblQuizQuestionEntity> TblQuizQuestion { get { return Create<TblQuizQuestionEntity>(); } }
/// <summary>Creates and returns a new EntityQuery for the TblQuizTemplate entity</summary>
public EntityQuery<TblQuizTemplateEntity> TblQuizTemplate { get { return Create<TblQuizTemplateEntity>(); } }
/// <summary>Creates and returns a new EntityQuery for the TblQuizTemplateDetail entity</summary>
public EntityQuery<TblQuizTemplateDetailEntity> TblQuizTemplateDetail { get { return Create<TblQuizTemplateDetailEntity>(); } }
/// <summary>Creates and returns a new EntityQuery for the TblSubject entity</summary>
public EntityQuery<TblSubjectEntity> TblSubject { get { return Create<TblSubjectEntity>(); } }
/// <summary>Creates and returns a new EntityQuery for the TblTrainingType entity</summary>
public EntityQuery<TblTrainingTypeEntity> TblTrainingType { get { return Create<TblTrainingTypeEntity>(); } }
/// <inheritdoc/>
protected override IElementCreatorCore CreateElementCreator() { return new ElementCreator(); }
}
}

View File

@@ -0,0 +1,86 @@
//////////////////////////////////////////////////////////////
// <auto-generated>This code was generated by LLBLGen Pro 5.7.</auto-generated>
//////////////////////////////////////////////////////////////
// Code is generated on:
// Code is generated using templates: SD.TemplateBindings.SharedTemplates
// Templates vendor: Solutions Design.
//////////////////////////////////////////////////////////////
using System;
using Datalib.FactoryClasses;
using Datalib.HelperClasses;
using SD.LLBLGen.Pro.ORMSupportClasses;
namespace Datalib.RelationClasses
{
/// <summary>Class to define dynamic relations for queries.</summary>
[Serializable]
public class DynamicRelation : DynamicRelationBase
{
/// <summary>Initializes a new instance of the <see cref="DynamicRelation"/> class.</summary>
/// <param name="leftOperand">The left operand, which can only be a derived table definition. No join will take place. </param>
/// <remarks>If a DynamicRelation is created with this CTor, it has to be the only one. It will be ignored if there are more relations in the relation collection.</remarks>
public DynamicRelation(DerivedTableDefinition leftOperand)
{
this.InitClass(JoinHint.None, string.Empty, string.Empty, null, leftOperand, null);
}
/// <summary>Initializes a new instance of the <see cref="DynamicRelation"/> class.</summary>
/// <param name="leftOperand">The left operand.</param>
/// <param name="joinType">Type of the join. If None is specified, Inner is assumed.</param>
/// <param name="rightOperand">The right operand.</param>
/// <param name="onClause">The on clause for the join.</param>
public DynamicRelation(DerivedTableDefinition leftOperand, JoinHint joinType, DerivedTableDefinition rightOperand, IPredicate onClause)
{
this.InitClass(joinType, string.Empty, string.Empty, onClause, leftOperand, rightOperand);
}
/// <summary>Initializes a new instance of the <see cref="DynamicRelation"/> class.</summary>
/// <param name="leftOperand">The left operand which is a field.</param>
/// <param name="joinType">Type of the join. If None is specified, Inner is assumed.</param>
/// <param name="rightOperand">The right operand which is a derived table.</param>
/// <param name="aliasLeftOperand">The alias of the left operand. If you don't want to / need to alias the left operand (only alias if you have to), specify string.Empty.</param>
/// <param name="onClause">The on clause for the join.</param>
public DynamicRelation(IEntityFieldCore leftOperand, JoinHint joinType, DerivedTableDefinition rightOperand, string aliasLeftOperand, IPredicate onClause)
{
this.InitClass(joinType, aliasLeftOperand, string.Empty, onClause, leftOperand, rightOperand);
}
/// <summary>Initializes a new instance of the <see cref="DynamicRelation"/> class.</summary>
/// <param name="leftOperand">The left operand.</param>
/// <param name="joinType">Type of the join. If None is specified, Inner is assumed.</param>
/// <param name="rightOperand">The right operand which is an entity type.</param>
/// <param name="aliasRightOperand">The alias of the right operand. If you don't want to / need to alias the right operand (only alias if you have to), specify string.Empty.</param>
/// <param name="onClause">The on clause for the join.</param>
public DynamicRelation(DerivedTableDefinition leftOperand, JoinHint joinType, Datalib.EntityType rightOperand, string aliasRightOperand, IPredicate onClause)
{
this.InitClass(joinType, string.Empty, aliasRightOperand, onClause, leftOperand, GeneralEntityFactory.Create(rightOperand));
}
/// <summary>Initializes a new instance of the <see cref="DynamicRelation"/> class.</summary>
/// <param name="leftOperand">The left operand, which is an entity.</param>
/// <param name="joinType">Type of the join. If None is specified, Inner is assumed.</param>
/// <param name="rightOperand">The right operand which is an entity.</param>
/// <param name="aliasLeftOperand">The alias of the left operand. If you don't want to / need to alias the left operand (only alias if you have to), specify string.Empty.</param>
/// <param name="aliasRightOperand">The alias of the right operand. If you don't want to / need to alias the right operand (only alias if you have to), specify string.Empty.</param>
/// <param name="onClause">The on clause for the join.</param>
public DynamicRelation(Datalib.EntityType leftOperand, JoinHint joinType, Datalib.EntityType rightOperand, string aliasLeftOperand, string aliasRightOperand, IPredicate onClause)
{
this.InitClass(joinType, aliasLeftOperand, aliasRightOperand, onClause, GeneralEntityFactory.Create(leftOperand), GeneralEntityFactory.Create(rightOperand));
}
/// <summary>Initializes a new instance of the <see cref="DynamicRelation"/> class.</summary>
/// <param name="leftOperand">The left operand which is a field.</param>
/// <param name="joinType">Type of the join. If None is specified, Inner is assumed.</param>
/// <param name="rightOperand">The right operand which is an entity.</param>
/// <param name="aliasLeftOperand">The alias of the left operand. If you don't want to / need to alias the left operand (only alias if you have to), specify string.Empty.</param>
/// <param name="aliasRightOperand">The alias of the right operand. If you don't want to / need to alias the right operand (only alias if you have to), specify string.Empty.</param>
/// <param name="onClause">The on clause for the join.</param>
public DynamicRelation(IEntityFieldCore leftOperand, JoinHint joinType, Datalib.EntityType rightOperand, string aliasLeftOperand, string aliasRightOperand, IPredicate onClause)
{
this.InitClass(joinType, aliasLeftOperand, aliasRightOperand, onClause, leftOperand, GeneralEntityFactory.Create(rightOperand));
}
/// <inheritdoc/>
protected override IInheritanceInfoProvider GetInheritanceProvider() { return ModelInfoProviderSingleton.GetInstance(); }
}
}

View File

@@ -0,0 +1,66 @@
//////////////////////////////////////////////////////////////
// <auto-generated>This code was generated by LLBLGen Pro 5.7.</auto-generated>
//////////////////////////////////////////////////////////////
// Code is generated on:
// Code is generated using templates: SD.TemplateBindings.SharedTemplates
// Templates vendor: Solutions Design.
// Templates version:
//////////////////////////////////////////////////////////////
using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
using SD.LLBLGen.Pro.ORMSupportClasses;
namespace Datalib.HelperClasses
{
// __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces
// __LLBLGENPRO_USER_CODE_REGION_END
/// <summary>EntityCollection implementation which is used for backwards compatibility and for design time databinding.</summary>
[Serializable]
public partial class EntityCollection : EntityCollectionNonGeneric
{
/// <summary>CTor</summary>
public EntityCollection() : base() { }
/// <summary>CTor</summary>
/// <param name="entityFactoryToUse">The entity factory object to use when this collection has to construct new objects.</param>
public EntityCollection(IEntityFactory2 entityFactoryToUse) : base(entityFactoryToUse) { }
/// <summary>Protected CTor for deserialization</summary>
/// <param name="info"></param>
/// <param name="context"></param>
protected EntityCollection(SerializationInfo info, StreamingContext context) : base(info, context) { }
// __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCollectionCode
// __LLBLGENPRO_USER_CODE_REGION_END
}
/// <summary>Generic entity collection class which replaces the original generated, non strongly typed EntityCollection variant.</summary>
[Serializable]
public partial class EntityCollection<TEntity> : EntityCollectionBase2<TEntity>
where TEntity : EntityBase2, IEntity2
{
/// <summary>CTor which determines the factory to use from the generic type argument, unless TEntity is an abstract entity.</summary>
public EntityCollection() : base((IEntityFactory2)null) { }
/// <summary>CTor</summary>
/// <param name="entityFactoryToUse">The entity factory object to use when this collection has to construct new objects.</param>
public EntityCollection(IEntityFactory2 entityFactoryToUse) : base(entityFactoryToUse) { }
/// <summary>CTor</summary>
/// <param name="initialContents">initial contents for this collection</param>
public EntityCollection(IEnumerable<TEntity> initialContents ) : base(initialContents) { }
/// <summary>Protected CTor for deserialization</summary>
/// <param name="info"></param>
/// <param name="context"></param>
protected EntityCollection(SerializationInfo info, StreamingContext context) : base(info, context) { }
// __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCollectionCodeGeneric
// __LLBLGENPRO_USER_CODE_REGION_END
}
}

View File

@@ -0,0 +1,150 @@
//////////////////////////////////////////////////////////////
// <auto-generated>This code was generated by LLBLGen Pro 5.7.</auto-generated>
//////////////////////////////////////////////////////////////
// Code is generated on:
// Code is generated using templates: SD.TemplateBindings.SharedTemplates
// Templates vendor: Solutions Design.
//////////////////////////////////////////////////////////////
using System;
using SD.LLBLGen.Pro.ORMSupportClasses;
namespace Datalib.HelperClasses
{
/// <summary>Field Creation Class for entity TblFieldEntity</summary>
public partial class TblFieldFields
{
/// <summary>Creates a new TblFieldEntity.Description field instance</summary>
public static EntityField2 Description { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(TblFieldFieldIndex.Description); }}
/// <summary>Creates a new TblFieldEntity.FieldId field instance</summary>
public static EntityField2 FieldId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(TblFieldFieldIndex.FieldId); }}
/// <summary>Creates a new TblFieldEntity.FieldName field instance</summary>
public static EntityField2 FieldName { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(TblFieldFieldIndex.FieldName); }}
/// <summary>Creates a new TblFieldEntity.Prefix field instance</summary>
public static EntityField2 Prefix { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(TblFieldFieldIndex.Prefix); }}
/// <summary>Creates a new TblFieldEntity.SubjectId field instance</summary>
public static EntityField2 SubjectId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(TblFieldFieldIndex.SubjectId); }}
/// <summary>Creates a new TblFieldEntity.UniqueId field instance</summary>
public static EntityField2 UniqueId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(TblFieldFieldIndex.UniqueId); }}
}
/// <summary>Field Creation Class for entity TblQuestionEntity</summary>
public partial class TblQuestionFields
{
/// <summary>Creates a new TblQuestionEntity.Answer field instance</summary>
public static EntityField2 Answer { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(TblQuestionFieldIndex.Answer); }}
/// <summary>Creates a new TblQuestionEntity.Content field instance</summary>
public static EntityField2 Content { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(TblQuestionFieldIndex.Content); }}
/// <summary>Creates a new TblQuestionEntity.CreateDate field instance</summary>
public static EntityField2 CreateDate { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(TblQuestionFieldIndex.CreateDate); }}
/// <summary>Creates a new TblQuestionEntity.Difficulty field instance</summary>
public static EntityField2 Difficulty { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(TblQuestionFieldIndex.Difficulty); }}
/// <summary>Creates a new TblQuestionEntity.Exclusive field instance</summary>
public static EntityField2 Exclusive { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(TblQuestionFieldIndex.Exclusive); }}
/// <summary>Creates a new TblQuestionEntity.Explaination field instance</summary>
public static EntityField2 Explaination { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(TblQuestionFieldIndex.Explaination); }}
/// <summary>Creates a new TblQuestionEntity.FieldId field instance</summary>
public static EntityField2 FieldId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(TblQuestionFieldIndex.FieldId); }}
/// <summary>Creates a new TblQuestionEntity.Level field instance</summary>
public static EntityField2 Level { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(TblQuestionFieldIndex.Level); }}
/// <summary>Creates a new TblQuestionEntity.QuestionCode field instance</summary>
public static EntityField2 QuestionCode { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(TblQuestionFieldIndex.QuestionCode); }}
/// <summary>Creates a new TblQuestionEntity.QuestionId field instance</summary>
public static EntityField2 QuestionId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(TblQuestionFieldIndex.QuestionId); }}
/// <summary>Creates a new TblQuestionEntity.SubjectId field instance</summary>
public static EntityField2 SubjectId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(TblQuestionFieldIndex.SubjectId); }}
/// <summary>Creates a new TblQuestionEntity.Summary field instance</summary>
public static EntityField2 Summary { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(TblQuestionFieldIndex.Summary); }}
}
/// <summary>Field Creation Class for entity TblQuizEntity</summary>
public partial class TblQuizFields
{
/// <summary>Creates a new TblQuizEntity.QuizCode field instance</summary>
public static EntityField2 QuizCode { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(TblQuizFieldIndex.QuizCode); }}
/// <summary>Creates a new TblQuizEntity.QuizId field instance</summary>
public static EntityField2 QuizId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(TblQuizFieldIndex.QuizId); }}
/// <summary>Creates a new TblQuizEntity.QuizName field instance</summary>
public static EntityField2 QuizName { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(TblQuizFieldIndex.QuizName); }}
/// <summary>Creates a new TblQuizEntity.QuizTemplateId field instance</summary>
public static EntityField2 QuizTemplateId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(TblQuizFieldIndex.QuizTemplateId); }}
/// <summary>Creates a new TblQuizEntity.QuizTime field instance</summary>
public static EntityField2 QuizTime { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(TblQuizFieldIndex.QuizTime); }}
/// <summary>Creates a new TblQuizEntity.QuizYear field instance</summary>
public static EntityField2 QuizYear { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(TblQuizFieldIndex.QuizYear); }}
}
/// <summary>Field Creation Class for entity TblQuizQuestionEntity</summary>
public partial class TblQuizQuestionFields
{
/// <summary>Creates a new TblQuizQuestionEntity.QuestionId field instance</summary>
public static EntityField2 QuestionId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(TblQuizQuestionFieldIndex.QuestionId); }}
/// <summary>Creates a new TblQuizQuestionEntity.QuizId field instance</summary>
public static EntityField2 QuizId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(TblQuizQuestionFieldIndex.QuizId); }}
/// <summary>Creates a new TblQuizQuestionEntity.QuizTemplateId field instance</summary>
public static EntityField2 QuizTemplateId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(TblQuizQuestionFieldIndex.QuizTemplateId); }}
/// <summary>Creates a new TblQuizQuestionEntity.TrainingTypeId field instance</summary>
public static EntityField2 TrainingTypeId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(TblQuizQuestionFieldIndex.TrainingTypeId); }}
/// <summary>Creates a new TblQuizQuestionEntity.UniqueId field instance</summary>
public static EntityField2 UniqueId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(TblQuizQuestionFieldIndex.UniqueId); }}
}
/// <summary>Field Creation Class for entity TblQuizTemplateEntity</summary>
public partial class TblQuizTemplateFields
{
/// <summary>Creates a new TblQuizTemplateEntity.FooterDes field instance</summary>
public static EntityField2 FooterDes { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(TblQuizTemplateFieldIndex.FooterDes); }}
/// <summary>Creates a new TblQuizTemplateEntity.HeaderDes field instance</summary>
public static EntityField2 HeaderDes { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(TblQuizTemplateFieldIndex.HeaderDes); }}
/// <summary>Creates a new TblQuizTemplateEntity.QuizTemplateCode field instance</summary>
public static EntityField2 QuizTemplateCode { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(TblQuizTemplateFieldIndex.QuizTemplateCode); }}
/// <summary>Creates a new TblQuizTemplateEntity.QuizTemplateId field instance</summary>
public static EntityField2 QuizTemplateId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(TblQuizTemplateFieldIndex.QuizTemplateId); }}
/// <summary>Creates a new TblQuizTemplateEntity.Renumering field instance</summary>
public static EntityField2 Renumering { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(TblQuizTemplateFieldIndex.Renumering); }}
/// <summary>Creates a new TblQuizTemplateEntity.TemplateQuizName field instance</summary>
public static EntityField2 TemplateQuizName { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(TblQuizTemplateFieldIndex.TemplateQuizName); }}
/// <summary>Creates a new TblQuizTemplateEntity.TrainingTypeId field instance</summary>
public static EntityField2 TrainingTypeId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(TblQuizTemplateFieldIndex.TrainingTypeId); }}
}
/// <summary>Field Creation Class for entity TblQuizTemplateDetailEntity</summary>
public partial class TblQuizTemplateDetailFields
{
/// <summary>Creates a new TblQuizTemplateDetailEntity.Difficulty field instance</summary>
public static EntityField2 Difficulty { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(TblQuizTemplateDetailFieldIndex.Difficulty); }}
/// <summary>Creates a new TblQuizTemplateDetailEntity.FieldId field instance</summary>
public static EntityField2 FieldId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(TblQuizTemplateDetailFieldIndex.FieldId); }}
/// <summary>Creates a new TblQuizTemplateDetailEntity.Level field instance</summary>
public static EntityField2 Level { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(TblQuizTemplateDetailFieldIndex.Level); }}
/// <summary>Creates a new TblQuizTemplateDetailEntity.QuestionNum field instance</summary>
public static EntityField2 QuestionNum { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(TblQuizTemplateDetailFieldIndex.QuestionNum); }}
/// <summary>Creates a new TblQuizTemplateDetailEntity.QuizTemplateId field instance</summary>
public static EntityField2 QuizTemplateId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(TblQuizTemplateDetailFieldIndex.QuizTemplateId); }}
/// <summary>Creates a new TblQuizTemplateDetailEntity.SubjectId field instance</summary>
public static EntityField2 SubjectId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(TblQuizTemplateDetailFieldIndex.SubjectId); }}
/// <summary>Creates a new TblQuizTemplateDetailEntity.UniqueId field instance</summary>
public static EntityField2 UniqueId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(TblQuizTemplateDetailFieldIndex.UniqueId); }}
}
/// <summary>Field Creation Class for entity TblSubjectEntity</summary>
public partial class TblSubjectFields
{
/// <summary>Creates a new TblSubjectEntity.SubjectDes field instance</summary>
public static EntityField2 SubjectDes { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(TblSubjectFieldIndex.SubjectDes); }}
/// <summary>Creates a new TblSubjectEntity.SubjectId field instance</summary>
public static EntityField2 SubjectId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(TblSubjectFieldIndex.SubjectId); }}
/// <summary>Creates a new TblSubjectEntity.SubjectName field instance</summary>
public static EntityField2 SubjectName { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(TblSubjectFieldIndex.SubjectName); }}
}
/// <summary>Field Creation Class for entity TblTrainingTypeEntity</summary>
public partial class TblTrainingTypeFields
{
/// <summary>Creates a new TblTrainingTypeEntity.TrainingTypeId field instance</summary>
public static EntityField2 TrainingTypeId { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(TblTrainingTypeFieldIndex.TrainingTypeId); }}
/// <summary>Creates a new TblTrainingTypeEntity.TrainingTypeName field instance</summary>
public static EntityField2 TrainingTypeName { get { return ModelInfoProviderSingleton.GetInstance().CreateField2(TblTrainingTypeFieldIndex.TrainingTypeName); }}
}
}

View File

@@ -0,0 +1,114 @@
//////////////////////////////////////////////////////////////
// <auto-generated>This code was generated by LLBLGen Pro 5.7.</auto-generated>
//////////////////////////////////////////////////////////////
// Code is generated on:
// Code is generated using templates: SD.TemplateBindings.SharedTemplates
// Templates vendor: Solutions Design.
//////////////////////////////////////////////////////////////
using System;
using System.Linq;
using System.Collections.Generic;
using SD.LLBLGen.Pro.LinqSupportClasses;
using SD.LLBLGen.Pro.ORMSupportClasses;
using Datalib.EntityClasses;
using Datalib.FactoryClasses;
namespace Datalib.Linq
{
/// <summary>Meta-data class for the construction of Linq queries which are to be executed using LLBLGen Pro code.</summary>
public partial class LinqMetaData: ILinqMetaData
{
/// <summary>CTor. Using this ctor will leave the IDataAccessAdapter object to use empty. To be able to execute the query, an IDataAccessAdapter instance
/// is required, and has to be set on the LLBLGenProProvider2 object in the query to execute. </summary>
public LinqMetaData() : this(null, null) { }
/// <summary>CTor which accepts an IDataAccessAdapter implementing object, which will be used to execute queries created with this metadata class.</summary>
/// <param name="adapterToUse">the IDataAccessAdapter to use in queries created with this meta data</param>
/// <remarks> Be aware that the IDataAccessAdapter object set via this property is kept alive by the LLBLGenProQuery objects created with this meta data till they go out of scope.</remarks>
public LinqMetaData(IDataAccessAdapter adapterToUse) : this (adapterToUse, null) { }
/// <summary>CTor which accepts an IDataAccessAdapter implementing object, which will be used to execute queries created with this metadata class.</summary>
/// <param name="adapterToUse">the IDataAccessAdapter to use in queries created with this meta data</param>
/// <param name="customFunctionMappings">The custom function mappings to use. These take higher precedence than the ones in the DQE to use.</param>
/// <remarks> Be aware that the IDataAccessAdapter object set via this property is kept alive by the LLBLGenProQuery objects created with this meta data till they go out of scope.</remarks>
public LinqMetaData(IDataAccessAdapter adapterToUse, FunctionMappingStore customFunctionMappings)
{
this.AdapterToUse = adapterToUse;
this.CustomFunctionMappings = customFunctionMappings;
}
/// <summary>returns the datasource to use in a Linq query for the entity type specified</summary>
/// <param name="typeOfEntity">the type of the entity to get the datasource for</param>
/// <returns>the requested datasource</returns>
public IDataSource GetQueryableForEntity(int typeOfEntity)
{
switch((Datalib.EntityType)typeOfEntity)
{
case Datalib.EntityType.TblFieldEntity:
return this.TblField;
case Datalib.EntityType.TblQuestionEntity:
return this.TblQuestion;
case Datalib.EntityType.TblQuizEntity:
return this.TblQuiz;
case Datalib.EntityType.TblQuizQuestionEntity:
return this.TblQuizQuestion;
case Datalib.EntityType.TblQuizTemplateEntity:
return this.TblQuizTemplate;
case Datalib.EntityType.TblQuizTemplateDetailEntity:
return this.TblQuizTemplateDetail;
case Datalib.EntityType.TblSubjectEntity:
return this.TblSubject;
case Datalib.EntityType.TblTrainingTypeEntity:
return this.TblTrainingType;
default:
return null;
}
}
/// <summary>returns the datasource to use in a Linq query for the entity type specified</summary>
/// <typeparam name="TEntity">the type of the entity to get the datasource for</typeparam>
/// <returns>the requested datasource</returns>
public DataSource2<TEntity> GetQueryableForEntity<TEntity>()
where TEntity : class
{
return new DataSource2<TEntity>(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse);
}
/// <summary>returns the datasource to use in a Linq query when targeting TblFieldEntity instances in the database.</summary>
public DataSource2<TblFieldEntity> TblField { get { return new DataSource2<TblFieldEntity>(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } }
/// <summary>returns the datasource to use in a Linq query when targeting TblQuestionEntity instances in the database.</summary>
public DataSource2<TblQuestionEntity> TblQuestion { get { return new DataSource2<TblQuestionEntity>(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } }
/// <summary>returns the datasource to use in a Linq query when targeting TblQuizEntity instances in the database.</summary>
public DataSource2<TblQuizEntity> TblQuiz { get { return new DataSource2<TblQuizEntity>(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } }
/// <summary>returns the datasource to use in a Linq query when targeting TblQuizQuestionEntity instances in the database.</summary>
public DataSource2<TblQuizQuestionEntity> TblQuizQuestion { get { return new DataSource2<TblQuizQuestionEntity>(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } }
/// <summary>returns the datasource to use in a Linq query when targeting TblQuizTemplateEntity instances in the database.</summary>
public DataSource2<TblQuizTemplateEntity> TblQuizTemplate { get { return new DataSource2<TblQuizTemplateEntity>(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } }
/// <summary>returns the datasource to use in a Linq query when targeting TblQuizTemplateDetailEntity instances in the database.</summary>
public DataSource2<TblQuizTemplateDetailEntity> TblQuizTemplateDetail { get { return new DataSource2<TblQuizTemplateDetailEntity>(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } }
/// <summary>returns the datasource to use in a Linq query when targeting TblSubjectEntity instances in the database.</summary>
public DataSource2<TblSubjectEntity> TblSubject { get { return new DataSource2<TblSubjectEntity>(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } }
/// <summary>returns the datasource to use in a Linq query when targeting TblTrainingTypeEntity instances in the database.</summary>
public DataSource2<TblTrainingTypeEntity> TblTrainingType { get { return new DataSource2<TblTrainingTypeEntity>(this.AdapterToUse, new ElementCreator(), this.CustomFunctionMappings, this.ContextToUse); } }
/// <summary> Gets / sets the IDataAccessAdapter to use for the queries created with this meta data object.</summary>
/// <remarks> Be aware that the IDataAccessAdapter object set via this property is kept alive by the LLBLGenProQuery objects created with this meta data
/// till they go out of scope.</remarks>
public IDataAccessAdapter AdapterToUse { get; set; }
/// <summary>Gets or sets the custom function mappings to use. These take higher precedence than the ones in the DQE to use</summary>
public FunctionMappingStore CustomFunctionMappings { get; set; }
/// <summary>Gets or sets the Context instance to use for entity fetches.</summary>
public Context ContextToUse { get; set; }
}
}

View File

@@ -0,0 +1,151 @@
//////////////////////////////////////////////////////////////
// <auto-generated>This code was generated by LLBLGen Pro v5.7.</auto-generated>
//////////////////////////////////////////////////////////////
// Code is generated on:
// Code is generated using templates: SD.TemplateBindings.SharedTemplates
// Templates vendor: Solutions Design.
//////////////////////////////////////////////////////////////
using System;
using Datalib.FactoryClasses;
using Datalib.RelationClasses;
using SD.LLBLGen.Pro.ORMSupportClasses;
namespace Datalib.HelperClasses
{
/// <summary>Singleton implementation of the ModelInfoProvider. This class is the singleton wrapper through which the actual instance is retrieved.</summary>
public static class ModelInfoProviderSingleton
{
private static readonly IModelInfoProvider _providerInstance = new ModelInfoProviderCore();
/// <summary>Dummy static constructor to make sure threadsafe initialization is performed.</summary>
static ModelInfoProviderSingleton() { }
/// <summary>Gets the singleton instance of the ModelInfoProviderCore</summary>
/// <returns>Instance of the FieldInfoProvider.</returns>
public static IModelInfoProvider GetInstance()
{
return _providerInstance;
}
}
/// <summary>Actual implementation of the ModelInfoProvider.</summary>
internal class ModelInfoProviderCore : ModelInfoProviderBase
{
/// <summary>Initializes a new instance of the <see cref="ModelInfoProviderCore"/> class.</summary>
internal ModelInfoProviderCore()
{
Init();
}
/// <summary>Method which initializes the internal datastores.</summary>
private void Init()
{
this.InitClass();
InitTblFieldEntityInfo();
InitTblQuestionEntityInfo();
InitTblQuizEntityInfo();
InitTblQuizQuestionEntityInfo();
InitTblQuizTemplateEntityInfo();
InitTblQuizTemplateDetailEntityInfo();
InitTblSubjectEntityInfo();
InitTblTrainingTypeEntityInfo();
this.BuildInternalStructures();
}
/// <summary>Inits TblFieldEntity's info objects</summary>
private void InitTblFieldEntityInfo()
{
this.AddFieldIndexEnumForElementName(typeof(TblFieldFieldIndex), "TblFieldEntity");
this.AddElementFieldInfo("TblFieldEntity", "Description", typeof(System.String), false, false, false, true, (int)TblFieldFieldIndex.Description, 536870911, 0, 0);
this.AddElementFieldInfo("TblFieldEntity", "FieldId", typeof(System.String), false, false, false, true, (int)TblFieldFieldIndex.FieldId, 1, 0, 0);
this.AddElementFieldInfo("TblFieldEntity", "FieldName", typeof(System.String), false, false, false, true, (int)TblFieldFieldIndex.FieldName, 50, 0, 0);
this.AddElementFieldInfo("TblFieldEntity", "Prefix", typeof(System.String), false, false, false, true, (int)TblFieldFieldIndex.Prefix, 255, 0, 0);
this.AddElementFieldInfo("TblFieldEntity", "SubjectId", typeof(System.String), false, true, false, true, (int)TblFieldFieldIndex.SubjectId, 2, 0, 0);
this.AddElementFieldInfo("TblFieldEntity", "UniqueId", typeof(System.String), true, false, false, false, (int)TblFieldFieldIndex.UniqueId, 32, 0, 0);
}
/// <summary>Inits TblQuestionEntity's info objects</summary>
private void InitTblQuestionEntityInfo()
{
this.AddFieldIndexEnumForElementName(typeof(TblQuestionFieldIndex), "TblQuestionEntity");
this.AddElementFieldInfo("TblQuestionEntity", "Answer", typeof(System.String), false, false, false, true, (int)TblQuestionFieldIndex.Answer, 536870911, 0, 0);
this.AddElementFieldInfo("TblQuestionEntity", "Content", typeof(System.String), false, false, false, true, (int)TblQuestionFieldIndex.Content, 536870911, 0, 0);
this.AddElementFieldInfo("TblQuestionEntity", "CreateDate", typeof(Nullable<System.DateTime>), false, false, false, true, (int)TblQuestionFieldIndex.CreateDate, 0, 0, 0);
this.AddElementFieldInfo("TblQuestionEntity", "Difficulty", typeof(System.String), false, false, false, true, (int)TblQuestionFieldIndex.Difficulty, 1, 0, 0);
this.AddElementFieldInfo("TblQuestionEntity", "Exclusive", typeof(System.Boolean), false, false, false, false, (int)TblQuestionFieldIndex.Exclusive, 2, 0, 0);
this.AddElementFieldInfo("TblQuestionEntity", "Explaination", typeof(System.String), false, false, false, true, (int)TblQuestionFieldIndex.Explaination, 536870911, 0, 0);
this.AddElementFieldInfo("TblQuestionEntity", "FieldId", typeof(System.String), false, false, false, true, (int)TblQuestionFieldIndex.FieldId, 1, 0, 0);
this.AddElementFieldInfo("TblQuestionEntity", "Level", typeof(System.String), false, false, false, true, (int)TblQuestionFieldIndex.Level, 1, 0, 0);
this.AddElementFieldInfo("TblQuestionEntity", "QuestionCode", typeof(System.String), false, false, false, true, (int)TblQuestionFieldIndex.QuestionCode, 10, 0, 0);
this.AddElementFieldInfo("TblQuestionEntity", "QuestionId", typeof(System.String), true, false, false, false, (int)TblQuestionFieldIndex.QuestionId, 32, 0, 0);
this.AddElementFieldInfo("TblQuestionEntity", "SubjectId", typeof(System.String), false, true, false, true, (int)TblQuestionFieldIndex.SubjectId, 2, 0, 0);
this.AddElementFieldInfo("TblQuestionEntity", "Summary", typeof(System.String), false, false, false, true, (int)TblQuestionFieldIndex.Summary, 536870911, 0, 0);
}
/// <summary>Inits TblQuizEntity's info objects</summary>
private void InitTblQuizEntityInfo()
{
this.AddFieldIndexEnumForElementName(typeof(TblQuizFieldIndex), "TblQuizEntity");
this.AddElementFieldInfo("TblQuizEntity", "QuizCode", typeof(System.String), false, false, false, true, (int)TblQuizFieldIndex.QuizCode, 255, 0, 0);
this.AddElementFieldInfo("TblQuizEntity", "QuizId", typeof(System.String), true, false, false, false, (int)TblQuizFieldIndex.QuizId, 32, 0, 0);
this.AddElementFieldInfo("TblQuizEntity", "QuizName", typeof(System.String), false, false, false, true, (int)TblQuizFieldIndex.QuizName, 255, 0, 0);
this.AddElementFieldInfo("TblQuizEntity", "QuizTemplateId", typeof(System.String), false, true, false, true, (int)TblQuizFieldIndex.QuizTemplateId, 32, 0, 0);
this.AddElementFieldInfo("TblQuizEntity", "QuizTime", typeof(Nullable<System.Int32>), false, false, false, true, (int)TblQuizFieldIndex.QuizTime, 0, 0, 10);
this.AddElementFieldInfo("TblQuizEntity", "QuizYear", typeof(Nullable<System.Int32>), false, false, false, true, (int)TblQuizFieldIndex.QuizYear, 0, 0, 10);
}
/// <summary>Inits TblQuizQuestionEntity's info objects</summary>
private void InitTblQuizQuestionEntityInfo()
{
this.AddFieldIndexEnumForElementName(typeof(TblQuizQuestionFieldIndex), "TblQuizQuestionEntity");
this.AddElementFieldInfo("TblQuizQuestionEntity", "QuestionId", typeof(System.String), false, true, false, true, (int)TblQuizQuestionFieldIndex.QuestionId, 32, 0, 0);
this.AddElementFieldInfo("TblQuizQuestionEntity", "QuizId", typeof(System.String), false, true, false, false, (int)TblQuizQuestionFieldIndex.QuizId, 32, 0, 0);
this.AddElementFieldInfo("TblQuizQuestionEntity", "QuizTemplateId", typeof(System.String), false, false, false, false, (int)TblQuizQuestionFieldIndex.QuizTemplateId, 32, 0, 0);
this.AddElementFieldInfo("TblQuizQuestionEntity", "TrainingTypeId", typeof(System.String), false, false, false, false, (int)TblQuizQuestionFieldIndex.TrainingTypeId, 2, 0, 0);
this.AddElementFieldInfo("TblQuizQuestionEntity", "UniqueId", typeof(System.String), true, false, false, false, (int)TblQuizQuestionFieldIndex.UniqueId, 32, 0, 0);
}
/// <summary>Inits TblQuizTemplateEntity's info objects</summary>
private void InitTblQuizTemplateEntityInfo()
{
this.AddFieldIndexEnumForElementName(typeof(TblQuizTemplateFieldIndex), "TblQuizTemplateEntity");
this.AddElementFieldInfo("TblQuizTemplateEntity", "FooterDes", typeof(System.String), false, false, false, true, (int)TblQuizTemplateFieldIndex.FooterDes, 536870911, 0, 0);
this.AddElementFieldInfo("TblQuizTemplateEntity", "HeaderDes", typeof(System.String), false, false, false, true, (int)TblQuizTemplateFieldIndex.HeaderDes, 536870911, 0, 0);
this.AddElementFieldInfo("TblQuizTemplateEntity", "QuizTemplateCode", typeof(System.String), false, false, false, true, (int)TblQuizTemplateFieldIndex.QuizTemplateCode, 255, 0, 0);
this.AddElementFieldInfo("TblQuizTemplateEntity", "QuizTemplateId", typeof(System.String), true, false, false, false, (int)TblQuizTemplateFieldIndex.QuizTemplateId, 32, 0, 0);
this.AddElementFieldInfo("TblQuizTemplateEntity", "Renumering", typeof(System.Boolean), false, false, false, false, (int)TblQuizTemplateFieldIndex.Renumering, 2, 0, 0);
this.AddElementFieldInfo("TblQuizTemplateEntity", "TemplateQuizName", typeof(System.String), false, false, false, true, (int)TblQuizTemplateFieldIndex.TemplateQuizName, 255, 0, 0);
this.AddElementFieldInfo("TblQuizTemplateEntity", "TrainingTypeId", typeof(System.String), false, true, false, false, (int)TblQuizTemplateFieldIndex.TrainingTypeId, 2, 0, 0);
}
/// <summary>Inits TblQuizTemplateDetailEntity's info objects</summary>
private void InitTblQuizTemplateDetailEntityInfo()
{
this.AddFieldIndexEnumForElementName(typeof(TblQuizTemplateDetailFieldIndex), "TblQuizTemplateDetailEntity");
this.AddElementFieldInfo("TblQuizTemplateDetailEntity", "Difficulty", typeof(System.String), false, false, false, true, (int)TblQuizTemplateDetailFieldIndex.Difficulty, 1, 0, 0);
this.AddElementFieldInfo("TblQuizTemplateDetailEntity", "FieldId", typeof(System.String), false, false, false, true, (int)TblQuizTemplateDetailFieldIndex.FieldId, 1, 0, 0);
this.AddElementFieldInfo("TblQuizTemplateDetailEntity", "Level", typeof(System.String), false, false, false, true, (int)TblQuizTemplateDetailFieldIndex.Level, 1, 0, 0);
this.AddElementFieldInfo("TblQuizTemplateDetailEntity", "QuestionNum", typeof(Nullable<System.Int16>), false, false, false, true, (int)TblQuizTemplateDetailFieldIndex.QuestionNum, 0, 0, 5);
this.AddElementFieldInfo("TblQuizTemplateDetailEntity", "QuizTemplateId", typeof(System.String), false, true, false, true, (int)TblQuizTemplateDetailFieldIndex.QuizTemplateId, 32, 0, 0);
this.AddElementFieldInfo("TblQuizTemplateDetailEntity", "SubjectId", typeof(System.String), false, false, false, true, (int)TblQuizTemplateDetailFieldIndex.SubjectId, 2, 0, 0);
this.AddElementFieldInfo("TblQuizTemplateDetailEntity", "UniqueId", typeof(System.String), true, false, false, false, (int)TblQuizTemplateDetailFieldIndex.UniqueId, 32, 0, 0);
}
/// <summary>Inits TblSubjectEntity's info objects</summary>
private void InitTblSubjectEntityInfo()
{
this.AddFieldIndexEnumForElementName(typeof(TblSubjectFieldIndex), "TblSubjectEntity");
this.AddElementFieldInfo("TblSubjectEntity", "SubjectDes", typeof(System.String), false, false, false, true, (int)TblSubjectFieldIndex.SubjectDes, 536870911, 0, 0);
this.AddElementFieldInfo("TblSubjectEntity", "SubjectId", typeof(System.String), true, false, false, false, (int)TblSubjectFieldIndex.SubjectId, 2, 0, 0);
this.AddElementFieldInfo("TblSubjectEntity", "SubjectName", typeof(System.String), false, false, false, true, (int)TblSubjectFieldIndex.SubjectName, 50, 0, 0);
}
/// <summary>Inits TblTrainingTypeEntity's info objects</summary>
private void InitTblTrainingTypeEntityInfo()
{
this.AddFieldIndexEnumForElementName(typeof(TblTrainingTypeFieldIndex), "TblTrainingTypeEntity");
this.AddElementFieldInfo("TblTrainingTypeEntity", "TrainingTypeId", typeof(System.String), true, false, false, false, (int)TblTrainingTypeFieldIndex.TrainingTypeId, 2, 0, 0);
this.AddElementFieldInfo("TblTrainingTypeEntity", "TrainingTypeName", typeof(System.String), false, false, false, true, (int)TblTrainingTypeFieldIndex.TrainingTypeName, 255, 0, 0);
}
}
}

View File

@@ -0,0 +1,30 @@
//////////////////////////////////////////////////////////////
// <auto-generated>This code was generated by LLBLGen Pro 5.7.</auto-generated>
//////////////////////////////////////////////////////////////
// Code is generated on:
// Code is generated using templates: SD.TemplateBindings.SharedTemplates
// Templates vendor: Solutions Design.
//////////////////////////////////////////////////////////////
using System;
using System.Runtime.Serialization;
using SD.LLBLGen.Pro.ORMSupportClasses;
namespace Datalib.HelperClasses
{
/// <summary>Helper class which will eases the creation of custom made resultsets. Usable in typed lists and dynamic lists created using the dynamic query engine.</summary>
[Serializable]
public partial class ResultsetFields : EntityFields2
{
/// <summary>CTor</summary>
public ResultsetFields(int amountFields) : base(amountFields, ModelInfoProviderSingleton.GetInstance(), null) { }
/// <summary>Deserialization constructor</summary>
/// <param name="info">Info.</param>
/// <param name="context">Context.</param>
protected ResultsetFields(SerializationInfo info, StreamingContext context) : base(info.GetInt32("_amountFields"), ModelInfoProviderSingleton.GetInstance(), null)
{
PerformDeserializationInitialization(info);
}
}
}

View File

@@ -0,0 +1,100 @@
//////////////////////////////////////////////////////////////
// <auto-generated>This code was generated by LLBLGen Pro 5.7.</auto-generated>
//////////////////////////////////////////////////////////////
// Code is generated on:
// Code is generated using templates: SD.TemplateBindings.SharedTemplates
// Templates vendor: Solutions Design.
//////////////////////////////////////////////////////////////
using System;
using SD.LLBLGen.Pro.ORMSupportClasses;
namespace Datalib.HelperClasses
{
/// <summary>Class for the returning of a default value when a type is given. These Default values are used for EntityFields which have a NULL value in the database.</summary>
[Serializable]
public partial class TypeDefaultValue : ITypeDefaultValue
{
/// <summary>Returns a default value for the type specified</summary>
/// <param name="defaultValueType">The type which default value should be returned.</param>
/// <returns>The default value for the type specified.</returns>
public object DefaultValue(System.Type defaultValueType) { return TypeDefaultValue.GetDefaultValue(defaultValueType); }
/// <summary>Returns a default value for the type specified</summary>
/// <param name="defaultValueType">The type which default value should be returned.</param>
/// <returns>The default value for the type specified.</returns>
public static object GetDefaultValue(System.Type defaultValueType)
{
object valueToReturn=null;
switch(Type.GetTypeCode(defaultValueType))
{
case TypeCode.String:
valueToReturn=string.Empty;
break;
case TypeCode.Boolean:
valueToReturn = false;
break;
case TypeCode.Byte:
valueToReturn = (byte)0;
break;
case TypeCode.DateTime:
valueToReturn = DateTime.MinValue;
break;
case TypeCode.Decimal:
valueToReturn = 0.0M;
break;
case TypeCode.Double:
valueToReturn = 0.0;
break;
case TypeCode.Int16:
valueToReturn = (short)0;
break;
case TypeCode.Int32:
valueToReturn = (int)0;
break;
case TypeCode.Int64:
valueToReturn = (long)0;
break;
case TypeCode.Object:
switch(defaultValueType.UnderlyingSystemType.FullName)
{
case "System.Guid":
valueToReturn = Guid.Empty;
break;
case "System.Byte[]":
valueToReturn = new byte[0];
break;
case "System.DateTimeOffset":
valueToReturn = DateTimeOffset.MinValue;
break;
case "System.TimeSpan":
valueToReturn = TimeSpan.MinValue;
break;
}
break;
case TypeCode.Single:
valueToReturn = 0.0f;
break;
case TypeCode.UInt16:
valueToReturn = (ushort)0;
break;
case TypeCode.UInt32:
valueToReturn = (uint)0;
break;
case TypeCode.UInt64:
valueToReturn = (ulong)0;
break;
case TypeCode.SByte:
valueToReturn = (SByte)0;
break;
default:
// do nothing, return null.
break;
}
return valueToReturn;
}
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]

View File

@@ -0,0 +1 @@
950de1610004ce63dc1f649d4025f98f65a9b46e

View File

@@ -0,0 +1,27 @@
I:\projects\OmegaPro\Datalib\DatabaseGeneric\bin\Release\Datalib.dll
I:\projects\OmegaPro\Datalib\DatabaseGeneric\bin\Release\Datalib.pdb
I:\projects\OmegaPro\Datalib\DatabaseGeneric\bin\Release\SD.LLBLGen.Pro.ORMSupportClasses.dll
I:\projects\OmegaPro\Datalib\DatabaseGeneric\bin\Release\SD.LLBLGen.Pro.ORMSupportClasses.pdb
I:\projects\OmegaPro\Datalib\DatabaseGeneric\bin\Release\SD.LLBLGen.Pro.ORMSupportClasses.xml
I:\projects\OmegaPro\Datalib\DatabaseGeneric\obj\Release\Datalib.csproj.CoreCompileInputs.cache
I:\projects\OmegaPro\Datalib\DatabaseGeneric\obj\Release\Datalib.csproj.CopyComplete
I:\projects\OmegaPro\Datalib\DatabaseGeneric\obj\Release\Datalib.dll
I:\projects\OmegaPro\Datalib\DatabaseGeneric\obj\Release\Datalib.pdb
H:\projects\OmegaPro\Datalib\DatabaseGeneric\bin\Release\Datalib.dll
H:\projects\OmegaPro\Datalib\DatabaseGeneric\bin\Release\Datalib.pdb
H:\projects\OmegaPro\Datalib\DatabaseGeneric\bin\Release\SD.LLBLGen.Pro.ORMSupportClasses.pdb
H:\projects\OmegaPro\Datalib\DatabaseGeneric\bin\Release\SD.LLBLGen.Pro.ORMSupportClasses.xml
H:\projects\OmegaPro\Datalib\DatabaseGeneric\obj\Release\Datalib.csproj.AssemblyReference.cache
H:\projects\OmegaPro\Datalib\DatabaseGeneric\obj\Release\Datalib.csproj.CoreCompileInputs.cache
H:\projects\OmegaPro\Datalib\DatabaseGeneric\obj\Release\Datalib.csproj.CopyComplete
H:\projects\OmegaPro\Datalib\DatabaseGeneric\obj\Release\Datalib.dll
H:\projects\OmegaPro\Datalib\DatabaseGeneric\obj\Release\Datalib.pdb
J:\projects\OmegaPro\Datalib\DatabaseGeneric\bin\Release\Datalib.dll
J:\projects\OmegaPro\Datalib\DatabaseGeneric\bin\Release\Datalib.pdb
J:\projects\OmegaPro\Datalib\DatabaseGeneric\bin\Release\SD.LLBLGen.Pro.ORMSupportClasses.pdb
J:\projects\OmegaPro\Datalib\DatabaseGeneric\bin\Release\SD.LLBLGen.Pro.ORMSupportClasses.xml
J:\projects\OmegaPro\Datalib\DatabaseGeneric\obj\Release\Datalib.csproj.AssemblyReference.cache
J:\projects\OmegaPro\Datalib\DatabaseGeneric\obj\Release\Datalib.csproj.CoreCompileInputs.cache
J:\projects\OmegaPro\Datalib\DatabaseGeneric\obj\Release\Datalib.csproj.CopyComplete
J:\projects\OmegaPro\Datalib\DatabaseGeneric\obj\Release\Datalib.dll
J:\projects\OmegaPro\Datalib\DatabaseGeneric\obj\Release\Datalib.pdb

View File

@@ -0,0 +1 @@
obj\Release\\_IsIncrementalBuild

View File

@@ -0,0 +1,23 @@
//////////////////////////////////////////////////////////////
// <auto-generated>This code was generated by LLBLGen Pro 5.7.</auto-generated>
//////////////////////////////////////////////////////////////
// Code is generated on:
// Code is generated using templates: SD.TemplateBindings.SharedTemplates
// Templates vendor: Solutions Design.
//////////////////////////////////////////////////////////////
using System;
using System.Data;
using System.Threading;
using System.Threading.Tasks;
using SD.LLBLGen.Pro.ORMSupportClasses;
namespace Datalib.DatabaseSpecific
{
/// <summary>Class which contains the static logic to execute action stored procedures in the database.</summary>
public static partial class ActionProcedures
{
}
}

View File

@@ -0,0 +1,7 @@
<?xml version="1.0"?>
<configuration>
<connectionStrings>
<!-- please adjust the connection string embedded in the element below to target the proper catalog / server using the proper user / password combination -->
<add name="ConnectionString.MS Access (OleDb)" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=I:\projects\OmegaPro\Database\Data.mdb;User Id=;Password=;Jet OLEDB:System Database=;Jet OLEDB:Database password="/>
</connectionStrings>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/></startup></configuration>

View File

@@ -0,0 +1,59 @@
using System.Reflection;
using System.Runtime.CompilerServices;
//
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
//
[assembly: AssemblyTitle("")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("")]
[assembly: AssemblyCopyright("")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: System.CLSCompliant(true)]
//
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("1.0.*")]
//
// In order to sign your assembly you must specify a key to use. Refer to the
// Microsoft .NET Framework documentation for more information on assembly signing.
//
// Use the attributes below to control which key is used for signing.
//
// Notes:
// (*) If no key is specified, the assembly is not signed.
// (*) KeyName refers to a key that has been installed in the Crypto Service
// Provider (CSP) on your machine. KeyFile refers to a file which contains
// a key.
// (*) If the KeyFile and the KeyName values are both specified, the
// following processing occurs:
// (1) If the KeyName can be found in the CSP, that key is used.
// (2) If the KeyName does not exist and the KeyFile does exist, the key
// in the KeyFile is installed into the CSP and used.
// (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility.
// When specifying the KeyFile, the location of the KeyFile should be
// relative to the project output directory which is
// %Project Directory%\obj\<configuration>. For example, if your KeyFile is
// located in the project directory, you would specify the AssemblyKeyFile
// attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")]
// (*) Delay Signing is an advanced option - see the Microsoft .NET Framework
// documentation for more information on this.
//
[assembly: AssemblyDelaySign(false)]
[assembly: AssemblyKeyFile("")]
[assembly: AssemblyKeyName("")]

View File

@@ -0,0 +1,107 @@
//////////////////////////////////////////////////////////////
// <auto-generated>This code was generated by LLBLGen Pro 5.7.</auto-generated>
//////////////////////////////////////////////////////////////
// Code is generated on:
// Code is generated using templates: SD.TemplateBindings.SharedTemplates
// Templates vendor: Solutions Design.
//////////////////////////////////////////////////////////////
using System;
using System.Collections.Generic;
using System.Data.Common;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
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
{
/// <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)";
/// <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()
{
#if NETSTANDARD || NETCOREAPP
return RuntimeConfiguration.GetConnectionString(ConnectionStringKeyName);
#else
return ConfigFileHelper.ReadConnectionStringFromConfig(ConnectionStringKeyName);
#endif
}
// __LLBLGENPRO_USER_CODE_REGION_START CustomDataAccessAdapterCode
// __LLBLGENPRO_USER_CODE_REGION_END
}
}

View File

@@ -0,0 +1,78 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{45BDB333-1CB0-4B86-A94A-8DDB80037848}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Datalib.DatabaseSpecific</RootNamespace>
<AssemblyName>DatalibDBSpecific</AssemblyName>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="SD.LLBLGen.Pro.ORMSupportClasses, Version=5.7.0.0, Culture=neutral, PublicKeyToken=ca73b74ba4e3ff27, processorArchitecture=MSIL">
<SpecificVersion>True</SpecificVersion>
<HintPath>C:\Program Files (x86)\Solutions Design\LLBLGen Pro v5.7\Frameworks\LLBLGen Pro\RuntimeLibraries\CompiledRuntimeLibraries\SD.LLBLGen.Pro.ORMSupportClasses.dll</HintPath>
</Reference>
<Reference Include="SD.LLBLGen.Pro.DQE.Access, Version=5.7.0.0, Culture=neutral, PublicKeyToken=ca73b74ba4e3ff27, processorArchitecture=MSIL">
<SpecificVersion>True</SpecificVersion>
<HintPath>C:\Program Files (x86)\Solutions Design\LLBLGen Pro v5.7\Frameworks\LLBLGen Pro\RuntimeLibraries\CompiledRuntimeLibraries\</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
<Reference Include="Microsoft.CSharp" />
</ItemGroup>
<ItemGroup>
<Compile Include="AssemblyInfo.cs">
<GeneratedBy>LLBLGen Pro</GeneratedBy>
</Compile>
<Compile Include="PersistenceInfoProvider.cs">
<GeneratedBy>LLBLGen Pro</GeneratedBy>
</Compile>
<None Include="App.config">
<GeneratedBy>LLBLGen Pro</GeneratedBy>
</None>
<Compile Include="ActionProcedures.cs">
<GeneratedBy>LLBLGen Pro</GeneratedBy>
</Compile>
<Compile Include="RetrievalProcedures.cs">
<GeneratedBy>LLBLGen Pro</GeneratedBy>
</Compile>
<Compile Include="DataAccessAdapter.cs">
<GeneratedBy>LLBLGen Pro</GeneratedBy>
</Compile>
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSHARP.Targets" />
<PropertyGroup>
<PreBuildEvent>
</PreBuildEvent>
<PostBuildEvent>
</PostBuildEvent>
</PropertyGroup>
</Project>

View File

@@ -0,0 +1,146 @@
//////////////////////////////////////////////////////////////
// <auto-generated>This code was generated by LLBLGen Pro v5.7.</auto-generated>
//////////////////////////////////////////////////////////////
// Code is generated on:
// Code is generated using templates: SD.TemplateBindings.SharedTemplates
// Templates vendor: Solutions Design.
//////////////////////////////////////////////////////////////
using System;
using SD.LLBLGen.Pro.ORMSupportClasses;
namespace Datalib.DatabaseSpecific
{
/// <summary>Singleton implementation of the PersistenceInfoProvider. This class is the singleton wrapper through which the actual instance is retrieved.</summary>
internal static class PersistenceInfoProviderSingleton
{
private static readonly IPersistenceInfoProvider _providerInstance = new PersistenceInfoProviderCore();
/// <summary>Dummy static constructor to make sure threadsafe initialization is performed.</summary>
static PersistenceInfoProviderSingleton() { }
/// <summary>Gets the singleton instance of the PersistenceInfoProviderCore</summary>
/// <returns>Instance of the PersistenceInfoProvider.</returns>
public static IPersistenceInfoProvider GetInstance() { return _providerInstance; }
}
/// <summary>Actual implementation of the PersistenceInfoProvider. Used by singleton wrapper.</summary>
internal class PersistenceInfoProviderCore : PersistenceInfoProviderBase
{
/// <summary>Initializes a new instance of the <see cref="PersistenceInfoProviderCore"/> class.</summary>
internal PersistenceInfoProviderCore()
{
Init();
}
/// <summary>Method which initializes the internal datastores with the structure of hierarchical types.</summary>
private void Init()
{
this.InitClass();
InitTblFieldEntityMappings();
InitTblQuestionEntityMappings();
InitTblQuizEntityMappings();
InitTblQuizQuestionEntityMappings();
InitTblQuizTemplateEntityMappings();
InitTblQuizTemplateDetailEntityMappings();
InitTblSubjectEntityMappings();
InitTblTrainingTypeEntityMappings();
}
/// <summary>Inits TblFieldEntity's mappings</summary>
private void InitTblFieldEntityMappings()
{
this.AddElementMapping("TblFieldEntity", @"Data", @"Default", "tblFields", 6, 0);
this.AddElementFieldMapping("TblFieldEntity", "Description", "Description", true, "LongVarWChar", 536870911, 0, 0, false, "", null, typeof(System.String), 0);
this.AddElementFieldMapping("TblFieldEntity", "FieldId", "FieldID", true, "VarWChar", 1, 0, 0, false, "", null, typeof(System.String), 1);
this.AddElementFieldMapping("TblFieldEntity", "FieldName", "FieldName", true, "VarWChar", 50, 0, 0, false, "", null, typeof(System.String), 2);
this.AddElementFieldMapping("TblFieldEntity", "Prefix", "Prefix", true, "VarWChar", 255, 0, 0, false, "", null, typeof(System.String), 3);
this.AddElementFieldMapping("TblFieldEntity", "SubjectId", "SubjectID", true, "VarWChar", 2, 0, 0, false, "", null, typeof(System.String), 4);
this.AddElementFieldMapping("TblFieldEntity", "UniqueId", "UniqueID", false, "VarWChar", 32, 0, 0, false, "", null, typeof(System.String), 5);
}
/// <summary>Inits TblQuestionEntity's mappings</summary>
private void InitTblQuestionEntityMappings()
{
this.AddElementMapping("TblQuestionEntity", @"Data", @"Default", "tblQuestions", 12, 0);
this.AddElementFieldMapping("TblQuestionEntity", "Answer", "Answer", true, "LongVarWChar", 536870911, 0, 0, false, "", null, typeof(System.String), 0);
this.AddElementFieldMapping("TblQuestionEntity", "Content", "Content", true, "LongVarWChar", 536870911, 0, 0, false, "", null, typeof(System.String), 1);
this.AddElementFieldMapping("TblQuestionEntity", "CreateDate", "CreateDate", true, "Date", 0, 0, 0, false, "", null, typeof(System.DateTime), 2);
this.AddElementFieldMapping("TblQuestionEntity", "Difficulty", "Difficulty", true, "VarWChar", 1, 0, 0, false, "", null, typeof(System.String), 3);
this.AddElementFieldMapping("TblQuestionEntity", "Exclusive", "Exclusive", false, "Boolean", 2, 0, 0, false, "", null, typeof(System.Boolean), 4);
this.AddElementFieldMapping("TblQuestionEntity", "Explaination", "Explaination", true, "LongVarWChar", 536870911, 0, 0, false, "", null, typeof(System.String), 5);
this.AddElementFieldMapping("TblQuestionEntity", "FieldId", "FieldID", true, "VarWChar", 1, 0, 0, false, "", null, typeof(System.String), 6);
this.AddElementFieldMapping("TblQuestionEntity", "Level", "Level", true, "VarWChar", 1, 0, 0, false, "", null, typeof(System.String), 7);
this.AddElementFieldMapping("TblQuestionEntity", "QuestionCode", "QuestionCode", true, "VarWChar", 10, 0, 0, false, "", null, typeof(System.String), 8);
this.AddElementFieldMapping("TblQuestionEntity", "QuestionId", "QuestionID", false, "VarWChar", 32, 0, 0, false, "", null, typeof(System.String), 9);
this.AddElementFieldMapping("TblQuestionEntity", "SubjectId", "SubjectID", true, "VarWChar", 2, 0, 0, false, "", null, typeof(System.String), 10);
this.AddElementFieldMapping("TblQuestionEntity", "Summary", "Summary", true, "LongVarWChar", 536870911, 0, 0, false, "", null, typeof(System.String), 11);
}
/// <summary>Inits TblQuizEntity's mappings</summary>
private void InitTblQuizEntityMappings()
{
this.AddElementMapping("TblQuizEntity", @"Data", @"Default", "tblQuizs", 6, 0);
this.AddElementFieldMapping("TblQuizEntity", "QuizCode", "QuizCode", true, "VarWChar", 255, 0, 0, false, "", null, typeof(System.String), 0);
this.AddElementFieldMapping("TblQuizEntity", "QuizId", "QuizID", false, "VarWChar", 32, 0, 0, false, "", null, typeof(System.String), 1);
this.AddElementFieldMapping("TblQuizEntity", "QuizName", "QuizName", true, "VarWChar", 255, 0, 0, false, "", null, typeof(System.String), 2);
this.AddElementFieldMapping("TblQuizEntity", "QuizTemplateId", "QuizTemplateID", true, "VarWChar", 32, 0, 0, false, "", null, typeof(System.String), 3);
this.AddElementFieldMapping("TblQuizEntity", "QuizTime", "QuizTime", true, "Integer", 0, 10, 0, false, "", null, typeof(System.Int32), 4);
this.AddElementFieldMapping("TblQuizEntity", "QuizYear", "QuizYear", true, "Integer", 0, 10, 0, false, "", null, typeof(System.Int32), 5);
}
/// <summary>Inits TblQuizQuestionEntity's mappings</summary>
private void InitTblQuizQuestionEntityMappings()
{
this.AddElementMapping("TblQuizQuestionEntity", @"Data", @"Default", "tblQuizQuestions", 5, 0);
this.AddElementFieldMapping("TblQuizQuestionEntity", "QuestionId", "QuestionID", true, "VarWChar", 32, 0, 0, false, "", null, typeof(System.String), 0);
this.AddElementFieldMapping("TblQuizQuestionEntity", "QuizId", "QuizID", false, "VarWChar", 32, 0, 0, false, "", null, typeof(System.String), 1);
this.AddElementFieldMapping("TblQuizQuestionEntity", "QuizTemplateId", "QuizTemplateID", false, "VarWChar", 32, 0, 0, false, "", null, typeof(System.String), 2);
this.AddElementFieldMapping("TblQuizQuestionEntity", "TrainingTypeId", "TrainingTypeID", false, "VarWChar", 2, 0, 0, false, "", null, typeof(System.String), 3);
this.AddElementFieldMapping("TblQuizQuestionEntity", "UniqueId", "UniqueID", false, "VarWChar", 32, 0, 0, false, "", null, typeof(System.String), 4);
}
/// <summary>Inits TblQuizTemplateEntity's mappings</summary>
private void InitTblQuizTemplateEntityMappings()
{
this.AddElementMapping("TblQuizTemplateEntity", @"Data", @"Default", "tblQuizTemplate", 7, 0);
this.AddElementFieldMapping("TblQuizTemplateEntity", "FooterDes", "FooterDes", true, "LongVarWChar", 536870911, 0, 0, false, "", null, typeof(System.String), 0);
this.AddElementFieldMapping("TblQuizTemplateEntity", "HeaderDes", "HeaderDes", true, "LongVarWChar", 536870911, 0, 0, false, "", null, typeof(System.String), 1);
this.AddElementFieldMapping("TblQuizTemplateEntity", "QuizTemplateCode", "QuizTemplateCode", true, "VarWChar", 255, 0, 0, false, "", null, typeof(System.String), 2);
this.AddElementFieldMapping("TblQuizTemplateEntity", "QuizTemplateId", "QuizTemplateID", false, "VarWChar", 32, 0, 0, false, "", null, typeof(System.String), 3);
this.AddElementFieldMapping("TblQuizTemplateEntity", "Renumering", "Renumering", false, "Boolean", 2, 0, 0, false, "", null, typeof(System.Boolean), 4);
this.AddElementFieldMapping("TblQuizTemplateEntity", "TemplateQuizName", "TemplateQuizName", true, "VarWChar", 255, 0, 0, false, "", null, typeof(System.String), 5);
this.AddElementFieldMapping("TblQuizTemplateEntity", "TrainingTypeId", "TrainingTypeID", false, "VarWChar", 2, 0, 0, false, "", null, typeof(System.String), 6);
}
/// <summary>Inits TblQuizTemplateDetailEntity's mappings</summary>
private void InitTblQuizTemplateDetailEntityMappings()
{
this.AddElementMapping("TblQuizTemplateDetailEntity", @"Data", @"Default", "tblQuizTemplateDetail", 7, 0);
this.AddElementFieldMapping("TblQuizTemplateDetailEntity", "Difficulty", "Difficulty", true, "VarWChar", 1, 0, 0, false, "", null, typeof(System.String), 0);
this.AddElementFieldMapping("TblQuizTemplateDetailEntity", "FieldId", "FieldID", true, "VarWChar", 1, 0, 0, false, "", null, typeof(System.String), 1);
this.AddElementFieldMapping("TblQuizTemplateDetailEntity", "Level", "Level", true, "VarWChar", 1, 0, 0, false, "", null, typeof(System.String), 2);
this.AddElementFieldMapping("TblQuizTemplateDetailEntity", "QuestionNum", "QuestionNum", true, "SmallInt", 0, 5, 0, false, "", null, typeof(System.Int16), 3);
this.AddElementFieldMapping("TblQuizTemplateDetailEntity", "QuizTemplateId", "QuizTemplateID", true, "VarWChar", 32, 0, 0, false, "", null, typeof(System.String), 4);
this.AddElementFieldMapping("TblQuizTemplateDetailEntity", "SubjectId", "SubjectID", true, "VarWChar", 2, 0, 0, false, "", null, typeof(System.String), 5);
this.AddElementFieldMapping("TblQuizTemplateDetailEntity", "UniqueId", "UniqueID", false, "VarWChar", 32, 0, 0, false, "", null, typeof(System.String), 6);
}
/// <summary>Inits TblSubjectEntity's mappings</summary>
private void InitTblSubjectEntityMappings()
{
this.AddElementMapping("TblSubjectEntity", @"Data", @"Default", "tblSubjects", 3, 0);
this.AddElementFieldMapping("TblSubjectEntity", "SubjectDes", "SubjectDes", true, "LongVarWChar", 536870911, 0, 0, false, "", null, typeof(System.String), 0);
this.AddElementFieldMapping("TblSubjectEntity", "SubjectId", "SubjectID", false, "VarWChar", 2, 0, 0, false, "", null, typeof(System.String), 1);
this.AddElementFieldMapping("TblSubjectEntity", "SubjectName", "SubjectName", true, "VarWChar", 50, 0, 0, false, "", null, typeof(System.String), 2);
}
/// <summary>Inits TblTrainingTypeEntity's mappings</summary>
private void InitTblTrainingTypeEntityMappings()
{
this.AddElementMapping("TblTrainingTypeEntity", @"Data", @"Default", "tblTrainingTypes", 2, 0);
this.AddElementFieldMapping("TblTrainingTypeEntity", "TrainingTypeId", "TrainingTypeID", false, "VarWChar", 2, 0, 0, false, "", null, typeof(System.String), 0);
this.AddElementFieldMapping("TblTrainingTypeEntity", "TrainingTypeName", "TrainingTypeName", true, "VarWChar", 255, 0, 0, false, "", null, typeof(System.String), 1);
}
}
}

View File

@@ -0,0 +1,25 @@
//////////////////////////////////////////////////////////////
// <auto-generated>This code was generated by LLBLGen Pro 5.7.</auto-generated>
//////////////////////////////////////////////////////////////
// Code is generated on:
// Code is generated using templates: SD.TemplateBindings.SharedTemplates
// Templates vendor: Solutions Design.
//////////////////////////////////////////////////////////////
using System;
using System.Data;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using SD.LLBLGen.Pro.ORMSupportClasses;
using SD.LLBLGen.Pro.QuerySpec.Adapter;
namespace Datalib.DatabaseSpecific
{
/// <summary>Class which contains the static logic to execute retrieval stored procedures in the database.</summary>
public static partial class RetrievalProcedures
{
}
}

View File

@@ -0,0 +1,7 @@
<?xml version="1.0"?>
<configuration>
<connectionStrings>
<!-- please adjust the connection string embedded in the element below to target the proper catalog / server using the proper user / password combination -->
<add name="ConnectionString.MS Access (OleDb)" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=I:\projects\OmegaPro\Database\Data.mdb;User Id=;Password=;Jet OLEDB:System Database=;Jet OLEDB:Database password="/>
</connectionStrings>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/></startup></configuration>

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]

View File

@@ -0,0 +1 @@
9d49d9fc7859c9bfecf3f0155ad59fd4efdc85ce

View File

@@ -0,0 +1,35 @@
I:\projects\OmegaPro\Datalib\DatabaseSpecific\bin\Release\DatalibDBSpecific.dll.config
I:\projects\OmegaPro\Datalib\DatabaseSpecific\bin\Release\DatalibDBSpecific.dll
I:\projects\OmegaPro\Datalib\DatabaseSpecific\bin\Release\DatalibDBSpecific.pdb
I:\projects\OmegaPro\Datalib\DatabaseSpecific\bin\Release\SD.LLBLGen.Pro.DQE.Access.dll
I:\projects\OmegaPro\Datalib\DatabaseSpecific\bin\Release\SD.LLBLGen.Pro.ORMSupportClasses.dll
I:\projects\OmegaPro\Datalib\DatabaseSpecific\bin\Release\SD.LLBLGen.Pro.ORMSupportClasses.pdb
I:\projects\OmegaPro\Datalib\DatabaseSpecific\bin\Release\SD.LLBLGen.Pro.ORMSupportClasses.xml
I:\projects\OmegaPro\Datalib\DatabaseSpecific\bin\Release\SD.LLBLGen.Pro.DQE.Access.pdb
I:\projects\OmegaPro\Datalib\DatabaseSpecific\obj\Release\DatalibDBSpecific.csproj.CoreCompileInputs.cache
I:\projects\OmegaPro\Datalib\DatabaseSpecific\obj\Release\DatalibDBSpecific.csproj.CopyComplete
I:\projects\OmegaPro\Datalib\DatabaseSpecific\obj\Release\DatalibDBSpecific.dll
I:\projects\OmegaPro\Datalib\DatabaseSpecific\obj\Release\DatalibDBSpecific.pdb
I:\projects\OmegaPro\Datalib\DatabaseSpecific\obj\Release\DatalibDBSpecific.csprojAssemblyReference.cache
H:\projects\OmegaPro\Datalib\DatabaseSpecific\bin\Release\DatalibDBSpecific.dll.config
H:\projects\OmegaPro\Datalib\DatabaseSpecific\bin\Release\DatalibDBSpecific.dll
H:\projects\OmegaPro\Datalib\DatabaseSpecific\bin\Release\DatalibDBSpecific.pdb
H:\projects\OmegaPro\Datalib\DatabaseSpecific\bin\Release\SD.LLBLGen.Pro.ORMSupportClasses.pdb
H:\projects\OmegaPro\Datalib\DatabaseSpecific\bin\Release\SD.LLBLGen.Pro.ORMSupportClasses.xml
H:\projects\OmegaPro\Datalib\DatabaseSpecific\bin\Release\SD.LLBLGen.Pro.DQE.Access.pdb
H:\projects\OmegaPro\Datalib\DatabaseSpecific\obj\Release\DatalibDBSpecific.csproj.AssemblyReference.cache
H:\projects\OmegaPro\Datalib\DatabaseSpecific\obj\Release\DatalibDBSpecific.csproj.CoreCompileInputs.cache
H:\projects\OmegaPro\Datalib\DatabaseSpecific\obj\Release\DatalibDBSpecific.csproj.CopyComplete
H:\projects\OmegaPro\Datalib\DatabaseSpecific\obj\Release\DatalibDBSpecific.dll
H:\projects\OmegaPro\Datalib\DatabaseSpecific\obj\Release\DatalibDBSpecific.pdb
J:\projects\OmegaPro\Datalib\DatabaseSpecific\bin\Release\DatalibDBSpecific.dll.config
J:\projects\OmegaPro\Datalib\DatabaseSpecific\bin\Release\DatalibDBSpecific.dll
J:\projects\OmegaPro\Datalib\DatabaseSpecific\bin\Release\DatalibDBSpecific.pdb
J:\projects\OmegaPro\Datalib\DatabaseSpecific\bin\Release\SD.LLBLGen.Pro.ORMSupportClasses.pdb
J:\projects\OmegaPro\Datalib\DatabaseSpecific\bin\Release\SD.LLBLGen.Pro.ORMSupportClasses.xml
J:\projects\OmegaPro\Datalib\DatabaseSpecific\bin\Release\SD.LLBLGen.Pro.DQE.Access.pdb
J:\projects\OmegaPro\Datalib\DatabaseSpecific\obj\Release\DatalibDBSpecific.csproj.AssemblyReference.cache
J:\projects\OmegaPro\Datalib\DatabaseSpecific\obj\Release\DatalibDBSpecific.csproj.CoreCompileInputs.cache
J:\projects\OmegaPro\Datalib\DatabaseSpecific\obj\Release\DatalibDBSpecific.csproj.CopyComplete
J:\projects\OmegaPro\Datalib\DatabaseSpecific\obj\Release\DatalibDBSpecific.dll
J:\projects\OmegaPro\Datalib\DatabaseSpecific\obj\Release\DatalibDBSpecific.pdb

View File

@@ -0,0 +1 @@
obj\Release\\_IsIncrementalBuild