77 lines
3.0 KiB
C#
77 lines
3.0 KiB
C#
///////////////////////////////////////////////////////////////
|
|
// This is generated code.
|
|
//////////////////////////////////////////////////////////////
|
|
// Code is generated using LLBLGen Pro version: 4.2
|
|
// Code is generated on:
|
|
// Code is generated using templates: SD.TemplateBindings.SharedTemplates
|
|
// Templates vendor: Solutions Design.
|
|
// Templates version:
|
|
//////////////////////////////////////////////////////////////
|
|
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using Datalib;
|
|
using Datalib.FactoryClasses;
|
|
using Datalib.HelperClasses;
|
|
using SD.LLBLGen.Pro.ORMSupportClasses;
|
|
|
|
namespace Datalib.RelationClasses
|
|
{
|
|
/// <summary>Implements the relations factory for the entity: TblAgency. </summary>
|
|
public partial class TblAgencyRelations
|
|
{
|
|
/// <summary>CTor</summary>
|
|
public TblAgencyRelations()
|
|
{
|
|
}
|
|
|
|
/// <summary>Gets all relations of the TblAgencyEntity as a list of IEntityRelation objects.</summary>
|
|
/// <returns>a list of IEntityRelation objects</returns>
|
|
public virtual List<IEntityRelation> GetAllRelations()
|
|
{
|
|
List<IEntityRelation> toReturn = new List<IEntityRelation>();
|
|
toReturn.Add(this.TblReferraltoServiceEntityUsingAgencyTypeId);
|
|
return toReturn;
|
|
}
|
|
|
|
#region Class Property Declarations
|
|
|
|
/// <summary>Returns a new IEntityRelation object, between TblAgencyEntity and TblReferraltoServiceEntity over the 1:n relation they have, using the relation between the fields:
|
|
/// TblAgency.AgencyTypeId - TblReferraltoService.AgencyTypeId
|
|
/// </summary>
|
|
public virtual IEntityRelation TblReferraltoServiceEntityUsingAgencyTypeId
|
|
{
|
|
get
|
|
{
|
|
IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "TblReferraltoServices" , true);
|
|
relation.AddEntityFieldPair(TblAgencyFields.AgencyTypeId, TblReferraltoServiceFields.AgencyTypeId);
|
|
relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("TblAgencyEntity", true);
|
|
relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("TblReferraltoServiceEntity", false);
|
|
return relation;
|
|
}
|
|
}
|
|
|
|
|
|
/// <summary>stub, not used in this entity, only for TargetPerEntity entities.</summary>
|
|
public virtual IEntityRelation GetSubTypeRelation(string subTypeEntityName) { return null; }
|
|
/// <summary>stub, not used in this entity, only for TargetPerEntity entities.</summary>
|
|
public virtual IEntityRelation GetSuperTypeRelation() { return null;}
|
|
#endregion
|
|
|
|
#region Included Code
|
|
|
|
#endregion
|
|
}
|
|
|
|
/// <summary>Static class which is used for providing relationship instances which are re-used internally for syncing</summary>
|
|
internal static class StaticTblAgencyRelations
|
|
{
|
|
internal static readonly IEntityRelation TblReferraltoServiceEntityUsingAgencyTypeIdStatic = new TblAgencyRelations().TblReferraltoServiceEntityUsingAgencyTypeId;
|
|
|
|
/// <summary>CTor</summary>
|
|
static StaticTblAgencyRelations()
|
|
{
|
|
}
|
|
}
|
|
}
|