/////////////////////////////////////////////////////////////// // 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 { /// Implements the relations factory for the entity: TblRegimenStopReason. public partial class TblRegimenStopReasonRelations { /// CTor public TblRegimenStopReasonRelations() { } /// Gets all relations of the TblRegimenStopReasonEntity as a list of IEntityRelation objects. /// a list of IEntityRelation objects public virtual List GetAllRelations() { List toReturn = new List(); toReturn.Add(this.TblTreatmentInfoEntityUsingReasonId); return toReturn; } #region Class Property Declarations /// Returns a new IEntityRelation object, between TblRegimenStopReasonEntity and TblTreatmentInfoEntity over the 1:n relation they have, using the relation between the fields: /// TblRegimenStopReason.ReasonId - TblTreatmentInfo.ReasonId /// public virtual IEntityRelation TblTreatmentInfoEntityUsingReasonId { get { IEntityRelation relation = new EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "TblTreatmentInfos" , true); relation.AddEntityFieldPair(TblRegimenStopReasonFields.ReasonId, TblTreatmentInfoFields.ReasonId); relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("TblRegimenStopReasonEntity", true); relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("TblTreatmentInfoEntity", false); return relation; } } /// stub, not used in this entity, only for TargetPerEntity entities. public virtual IEntityRelation GetSubTypeRelation(string subTypeEntityName) { return null; } /// stub, not used in this entity, only for TargetPerEntity entities. public virtual IEntityRelation GetSuperTypeRelation() { return null;} #endregion #region Included Code #endregion } /// Static class which is used for providing relationship instances which are re-used internally for syncing internal static class StaticTblRegimenStopReasonRelations { internal static readonly IEntityRelation TblTreatmentInfoEntityUsingReasonIdStatic = new TblRegimenStopReasonRelations().TblTreatmentInfoEntityUsingReasonId; /// CTor static StaticTblRegimenStopReasonRelations() { } } }