1210 lines
66 KiB
C#
1210 lines
66 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.ComponentModel;
|
|
using System.Collections.Generic;
|
|
#if !CF
|
|
using System.Runtime.Serialization;
|
|
#endif
|
|
using System.Xml.Serialization;
|
|
using Datalib;
|
|
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 'TblPatient'.<br/><br/></summary>
|
|
[Serializable]
|
|
public partial class TblPatientEntity : CommonEntityBase
|
|
// __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces
|
|
// __LLBLGENPRO_USER_CODE_REGION_END
|
|
|
|
{
|
|
#region Class Member Declarations
|
|
private EntityCollection<TblClinicInfoEntity> _tblClinicInfos;
|
|
private EntityCollection<TblDiaryEntity> _tblDiaries;
|
|
private EntityCollection<TblExaminationInfoEntity> _tblExaminationInfos;
|
|
private EntityCollection<TblPreClinicsInfoEntity> _tblPreClinicsInfos;
|
|
private EntityCollection<TblPregnanceInfoEntity> _tblPregnanceInfos;
|
|
private EntityCollection<TblReferralsToEntity> _tblReferralsTos;
|
|
private EntityCollection<TblReferraltoServiceEntity> _tblReferraltoServices;
|
|
private EntityCollection<TblTreatmentInfoEntity> _tblTreatmentInfos;
|
|
private TblReferralFromPlaceEntity _tblReferralFromPlace;
|
|
|
|
// __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers
|
|
// __LLBLGENPRO_USER_CODE_REGION_END
|
|
|
|
#endregion
|
|
|
|
#region Statics
|
|
private static Dictionary<string, string> _customProperties;
|
|
private static Dictionary<string, Dictionary<string, string>> _fieldsCustomProperties;
|
|
|
|
/// <summary>All names of fields mapped onto a relation. Usable for in-memory filtering</summary>
|
|
public static partial class MemberNames
|
|
{
|
|
/// <summary>Member name TblReferralFromPlace</summary>
|
|
public static readonly string TblReferralFromPlace = "TblReferralFromPlace";
|
|
/// <summary>Member name TblClinicInfos</summary>
|
|
public static readonly string TblClinicInfos = "TblClinicInfos";
|
|
/// <summary>Member name TblDiaries</summary>
|
|
public static readonly string TblDiaries = "TblDiaries";
|
|
/// <summary>Member name TblExaminationInfos</summary>
|
|
public static readonly string TblExaminationInfos = "TblExaminationInfos";
|
|
/// <summary>Member name TblPreClinicsInfos</summary>
|
|
public static readonly string TblPreClinicsInfos = "TblPreClinicsInfos";
|
|
/// <summary>Member name TblPregnanceInfos</summary>
|
|
public static readonly string TblPregnanceInfos = "TblPregnanceInfos";
|
|
/// <summary>Member name TblReferralsTos</summary>
|
|
public static readonly string TblReferralsTos = "TblReferralsTos";
|
|
/// <summary>Member name TblReferraltoServices</summary>
|
|
public static readonly string TblReferraltoServices = "TblReferraltoServices";
|
|
/// <summary>Member name TblTreatmentInfos</summary>
|
|
public static readonly string TblTreatmentInfos = "TblTreatmentInfos";
|
|
}
|
|
#endregion
|
|
|
|
/// <summary> Static CTor for setting up custom property hashtables. Is executed before the first instance of this entity class or derived classes is constructed. </summary>
|
|
static TblPatientEntity()
|
|
{
|
|
SetupCustomPropertyHashtables();
|
|
}
|
|
|
|
/// <summary> CTor</summary>
|
|
public TblPatientEntity():base("TblPatientEntity")
|
|
{
|
|
InitClassEmpty(null, null);
|
|
}
|
|
|
|
/// <summary> CTor</summary>
|
|
/// <remarks>For framework usage.</remarks>
|
|
/// <param name="fields">Fields object to set as the fields for this entity.</param>
|
|
public TblPatientEntity(IEntityFields2 fields):base("TblPatientEntity")
|
|
{
|
|
InitClassEmpty(null, fields);
|
|
}
|
|
|
|
/// <summary> CTor</summary>
|
|
/// <param name="validator">The custom validator object for this TblPatientEntity</param>
|
|
public TblPatientEntity(IValidator validator):base("TblPatientEntity")
|
|
{
|
|
InitClassEmpty(validator, null);
|
|
}
|
|
|
|
/// <summary> CTor</summary>
|
|
/// <param name="patientId">PK value for TblPatient which data should be fetched into this TblPatient object</param>
|
|
/// <remarks>The entity is not fetched by this constructor. Use a DataAccessAdapter for that.</remarks>
|
|
public TblPatientEntity(System.String patientId):base("TblPatientEntity")
|
|
{
|
|
InitClassEmpty(null, null);
|
|
this.PatientId = patientId;
|
|
}
|
|
|
|
/// <summary> CTor</summary>
|
|
/// <param name="patientId">PK value for TblPatient which data should be fetched into this TblPatient object</param>
|
|
/// <param name="validator">The custom validator object for this TblPatientEntity</param>
|
|
/// <remarks>The entity is not fetched by this constructor. Use a DataAccessAdapter for that.</remarks>
|
|
public TblPatientEntity(System.String patientId, IValidator validator):base("TblPatientEntity")
|
|
{
|
|
InitClassEmpty(validator, null);
|
|
this.PatientId = patientId;
|
|
}
|
|
|
|
/// <summary> Protected CTor for deserialization</summary>
|
|
/// <param name="info"></param>
|
|
/// <param name="context"></param>
|
|
[EditorBrowsable(EditorBrowsableState.Never)]
|
|
protected TblPatientEntity(SerializationInfo info, StreamingContext context) : base(info, context)
|
|
{
|
|
if(SerializationHelper.Optimization != SerializationOptimization.Fast)
|
|
{
|
|
_tblClinicInfos = (EntityCollection<TblClinicInfoEntity>)info.GetValue("_tblClinicInfos", typeof(EntityCollection<TblClinicInfoEntity>));
|
|
_tblDiaries = (EntityCollection<TblDiaryEntity>)info.GetValue("_tblDiaries", typeof(EntityCollection<TblDiaryEntity>));
|
|
_tblExaminationInfos = (EntityCollection<TblExaminationInfoEntity>)info.GetValue("_tblExaminationInfos", typeof(EntityCollection<TblExaminationInfoEntity>));
|
|
_tblPreClinicsInfos = (EntityCollection<TblPreClinicsInfoEntity>)info.GetValue("_tblPreClinicsInfos", typeof(EntityCollection<TblPreClinicsInfoEntity>));
|
|
_tblPregnanceInfos = (EntityCollection<TblPregnanceInfoEntity>)info.GetValue("_tblPregnanceInfos", typeof(EntityCollection<TblPregnanceInfoEntity>));
|
|
_tblReferralsTos = (EntityCollection<TblReferralsToEntity>)info.GetValue("_tblReferralsTos", typeof(EntityCollection<TblReferralsToEntity>));
|
|
_tblReferraltoServices = (EntityCollection<TblReferraltoServiceEntity>)info.GetValue("_tblReferraltoServices", typeof(EntityCollection<TblReferraltoServiceEntity>));
|
|
_tblTreatmentInfos = (EntityCollection<TblTreatmentInfoEntity>)info.GetValue("_tblTreatmentInfos", typeof(EntityCollection<TblTreatmentInfoEntity>));
|
|
_tblReferralFromPlace = (TblReferralFromPlaceEntity)info.GetValue("_tblReferralFromPlace", typeof(TblReferralFromPlaceEntity));
|
|
if(_tblReferralFromPlace!=null)
|
|
{
|
|
_tblReferralFromPlace.AfterSave+=new EventHandler(OnEntityAfterSave);
|
|
}
|
|
this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance());
|
|
}
|
|
// __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
|
|
// __LLBLGENPRO_USER_CODE_REGION_END
|
|
|
|
}
|
|
|
|
|
|
/// <summary>Performs the desync setup when an FK field has been changed. The entity referenced based on the FK field will be dereferenced and sync info will be removed.</summary>
|
|
/// <param name="fieldIndex">The fieldindex.</param>
|
|
protected override void PerformDesyncSetupFKFieldChange(int fieldIndex)
|
|
{
|
|
switch((TblPatientFieldIndex)fieldIndex)
|
|
{
|
|
case TblPatientFieldIndex.ReferralId:
|
|
DesetupSyncTblReferralFromPlace(true, false);
|
|
break;
|
|
default:
|
|
base.PerformDesyncSetupFKFieldChange(fieldIndex);
|
|
break;
|
|
}
|
|
}
|
|
|
|
/// <summary> Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection.</summary>
|
|
/// <param name="propertyName">Name of the property.</param>
|
|
/// <param name="entity">Entity to set as an related entity</param>
|
|
/// <remarks>Used by prefetch path logic.</remarks>
|
|
protected override void SetRelatedEntityProperty(string propertyName, IEntityCore entity)
|
|
{
|
|
switch(propertyName)
|
|
{
|
|
case "TblReferralFromPlace":
|
|
this.TblReferralFromPlace = (TblReferralFromPlaceEntity)entity;
|
|
break;
|
|
case "TblClinicInfos":
|
|
this.TblClinicInfos.Add((TblClinicInfoEntity)entity);
|
|
break;
|
|
case "TblDiaries":
|
|
this.TblDiaries.Add((TblDiaryEntity)entity);
|
|
break;
|
|
case "TblExaminationInfos":
|
|
this.TblExaminationInfos.Add((TblExaminationInfoEntity)entity);
|
|
break;
|
|
case "TblPreClinicsInfos":
|
|
this.TblPreClinicsInfos.Add((TblPreClinicsInfoEntity)entity);
|
|
break;
|
|
case "TblPregnanceInfos":
|
|
this.TblPregnanceInfos.Add((TblPregnanceInfoEntity)entity);
|
|
break;
|
|
case "TblReferralsTos":
|
|
this.TblReferralsTos.Add((TblReferralsToEntity)entity);
|
|
break;
|
|
case "TblReferraltoServices":
|
|
this.TblReferraltoServices.Add((TblReferraltoServiceEntity)entity);
|
|
break;
|
|
case "TblTreatmentInfos":
|
|
this.TblTreatmentInfos.Add((TblTreatmentInfoEntity)entity);
|
|
break;
|
|
default:
|
|
this.OnSetRelatedEntityProperty(propertyName, entity);
|
|
break;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets the relation objects which represent the relation the fieldName specified is mapped on. </summary>
|
|
/// <param name="fieldName">Name of the field mapped onto the relation of which the relation objects have to be obtained.</param>
|
|
/// <returns>RelationCollection with relation object(s) which represent the relation the field is maped on</returns>
|
|
protected override RelationCollection GetRelationsForFieldOfType(string fieldName)
|
|
{
|
|
return GetRelationsForField(fieldName);
|
|
}
|
|
|
|
/// <summary>Gets the relation objects which represent the relation the fieldName specified is mapped on. </summary>
|
|
/// <param name="fieldName">Name of the field mapped onto the relation of which the relation objects have to be obtained.</param>
|
|
/// <returns>RelationCollection with relation object(s) which represent the relation the field is maped on</returns>
|
|
internal static RelationCollection GetRelationsForField(string fieldName)
|
|
{
|
|
RelationCollection toReturn = new RelationCollection();
|
|
switch(fieldName)
|
|
{
|
|
case "TblReferralFromPlace":
|
|
toReturn.Add(Relations.TblReferralFromPlaceEntityUsingReferralId);
|
|
break;
|
|
case "TblClinicInfos":
|
|
toReturn.Add(Relations.TblClinicInfoEntityUsingPatientId);
|
|
break;
|
|
case "TblDiaries":
|
|
toReturn.Add(Relations.TblDiaryEntityUsingPatientId);
|
|
break;
|
|
case "TblExaminationInfos":
|
|
toReturn.Add(Relations.TblExaminationInfoEntityUsingPatientId);
|
|
break;
|
|
case "TblPreClinicsInfos":
|
|
toReturn.Add(Relations.TblPreClinicsInfoEntityUsingPatientId);
|
|
break;
|
|
case "TblPregnanceInfos":
|
|
toReturn.Add(Relations.TblPregnanceInfoEntityUsingPatientId);
|
|
break;
|
|
case "TblReferralsTos":
|
|
toReturn.Add(Relations.TblReferralsToEntityUsingPatientId);
|
|
break;
|
|
case "TblReferraltoServices":
|
|
toReturn.Add(Relations.TblReferraltoServiceEntityUsingPatientId);
|
|
break;
|
|
case "TblTreatmentInfos":
|
|
toReturn.Add(Relations.TblTreatmentInfoEntityUsingPatientId);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
return toReturn;
|
|
}
|
|
#if !CF
|
|
/// <summary>Checks if the relation mapped by the property with the name specified is a one way / single sided relation. If the passed in name is null, it/ will return true if the entity has any single-sided relation</summary>
|
|
/// <param name="propertyName">Name of the property which is mapped onto the relation to check, or null to check if the entity has any relation/ which is single sided</param>
|
|
/// <returns>true if the relation is single sided / one way (so the opposite relation isn't present), false otherwise</returns>
|
|
protected override bool CheckOneWayRelations(string propertyName)
|
|
{
|
|
int numberOfOneWayRelations = 0;
|
|
switch(propertyName)
|
|
{
|
|
case null:
|
|
return ((numberOfOneWayRelations > 0) || base.CheckOneWayRelations(null));
|
|
default:
|
|
return base.CheckOneWayRelations(propertyName);
|
|
}
|
|
}
|
|
#endif
|
|
/// <summary> Sets the internal parameter related to the fieldname passed to the instance relatedEntity. </summary>
|
|
/// <param name="relatedEntity">Instance to set as the related entity of type entityType</param>
|
|
/// <param name="fieldName">Name of field mapped onto the relation which resolves in the instance relatedEntity</param>
|
|
protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName)
|
|
{
|
|
switch(fieldName)
|
|
{
|
|
case "TblReferralFromPlace":
|
|
SetupSyncTblReferralFromPlace(relatedEntity);
|
|
break;
|
|
case "TblClinicInfos":
|
|
this.TblClinicInfos.Add((TblClinicInfoEntity)relatedEntity);
|
|
break;
|
|
case "TblDiaries":
|
|
this.TblDiaries.Add((TblDiaryEntity)relatedEntity);
|
|
break;
|
|
case "TblExaminationInfos":
|
|
this.TblExaminationInfos.Add((TblExaminationInfoEntity)relatedEntity);
|
|
break;
|
|
case "TblPreClinicsInfos":
|
|
this.TblPreClinicsInfos.Add((TblPreClinicsInfoEntity)relatedEntity);
|
|
break;
|
|
case "TblPregnanceInfos":
|
|
this.TblPregnanceInfos.Add((TblPregnanceInfoEntity)relatedEntity);
|
|
break;
|
|
case "TblReferralsTos":
|
|
this.TblReferralsTos.Add((TblReferralsToEntity)relatedEntity);
|
|
break;
|
|
case "TblReferraltoServices":
|
|
this.TblReferraltoServices.Add((TblReferraltoServiceEntity)relatedEntity);
|
|
break;
|
|
case "TblTreatmentInfos":
|
|
this.TblTreatmentInfos.Add((TblTreatmentInfoEntity)relatedEntity);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
|
|
/// <summary> Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() </summary>
|
|
/// <param name="relatedEntity">Instance to unset as the related entity of type entityType</param>
|
|
/// <param name="fieldName">Name of field mapped onto the relation which resolves in the instance relatedEntity</param>
|
|
/// <param name="signalRelatedEntityManyToOne">if set to true it will notify the manytoone side, if applicable.</param>
|
|
protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne)
|
|
{
|
|
switch(fieldName)
|
|
{
|
|
case "TblReferralFromPlace":
|
|
DesetupSyncTblReferralFromPlace(false, true);
|
|
break;
|
|
case "TblClinicInfos":
|
|
this.PerformRelatedEntityRemoval(this.TblClinicInfos, relatedEntity, signalRelatedEntityManyToOne);
|
|
break;
|
|
case "TblDiaries":
|
|
this.PerformRelatedEntityRemoval(this.TblDiaries, relatedEntity, signalRelatedEntityManyToOne);
|
|
break;
|
|
case "TblExaminationInfos":
|
|
this.PerformRelatedEntityRemoval(this.TblExaminationInfos, relatedEntity, signalRelatedEntityManyToOne);
|
|
break;
|
|
case "TblPreClinicsInfos":
|
|
this.PerformRelatedEntityRemoval(this.TblPreClinicsInfos, relatedEntity, signalRelatedEntityManyToOne);
|
|
break;
|
|
case "TblPregnanceInfos":
|
|
this.PerformRelatedEntityRemoval(this.TblPregnanceInfos, relatedEntity, signalRelatedEntityManyToOne);
|
|
break;
|
|
case "TblReferralsTos":
|
|
this.PerformRelatedEntityRemoval(this.TblReferralsTos, relatedEntity, signalRelatedEntityManyToOne);
|
|
break;
|
|
case "TblReferraltoServices":
|
|
this.PerformRelatedEntityRemoval(this.TblReferraltoServices, relatedEntity, signalRelatedEntityManyToOne);
|
|
break;
|
|
case "TblTreatmentInfos":
|
|
this.PerformRelatedEntityRemoval(this.TblTreatmentInfos, relatedEntity, signalRelatedEntityManyToOne);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
|
|
/// <summary> Gets a collection of related entities referenced by this entity which depend on this entity (this entity is the PK side of their FK fields). These entities will have to be persisted after this entity during a recursive save.</summary>
|
|
/// <returns>Collection with 0 or more IEntity2 objects, referenced by this entity</returns>
|
|
protected override List<IEntity2> GetDependingRelatedEntities()
|
|
{
|
|
List<IEntity2> toReturn = new List<IEntity2>();
|
|
return toReturn;
|
|
}
|
|
|
|
/// <summary> Gets a collection of related entities referenced by this entity which this entity depends on (this entity is the FK side of their PK fields). These
|
|
/// entities will have to be persisted before this entity during a recursive save.</summary>
|
|
/// <returns>Collection with 0 or more IEntity2 objects, referenced by this entity</returns>
|
|
protected override List<IEntity2> GetDependentRelatedEntities()
|
|
{
|
|
List<IEntity2> toReturn = new List<IEntity2>();
|
|
if(_tblReferralFromPlace!=null)
|
|
{
|
|
toReturn.Add(_tblReferralFromPlace);
|
|
}
|
|
return toReturn;
|
|
}
|
|
|
|
/// <summary>Gets a list of all entity collections stored as member variables in this entity. Only 1:n related collections are returned.</summary>
|
|
/// <returns>Collection with 0 or more IEntityCollection2 objects, referenced by this entity</returns>
|
|
protected override List<IEntityCollection2> GetMemberEntityCollections()
|
|
{
|
|
List<IEntityCollection2> toReturn = new List<IEntityCollection2>();
|
|
toReturn.Add(this.TblClinicInfos);
|
|
toReturn.Add(this.TblDiaries);
|
|
toReturn.Add(this.TblExaminationInfos);
|
|
toReturn.Add(this.TblPreClinicsInfos);
|
|
toReturn.Add(this.TblPregnanceInfos);
|
|
toReturn.Add(this.TblReferralsTos);
|
|
toReturn.Add(this.TblReferraltoServices);
|
|
toReturn.Add(this.TblTreatmentInfos);
|
|
return toReturn;
|
|
}
|
|
|
|
/// <summary>ISerializable member. Does custom serialization so event handlers do not get serialized. Serializes members of this entity class and uses the base class' implementation to serialize the rest.</summary>
|
|
/// <param name="info"></param>
|
|
/// <param name="context"></param>
|
|
[EditorBrowsable(EditorBrowsableState.Never)]
|
|
protected override void GetObjectData(SerializationInfo info, StreamingContext context)
|
|
{
|
|
if (SerializationHelper.Optimization != SerializationOptimization.Fast)
|
|
{
|
|
info.AddValue("_tblClinicInfos", ((_tblClinicInfos!=null) && (_tblClinicInfos.Count>0) && !this.MarkedForDeletion)?_tblClinicInfos:null);
|
|
info.AddValue("_tblDiaries", ((_tblDiaries!=null) && (_tblDiaries.Count>0) && !this.MarkedForDeletion)?_tblDiaries:null);
|
|
info.AddValue("_tblExaminationInfos", ((_tblExaminationInfos!=null) && (_tblExaminationInfos.Count>0) && !this.MarkedForDeletion)?_tblExaminationInfos:null);
|
|
info.AddValue("_tblPreClinicsInfos", ((_tblPreClinicsInfos!=null) && (_tblPreClinicsInfos.Count>0) && !this.MarkedForDeletion)?_tblPreClinicsInfos:null);
|
|
info.AddValue("_tblPregnanceInfos", ((_tblPregnanceInfos!=null) && (_tblPregnanceInfos.Count>0) && !this.MarkedForDeletion)?_tblPregnanceInfos:null);
|
|
info.AddValue("_tblReferralsTos", ((_tblReferralsTos!=null) && (_tblReferralsTos.Count>0) && !this.MarkedForDeletion)?_tblReferralsTos:null);
|
|
info.AddValue("_tblReferraltoServices", ((_tblReferraltoServices!=null) && (_tblReferraltoServices.Count>0) && !this.MarkedForDeletion)?_tblReferraltoServices:null);
|
|
info.AddValue("_tblTreatmentInfos", ((_tblTreatmentInfos!=null) && (_tblTreatmentInfos.Count>0) && !this.MarkedForDeletion)?_tblTreatmentInfos:null);
|
|
info.AddValue("_tblReferralFromPlace", (!this.MarkedForDeletion?_tblReferralFromPlace:null));
|
|
}
|
|
// __LLBLGENPRO_USER_CODE_REGION_START GetObjectInfo
|
|
// __LLBLGENPRO_USER_CODE_REGION_END
|
|
|
|
base.GetObjectData(info, context);
|
|
}
|
|
|
|
|
|
|
|
/// <summary>Gets a list of all the EntityRelation objects the type of this instance has.</summary>
|
|
/// <returns>A list of all the EntityRelation objects the type of this instance has. Hierarchy relations are excluded.</returns>
|
|
protected override List<IEntityRelation> GetAllRelations()
|
|
{
|
|
return new TblPatientRelations().GetAllRelations();
|
|
}
|
|
|
|
/// <summary> Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'TblClinicInfo' to this entity.</summary>
|
|
/// <returns></returns>
|
|
public virtual IRelationPredicateBucket GetRelationInfoTblClinicInfos()
|
|
{
|
|
IRelationPredicateBucket bucket = new RelationPredicateBucket();
|
|
bucket.PredicateExpression.Add(new FieldCompareValuePredicate(TblClinicInfoFields.PatientId, null, ComparisonOperator.Equal, this.PatientId));
|
|
return bucket;
|
|
}
|
|
|
|
/// <summary> Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'TblDiary' to this entity.</summary>
|
|
/// <returns></returns>
|
|
public virtual IRelationPredicateBucket GetRelationInfoTblDiaries()
|
|
{
|
|
IRelationPredicateBucket bucket = new RelationPredicateBucket();
|
|
bucket.PredicateExpression.Add(new FieldCompareValuePredicate(TblDiaryFields.PatientId, null, ComparisonOperator.Equal, this.PatientId));
|
|
return bucket;
|
|
}
|
|
|
|
/// <summary> Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'TblExaminationInfo' to this entity.</summary>
|
|
/// <returns></returns>
|
|
public virtual IRelationPredicateBucket GetRelationInfoTblExaminationInfos()
|
|
{
|
|
IRelationPredicateBucket bucket = new RelationPredicateBucket();
|
|
bucket.PredicateExpression.Add(new FieldCompareValuePredicate(TblExaminationInfoFields.PatientId, null, ComparisonOperator.Equal, this.PatientId));
|
|
return bucket;
|
|
}
|
|
|
|
/// <summary> Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'TblPreClinicsInfo' to this entity.</summary>
|
|
/// <returns></returns>
|
|
public virtual IRelationPredicateBucket GetRelationInfoTblPreClinicsInfos()
|
|
{
|
|
IRelationPredicateBucket bucket = new RelationPredicateBucket();
|
|
bucket.PredicateExpression.Add(new FieldCompareValuePredicate(TblPreClinicsInfoFields.PatientId, null, ComparisonOperator.Equal, this.PatientId));
|
|
return bucket;
|
|
}
|
|
|
|
/// <summary> Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'TblPregnanceInfo' to this entity.</summary>
|
|
/// <returns></returns>
|
|
public virtual IRelationPredicateBucket GetRelationInfoTblPregnanceInfos()
|
|
{
|
|
IRelationPredicateBucket bucket = new RelationPredicateBucket();
|
|
bucket.PredicateExpression.Add(new FieldCompareValuePredicate(TblPregnanceInfoFields.PatientId, null, ComparisonOperator.Equal, this.PatientId));
|
|
return bucket;
|
|
}
|
|
|
|
/// <summary> Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'TblReferralsTo' to this entity.</summary>
|
|
/// <returns></returns>
|
|
public virtual IRelationPredicateBucket GetRelationInfoTblReferralsTos()
|
|
{
|
|
IRelationPredicateBucket bucket = new RelationPredicateBucket();
|
|
bucket.PredicateExpression.Add(new FieldCompareValuePredicate(TblReferralsToFields.PatientId, null, ComparisonOperator.Equal, this.PatientId));
|
|
return bucket;
|
|
}
|
|
|
|
/// <summary> Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'TblReferraltoService' to this entity.</summary>
|
|
/// <returns></returns>
|
|
public virtual IRelationPredicateBucket GetRelationInfoTblReferraltoServices()
|
|
{
|
|
IRelationPredicateBucket bucket = new RelationPredicateBucket();
|
|
bucket.PredicateExpression.Add(new FieldCompareValuePredicate(TblReferraltoServiceFields.PatientId, null, ComparisonOperator.Equal, this.PatientId));
|
|
return bucket;
|
|
}
|
|
|
|
/// <summary> Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'TblTreatmentInfo' to this entity.</summary>
|
|
/// <returns></returns>
|
|
public virtual IRelationPredicateBucket GetRelationInfoTblTreatmentInfos()
|
|
{
|
|
IRelationPredicateBucket bucket = new RelationPredicateBucket();
|
|
bucket.PredicateExpression.Add(new FieldCompareValuePredicate(TblTreatmentInfoFields.PatientId, null, ComparisonOperator.Equal, this.PatientId));
|
|
return bucket;
|
|
}
|
|
|
|
/// <summary> Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'TblReferralFromPlace' to this entity.</summary>
|
|
/// <returns></returns>
|
|
public virtual IRelationPredicateBucket GetRelationInfoTblReferralFromPlace()
|
|
{
|
|
IRelationPredicateBucket bucket = new RelationPredicateBucket();
|
|
bucket.PredicateExpression.Add(new FieldCompareValuePredicate(TblReferralFromPlaceFields.ReferralId, null, ComparisonOperator.Equal, this.ReferralId));
|
|
return bucket;
|
|
}
|
|
|
|
|
|
/// <summary>Creates a new instance of the factory related to this entity</summary>
|
|
protected override IEntityFactory2 CreateEntityFactory()
|
|
{
|
|
return EntityFactoryCache2.GetEntityFactory(typeof(TblPatientEntityFactory));
|
|
}
|
|
#if !CF
|
|
/// <summary>Adds the member collections to the collections queue (base first)</summary>
|
|
/// <param name="collectionsQueue">The collections queue.</param>
|
|
protected override void AddToMemberEntityCollectionsQueue(Queue<IEntityCollection2> collectionsQueue)
|
|
{
|
|
base.AddToMemberEntityCollectionsQueue(collectionsQueue);
|
|
collectionsQueue.Enqueue(this._tblClinicInfos);
|
|
collectionsQueue.Enqueue(this._tblDiaries);
|
|
collectionsQueue.Enqueue(this._tblExaminationInfos);
|
|
collectionsQueue.Enqueue(this._tblPreClinicsInfos);
|
|
collectionsQueue.Enqueue(this._tblPregnanceInfos);
|
|
collectionsQueue.Enqueue(this._tblReferralsTos);
|
|
collectionsQueue.Enqueue(this._tblReferraltoServices);
|
|
collectionsQueue.Enqueue(this._tblTreatmentInfos);
|
|
}
|
|
|
|
/// <summary>Gets the member collections queue from the queue (base first)</summary>
|
|
/// <param name="collectionsQueue">The collections queue.</param>
|
|
protected override void GetFromMemberEntityCollectionsQueue(Queue<IEntityCollection2> collectionsQueue)
|
|
{
|
|
base.GetFromMemberEntityCollectionsQueue(collectionsQueue);
|
|
this._tblClinicInfos = (EntityCollection<TblClinicInfoEntity>) collectionsQueue.Dequeue();
|
|
this._tblDiaries = (EntityCollection<TblDiaryEntity>) collectionsQueue.Dequeue();
|
|
this._tblExaminationInfos = (EntityCollection<TblExaminationInfoEntity>) collectionsQueue.Dequeue();
|
|
this._tblPreClinicsInfos = (EntityCollection<TblPreClinicsInfoEntity>) collectionsQueue.Dequeue();
|
|
this._tblPregnanceInfos = (EntityCollection<TblPregnanceInfoEntity>) collectionsQueue.Dequeue();
|
|
this._tblReferralsTos = (EntityCollection<TblReferralsToEntity>) collectionsQueue.Dequeue();
|
|
this._tblReferraltoServices = (EntityCollection<TblReferraltoServiceEntity>) collectionsQueue.Dequeue();
|
|
this._tblTreatmentInfos = (EntityCollection<TblTreatmentInfoEntity>) collectionsQueue.Dequeue();
|
|
|
|
}
|
|
|
|
/// <summary>Determines whether the entity has populated member collections</summary>
|
|
/// <returns>true if the entity has populated member collections.</returns>
|
|
protected override bool HasPopulatedMemberEntityCollections()
|
|
{
|
|
bool toReturn = false;
|
|
toReturn |=(this._tblClinicInfos != null);
|
|
toReturn |=(this._tblDiaries != null);
|
|
toReturn |=(this._tblExaminationInfos != null);
|
|
toReturn |=(this._tblPreClinicsInfos != null);
|
|
toReturn |=(this._tblPregnanceInfos != null);
|
|
toReturn |=(this._tblReferralsTos != null);
|
|
toReturn |=(this._tblReferraltoServices != null);
|
|
toReturn |=(this._tblTreatmentInfos != null);
|
|
return toReturn ? true : base.HasPopulatedMemberEntityCollections();
|
|
}
|
|
|
|
/// <summary>Creates the member entity collections queue.</summary>
|
|
/// <param name="collectionsQueue">The collections queue.</param>
|
|
/// <param name="requiredQueue">The required queue.</param>
|
|
protected override void CreateMemberEntityCollectionsQueue(Queue<IEntityCollection2> collectionsQueue, Queue<bool> requiredQueue)
|
|
{
|
|
base.CreateMemberEntityCollectionsQueue(collectionsQueue, requiredQueue);
|
|
collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection<TblClinicInfoEntity>(EntityFactoryCache2.GetEntityFactory(typeof(TblClinicInfoEntityFactory))) : null);
|
|
collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection<TblDiaryEntity>(EntityFactoryCache2.GetEntityFactory(typeof(TblDiaryEntityFactory))) : null);
|
|
collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection<TblExaminationInfoEntity>(EntityFactoryCache2.GetEntityFactory(typeof(TblExaminationInfoEntityFactory))) : null);
|
|
collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection<TblPreClinicsInfoEntity>(EntityFactoryCache2.GetEntityFactory(typeof(TblPreClinicsInfoEntityFactory))) : null);
|
|
collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection<TblPregnanceInfoEntity>(EntityFactoryCache2.GetEntityFactory(typeof(TblPregnanceInfoEntityFactory))) : null);
|
|
collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection<TblReferralsToEntity>(EntityFactoryCache2.GetEntityFactory(typeof(TblReferralsToEntityFactory))) : null);
|
|
collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection<TblReferraltoServiceEntity>(EntityFactoryCache2.GetEntityFactory(typeof(TblReferraltoServiceEntityFactory))) : null);
|
|
collectionsQueue.Enqueue(requiredQueue.Dequeue() ? new EntityCollection<TblTreatmentInfoEntity>(EntityFactoryCache2.GetEntityFactory(typeof(TblTreatmentInfoEntityFactory))) : null);
|
|
}
|
|
#endif
|
|
/// <summary>Gets all related data objects, stored by name. The name is the field name mapped onto the relation for that particular data element.</summary>
|
|
/// <returns>Dictionary with per name the related referenced data element, which can be an entity collection or an entity or null</returns>
|
|
protected override Dictionary<string, object> GetRelatedData()
|
|
{
|
|
Dictionary<string, object> toReturn = new Dictionary<string, object>();
|
|
toReturn.Add("TblReferralFromPlace", _tblReferralFromPlace);
|
|
toReturn.Add("TblClinicInfos", _tblClinicInfos);
|
|
toReturn.Add("TblDiaries", _tblDiaries);
|
|
toReturn.Add("TblExaminationInfos", _tblExaminationInfos);
|
|
toReturn.Add("TblPreClinicsInfos", _tblPreClinicsInfos);
|
|
toReturn.Add("TblPregnanceInfos", _tblPregnanceInfos);
|
|
toReturn.Add("TblReferralsTos", _tblReferralsTos);
|
|
toReturn.Add("TblReferraltoServices", _tblReferraltoServices);
|
|
toReturn.Add("TblTreatmentInfos", _tblTreatmentInfos);
|
|
return toReturn;
|
|
}
|
|
|
|
/// <summary> Initializes the class members</summary>
|
|
private void InitClassMembers()
|
|
{
|
|
PerformDependencyInjection();
|
|
|
|
// __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers
|
|
// __LLBLGENPRO_USER_CODE_REGION_END
|
|
|
|
OnInitClassMembersComplete();
|
|
}
|
|
|
|
|
|
#region Custom Property Hashtable Setup
|
|
/// <summary> Initializes the hashtables for the entity type and entity field custom properties. </summary>
|
|
private static void SetupCustomPropertyHashtables()
|
|
{
|
|
_customProperties = new Dictionary<string, string>();
|
|
_fieldsCustomProperties = new Dictionary<string, Dictionary<string, string>>();
|
|
Dictionary<string, string> fieldHashtable;
|
|
fieldHashtable = new Dictionary<string, string>();
|
|
_fieldsCustomProperties.Add("Address", fieldHashtable);
|
|
fieldHashtable = new Dictionary<string, string>();
|
|
_fieldsCustomProperties.Add("BirthYear", fieldHashtable);
|
|
fieldHashtable = new Dictionary<string, string>();
|
|
_fieldsCustomProperties.Add("CommuneId", fieldHashtable);
|
|
fieldHashtable = new Dictionary<string, string>();
|
|
_fieldsCustomProperties.Add("CreateDate", fieldHashtable);
|
|
fieldHashtable = new Dictionary<string, string>();
|
|
_fieldsCustomProperties.Add("DateofArv", fieldHashtable);
|
|
fieldHashtable = new Dictionary<string, string>();
|
|
_fieldsCustomProperties.Add("DateofReceivingDrug", fieldHashtable);
|
|
fieldHashtable = new Dictionary<string, string>();
|
|
_fieldsCustomProperties.Add("Dateofreferral", fieldHashtable);
|
|
fieldHashtable = new Dictionary<string, string>();
|
|
_fieldsCustomProperties.Add("DateofRegistration", fieldHashtable);
|
|
fieldHashtable = new Dictionary<string, string>();
|
|
_fieldsCustomProperties.Add("DeathDate", fieldHashtable);
|
|
fieldHashtable = new Dictionary<string, string>();
|
|
_fieldsCustomProperties.Add("DistrictId", fieldHashtable);
|
|
fieldHashtable = new Dictionary<string, string>();
|
|
_fieldsCustomProperties.Add("HaveArvBefore", fieldHashtable);
|
|
fieldHashtable = new Dictionary<string, string>();
|
|
_fieldsCustomProperties.Add("HivConfirmedDate", fieldHashtable);
|
|
fieldHashtable = new Dictionary<string, string>();
|
|
_fieldsCustomProperties.Add("IdentityCardNo", fieldHashtable);
|
|
fieldHashtable = new Dictionary<string, string>();
|
|
_fieldsCustomProperties.Add("Insuranceid", fieldHashtable);
|
|
fieldHashtable = new Dictionary<string, string>();
|
|
_fieldsCustomProperties.Add("ModifyDate", fieldHashtable);
|
|
fieldHashtable = new Dictionary<string, string>();
|
|
_fieldsCustomProperties.Add("OldPatientId", fieldHashtable);
|
|
fieldHashtable = new Dictionary<string, string>();
|
|
_fieldsCustomProperties.Add("PatientId", fieldHashtable);
|
|
fieldHashtable = new Dictionary<string, string>();
|
|
_fieldsCustomProperties.Add("PatientName", fieldHashtable);
|
|
fieldHashtable = new Dictionary<string, string>();
|
|
_fieldsCustomProperties.Add("ProvinceId", fieldHashtable);
|
|
fieldHashtable = new Dictionary<string, string>();
|
|
_fieldsCustomProperties.Add("ReferralId", fieldHashtable);
|
|
fieldHashtable = new Dictionary<string, string>();
|
|
_fieldsCustomProperties.Add("ReferralName", fieldHashtable);
|
|
fieldHashtable = new Dictionary<string, string>();
|
|
_fieldsCustomProperties.Add("ReferralProvinceId", fieldHashtable);
|
|
fieldHashtable = new Dictionary<string, string>();
|
|
_fieldsCustomProperties.Add("Regimenid", fieldHashtable);
|
|
fieldHashtable = new Dictionary<string, string>();
|
|
_fieldsCustomProperties.Add("Sex", fieldHashtable);
|
|
fieldHashtable = new Dictionary<string, string>();
|
|
_fieldsCustomProperties.Add("Sms", fieldHashtable);
|
|
fieldHashtable = new Dictionary<string, string>();
|
|
_fieldsCustomProperties.Add("Status", fieldHashtable);
|
|
fieldHashtable = new Dictionary<string, string>();
|
|
_fieldsCustomProperties.Add("SupporterInfo", fieldHashtable);
|
|
fieldHashtable = new Dictionary<string, string>();
|
|
_fieldsCustomProperties.Add("TelephoneNo", fieldHashtable);
|
|
}
|
|
#endregion
|
|
|
|
/// <summary> Removes the sync logic for member _tblReferralFromPlace</summary>
|
|
/// <param name="signalRelatedEntity">If set to true, it will call the related entity's UnsetRelatedEntity method</param>
|
|
/// <param name="resetFKFields">if set to true it will also reset the FK fields pointing to the related entity</param>
|
|
private void DesetupSyncTblReferralFromPlace(bool signalRelatedEntity, bool resetFKFields)
|
|
{
|
|
this.PerformDesetupSyncRelatedEntity( _tblReferralFromPlace, new PropertyChangedEventHandler( OnTblReferralFromPlacePropertyChanged ), "TblReferralFromPlace", Datalib.RelationClasses.StaticTblPatientRelations.TblReferralFromPlaceEntityUsingReferralIdStatic, true, signalRelatedEntity, "TblPatients", resetFKFields, new int[] { (int)TblPatientFieldIndex.ReferralId } );
|
|
_tblReferralFromPlace = null;
|
|
}
|
|
|
|
/// <summary> setups the sync logic for member _tblReferralFromPlace</summary>
|
|
/// <param name="relatedEntity">Instance to set as the related entity of type entityType</param>
|
|
private void SetupSyncTblReferralFromPlace(IEntityCore relatedEntity)
|
|
{
|
|
if(_tblReferralFromPlace!=relatedEntity)
|
|
{
|
|
DesetupSyncTblReferralFromPlace(true, true);
|
|
_tblReferralFromPlace = (TblReferralFromPlaceEntity)relatedEntity;
|
|
this.PerformSetupSyncRelatedEntity( _tblReferralFromPlace, new PropertyChangedEventHandler( OnTblReferralFromPlacePropertyChanged ), "TblReferralFromPlace", Datalib.RelationClasses.StaticTblPatientRelations.TblReferralFromPlaceEntityUsingReferralIdStatic, true, new string[] { } );
|
|
}
|
|
}
|
|
|
|
/// <summary>Handles property change events of properties in a related entity.</summary>
|
|
/// <param name="sender"></param>
|
|
/// <param name="e"></param>
|
|
private void OnTblReferralFromPlacePropertyChanged( object sender, PropertyChangedEventArgs e )
|
|
{
|
|
switch( e.PropertyName )
|
|
{
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
|
|
/// <summary> Initializes the class with empty data, as if it is a new Entity.</summary>
|
|
/// <param name="validator">The validator object for this TblPatientEntity</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();
|
|
|
|
}
|
|
|
|
#region Class Property Declarations
|
|
/// <summary> The relations object holding all relations of this entity with other entity classes.</summary>
|
|
public static TblPatientRelations Relations
|
|
{
|
|
get { return new TblPatientRelations(); }
|
|
}
|
|
|
|
/// <summary> The custom properties for this entity type.</summary>
|
|
/// <remarks>The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime.</remarks>
|
|
public static Dictionary<string, string> CustomProperties
|
|
{
|
|
get { return _customProperties;}
|
|
}
|
|
|
|
/// <summary> Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'TblClinicInfo' for this entity.</summary>
|
|
/// <returns>Ready to use IPrefetchPathElement2 implementation.</returns>
|
|
public static IPrefetchPathElement2 PrefetchPathTblClinicInfos
|
|
{
|
|
get { return new PrefetchPathElement2( new EntityCollection<TblClinicInfoEntity>(EntityFactoryCache2.GetEntityFactory(typeof(TblClinicInfoEntityFactory))), (IEntityRelation)GetRelationsForField("TblClinicInfos")[0], (int)Datalib.EntityType.TblPatientEntity, (int)Datalib.EntityType.TblClinicInfoEntity, 0, null, null, null, null, "TblClinicInfos", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); }
|
|
}
|
|
|
|
/// <summary> Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'TblDiary' for this entity.</summary>
|
|
/// <returns>Ready to use IPrefetchPathElement2 implementation.</returns>
|
|
public static IPrefetchPathElement2 PrefetchPathTblDiaries
|
|
{
|
|
get { return new PrefetchPathElement2( new EntityCollection<TblDiaryEntity>(EntityFactoryCache2.GetEntityFactory(typeof(TblDiaryEntityFactory))), (IEntityRelation)GetRelationsForField("TblDiaries")[0], (int)Datalib.EntityType.TblPatientEntity, (int)Datalib.EntityType.TblDiaryEntity, 0, null, null, null, null, "TblDiaries", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); }
|
|
}
|
|
|
|
/// <summary> Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'TblExaminationInfo' for this entity.</summary>
|
|
/// <returns>Ready to use IPrefetchPathElement2 implementation.</returns>
|
|
public static IPrefetchPathElement2 PrefetchPathTblExaminationInfos
|
|
{
|
|
get { return new PrefetchPathElement2( new EntityCollection<TblExaminationInfoEntity>(EntityFactoryCache2.GetEntityFactory(typeof(TblExaminationInfoEntityFactory))), (IEntityRelation)GetRelationsForField("TblExaminationInfos")[0], (int)Datalib.EntityType.TblPatientEntity, (int)Datalib.EntityType.TblExaminationInfoEntity, 0, null, null, null, null, "TblExaminationInfos", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); }
|
|
}
|
|
|
|
/// <summary> Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'TblPreClinicsInfo' for this entity.</summary>
|
|
/// <returns>Ready to use IPrefetchPathElement2 implementation.</returns>
|
|
public static IPrefetchPathElement2 PrefetchPathTblPreClinicsInfos
|
|
{
|
|
get { return new PrefetchPathElement2( new EntityCollection<TblPreClinicsInfoEntity>(EntityFactoryCache2.GetEntityFactory(typeof(TblPreClinicsInfoEntityFactory))), (IEntityRelation)GetRelationsForField("TblPreClinicsInfos")[0], (int)Datalib.EntityType.TblPatientEntity, (int)Datalib.EntityType.TblPreClinicsInfoEntity, 0, null, null, null, null, "TblPreClinicsInfos", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); }
|
|
}
|
|
|
|
/// <summary> Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'TblPregnanceInfo' for this entity.</summary>
|
|
/// <returns>Ready to use IPrefetchPathElement2 implementation.</returns>
|
|
public static IPrefetchPathElement2 PrefetchPathTblPregnanceInfos
|
|
{
|
|
get { return new PrefetchPathElement2( new EntityCollection<TblPregnanceInfoEntity>(EntityFactoryCache2.GetEntityFactory(typeof(TblPregnanceInfoEntityFactory))), (IEntityRelation)GetRelationsForField("TblPregnanceInfos")[0], (int)Datalib.EntityType.TblPatientEntity, (int)Datalib.EntityType.TblPregnanceInfoEntity, 0, null, null, null, null, "TblPregnanceInfos", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); }
|
|
}
|
|
|
|
/// <summary> Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'TblReferralsTo' for this entity.</summary>
|
|
/// <returns>Ready to use IPrefetchPathElement2 implementation.</returns>
|
|
public static IPrefetchPathElement2 PrefetchPathTblReferralsTos
|
|
{
|
|
get { return new PrefetchPathElement2( new EntityCollection<TblReferralsToEntity>(EntityFactoryCache2.GetEntityFactory(typeof(TblReferralsToEntityFactory))), (IEntityRelation)GetRelationsForField("TblReferralsTos")[0], (int)Datalib.EntityType.TblPatientEntity, (int)Datalib.EntityType.TblReferralsToEntity, 0, null, null, null, null, "TblReferralsTos", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); }
|
|
}
|
|
|
|
/// <summary> Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'TblReferraltoService' for this entity.</summary>
|
|
/// <returns>Ready to use IPrefetchPathElement2 implementation.</returns>
|
|
public static IPrefetchPathElement2 PrefetchPathTblReferraltoServices
|
|
{
|
|
get { return new PrefetchPathElement2( new EntityCollection<TblReferraltoServiceEntity>(EntityFactoryCache2.GetEntityFactory(typeof(TblReferraltoServiceEntityFactory))), (IEntityRelation)GetRelationsForField("TblReferraltoServices")[0], (int)Datalib.EntityType.TblPatientEntity, (int)Datalib.EntityType.TblReferraltoServiceEntity, 0, null, null, null, null, "TblReferraltoServices", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); }
|
|
}
|
|
|
|
/// <summary> Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'TblTreatmentInfo' for this entity.</summary>
|
|
/// <returns>Ready to use IPrefetchPathElement2 implementation.</returns>
|
|
public static IPrefetchPathElement2 PrefetchPathTblTreatmentInfos
|
|
{
|
|
get { return new PrefetchPathElement2( new EntityCollection<TblTreatmentInfoEntity>(EntityFactoryCache2.GetEntityFactory(typeof(TblTreatmentInfoEntityFactory))), (IEntityRelation)GetRelationsForField("TblTreatmentInfos")[0], (int)Datalib.EntityType.TblPatientEntity, (int)Datalib.EntityType.TblTreatmentInfoEntity, 0, null, null, null, null, "TblTreatmentInfos", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); }
|
|
}
|
|
|
|
/// <summary> Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'TblReferralFromPlace' for this entity.</summary>
|
|
/// <returns>Ready to use IPrefetchPathElement2 implementation.</returns>
|
|
public static IPrefetchPathElement2 PrefetchPathTblReferralFromPlace
|
|
{
|
|
get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(TblReferralFromPlaceEntityFactory))), (IEntityRelation)GetRelationsForField("TblReferralFromPlace")[0], (int)Datalib.EntityType.TblPatientEntity, (int)Datalib.EntityType.TblReferralFromPlaceEntity, 0, null, null, null, null, "TblReferralFromPlace", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.ManyToOne); }
|
|
}
|
|
|
|
|
|
/// <summary> The custom properties for the type of this entity instance.</summary>
|
|
/// <remarks>The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime.</remarks>
|
|
[Browsable(false), XmlIgnore]
|
|
protected override Dictionary<string, string> CustomPropertiesOfType
|
|
{
|
|
get { return CustomProperties;}
|
|
}
|
|
|
|
/// <summary> The custom properties for the fields of this entity type. The returned Hashtable contains per fieldname a hashtable of name-value pairs. </summary>
|
|
/// <remarks>The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime.</remarks>
|
|
public static Dictionary<string, Dictionary<string, string>> FieldsCustomProperties
|
|
{
|
|
get { return _fieldsCustomProperties;}
|
|
}
|
|
|
|
/// <summary> The custom properties for the fields of the type of this entity instance. The returned Hashtable contains per fieldname a hashtable of name-value pairs. </summary>
|
|
/// <remarks>The data returned from this property should be considered read-only: it is not thread safe to alter this data at runtime.</remarks>
|
|
[Browsable(false), XmlIgnore]
|
|
protected override Dictionary<string, Dictionary<string, string>> FieldsCustomPropertiesOfType
|
|
{
|
|
get { return FieldsCustomProperties;}
|
|
}
|
|
|
|
/// <summary> The Address property of the Entity TblPatient<br/><br/></summary>
|
|
/// <remarks>Mapped on table field: "tblPatients"."Address"<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 Address
|
|
{
|
|
get { return (System.String)GetValue((int)TblPatientFieldIndex.Address, true); }
|
|
set { SetValue((int)TblPatientFieldIndex.Address, value); }
|
|
}
|
|
|
|
/// <summary> The BirthYear property of the Entity TblPatient<br/><br/></summary>
|
|
/// <remarks>Mapped on table field: "tblPatients"."BirthYear"<br/>
|
|
/// Table field type characteristics (type, precision, scale, length): Integer, 10, 0, 0<br/>
|
|
/// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false</remarks>
|
|
public virtual System.Int32 BirthYear
|
|
{
|
|
get { return (System.Int32)GetValue((int)TblPatientFieldIndex.BirthYear, true); }
|
|
set { SetValue((int)TblPatientFieldIndex.BirthYear, value); }
|
|
}
|
|
|
|
/// <summary> The CommuneId property of the Entity TblPatient<br/><br/></summary>
|
|
/// <remarks>Mapped on table field: "tblPatients"."CommuneID"<br/>
|
|
/// Table field type characteristics (type, precision, scale, length): VarWChar, 0, 0, 7<br/>
|
|
/// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false</remarks>
|
|
public virtual System.String CommuneId
|
|
{
|
|
get { return (System.String)GetValue((int)TblPatientFieldIndex.CommuneId, true); }
|
|
set { SetValue((int)TblPatientFieldIndex.CommuneId, value); }
|
|
}
|
|
|
|
/// <summary> The CreateDate property of the Entity TblPatient<br/><br/></summary>
|
|
/// <remarks>Mapped on table field: "tblPatients"."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)TblPatientFieldIndex.CreateDate, false); }
|
|
set { SetValue((int)TblPatientFieldIndex.CreateDate, value); }
|
|
}
|
|
|
|
/// <summary> The DateofArv property of the Entity TblPatient<br/><br/></summary>
|
|
/// <remarks>Mapped on table field: "tblPatients"."DateofARV"<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> DateofArv
|
|
{
|
|
get { return (Nullable<System.DateTime>)GetValue((int)TblPatientFieldIndex.DateofArv, false); }
|
|
set { SetValue((int)TblPatientFieldIndex.DateofArv, value); }
|
|
}
|
|
|
|
/// <summary> The DateofReceivingDrug property of the Entity TblPatient<br/><br/></summary>
|
|
/// <remarks>Mapped on table field: "tblPatients"."DateofReceivingDrug"<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> DateofReceivingDrug
|
|
{
|
|
get { return (Nullable<System.DateTime>)GetValue((int)TblPatientFieldIndex.DateofReceivingDrug, false); }
|
|
set { SetValue((int)TblPatientFieldIndex.DateofReceivingDrug, value); }
|
|
}
|
|
|
|
/// <summary> The Dateofreferral property of the Entity TblPatient<br/><br/></summary>
|
|
/// <remarks>Mapped on table field: "tblPatients"."Dateofreferral"<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> Dateofreferral
|
|
{
|
|
get { return (Nullable<System.DateTime>)GetValue((int)TblPatientFieldIndex.Dateofreferral, false); }
|
|
set { SetValue((int)TblPatientFieldIndex.Dateofreferral, value); }
|
|
}
|
|
|
|
/// <summary> The DateofRegistration property of the Entity TblPatient<br/><br/></summary>
|
|
/// <remarks>Mapped on table field: "tblPatients"."DateofRegistration"<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> DateofRegistration
|
|
{
|
|
get { return (Nullable<System.DateTime>)GetValue((int)TblPatientFieldIndex.DateofRegistration, false); }
|
|
set { SetValue((int)TblPatientFieldIndex.DateofRegistration, value); }
|
|
}
|
|
|
|
/// <summary> The DeathDate property of the Entity TblPatient<br/><br/></summary>
|
|
/// <remarks>Mapped on table field: "tblPatients"."DeathDate"<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> DeathDate
|
|
{
|
|
get { return (Nullable<System.DateTime>)GetValue((int)TblPatientFieldIndex.DeathDate, false); }
|
|
set { SetValue((int)TblPatientFieldIndex.DeathDate, value); }
|
|
}
|
|
|
|
/// <summary> The DistrictId property of the Entity TblPatient<br/><br/></summary>
|
|
/// <remarks>Mapped on table field: "tblPatients"."DistrictID"<br/>
|
|
/// Table field type characteristics (type, precision, scale, length): VarWChar, 0, 0, 5<br/>
|
|
/// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false</remarks>
|
|
public virtual System.String DistrictId
|
|
{
|
|
get { return (System.String)GetValue((int)TblPatientFieldIndex.DistrictId, true); }
|
|
set { SetValue((int)TblPatientFieldIndex.DistrictId, value); }
|
|
}
|
|
|
|
/// <summary> The HaveArvBefore property of the Entity TblPatient<br/><br/></summary>
|
|
/// <remarks>Mapped on table field: "tblPatients"."HaveArvBefore"<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> HaveArvBefore
|
|
{
|
|
get { return (Nullable<System.Int16>)GetValue((int)TblPatientFieldIndex.HaveArvBefore, false); }
|
|
set { SetValue((int)TblPatientFieldIndex.HaveArvBefore, value); }
|
|
}
|
|
|
|
/// <summary> The HivConfirmedDate property of the Entity TblPatient<br/><br/></summary>
|
|
/// <remarks>Mapped on table field: "tblPatients"."HivConfirmedDate"<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> HivConfirmedDate
|
|
{
|
|
get { return (Nullable<System.DateTime>)GetValue((int)TblPatientFieldIndex.HivConfirmedDate, false); }
|
|
set { SetValue((int)TblPatientFieldIndex.HivConfirmedDate, value); }
|
|
}
|
|
|
|
/// <summary> The IdentityCardNo property of the Entity TblPatient<br/><br/></summary>
|
|
/// <remarks>Mapped on table field: "tblPatients"."IdentityCardNo"<br/>
|
|
/// Table field type characteristics (type, precision, scale, length): VarWChar, 0, 0, 20<br/>
|
|
/// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false</remarks>
|
|
public virtual System.String IdentityCardNo
|
|
{
|
|
get { return (System.String)GetValue((int)TblPatientFieldIndex.IdentityCardNo, true); }
|
|
set { SetValue((int)TblPatientFieldIndex.IdentityCardNo, value); }
|
|
}
|
|
|
|
/// <summary> The Insuranceid property of the Entity TblPatient<br/><br/></summary>
|
|
/// <remarks>Mapped on table field: "tblPatients"."insuranceid"<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 Insuranceid
|
|
{
|
|
get { return (System.String)GetValue((int)TblPatientFieldIndex.Insuranceid, true); }
|
|
set { SetValue((int)TblPatientFieldIndex.Insuranceid, value); }
|
|
}
|
|
|
|
/// <summary> The ModifyDate property of the Entity TblPatient<br/><br/></summary>
|
|
/// <remarks>Mapped on table field: "tblPatients"."ModifyDate"<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> ModifyDate
|
|
{
|
|
get { return (Nullable<System.DateTime>)GetValue((int)TblPatientFieldIndex.ModifyDate, false); }
|
|
set { SetValue((int)TblPatientFieldIndex.ModifyDate, value); }
|
|
}
|
|
|
|
/// <summary> The OldPatientId property of the Entity TblPatient<br/><br/></summary>
|
|
/// <remarks>Mapped on table field: "tblPatients"."OldPatientID"<br/>
|
|
/// Table field type characteristics (type, precision, scale, length): VarWChar, 0, 0, 15<br/>
|
|
/// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false</remarks>
|
|
public virtual System.String OldPatientId
|
|
{
|
|
get { return (System.String)GetValue((int)TblPatientFieldIndex.OldPatientId, true); }
|
|
set { SetValue((int)TblPatientFieldIndex.OldPatientId, value); }
|
|
}
|
|
|
|
/// <summary> The PatientId property of the Entity TblPatient<br/><br/></summary>
|
|
/// <remarks>Mapped on table field: "tblPatients"."PatientID"<br/>
|
|
/// Table field type characteristics (type, precision, scale, length): VarWChar, 0, 0, 15<br/>
|
|
/// Table field behavior characteristics (is nullable, is PK, is identity): false, true, false</remarks>
|
|
public virtual System.String PatientId
|
|
{
|
|
get { return (System.String)GetValue((int)TblPatientFieldIndex.PatientId, true); }
|
|
set { SetValue((int)TblPatientFieldIndex.PatientId, value); }
|
|
}
|
|
|
|
/// <summary> The PatientName property of the Entity TblPatient<br/><br/></summary>
|
|
/// <remarks>Mapped on table field: "tblPatients"."PatientName"<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 PatientName
|
|
{
|
|
get { return (System.String)GetValue((int)TblPatientFieldIndex.PatientName, true); }
|
|
set { SetValue((int)TblPatientFieldIndex.PatientName, value); }
|
|
}
|
|
|
|
/// <summary> The ProvinceId property of the Entity TblPatient<br/><br/></summary>
|
|
/// <remarks>Mapped on table field: "tblPatients"."ProvinceID"<br/>
|
|
/// Table field type characteristics (type, precision, scale, length): VarWChar, 0, 0, 3<br/>
|
|
/// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false</remarks>
|
|
public virtual System.String ProvinceId
|
|
{
|
|
get { return (System.String)GetValue((int)TblPatientFieldIndex.ProvinceId, true); }
|
|
set { SetValue((int)TblPatientFieldIndex.ProvinceId, value); }
|
|
}
|
|
|
|
/// <summary> The ReferralId property of the Entity TblPatient<br/><br/></summary>
|
|
/// <remarks>Mapped on table field: "tblPatients"."ReferralID"<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 ReferralId
|
|
{
|
|
get { return (System.String)GetValue((int)TblPatientFieldIndex.ReferralId, true); }
|
|
set { SetValue((int)TblPatientFieldIndex.ReferralId, value); }
|
|
}
|
|
|
|
/// <summary> The ReferralName property of the Entity TblPatient<br/><br/></summary>
|
|
/// <remarks>Mapped on table field: "tblPatients"."ReferralName"<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 ReferralName
|
|
{
|
|
get { return (System.String)GetValue((int)TblPatientFieldIndex.ReferralName, true); }
|
|
set { SetValue((int)TblPatientFieldIndex.ReferralName, value); }
|
|
}
|
|
|
|
/// <summary> The ReferralProvinceId property of the Entity TblPatient<br/><br/></summary>
|
|
/// <remarks>Mapped on table field: "tblPatients"."ReferralProvinceID"<br/>
|
|
/// Table field type characteristics (type, precision, scale, length): VarWChar, 0, 0, 3<br/>
|
|
/// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false</remarks>
|
|
public virtual System.String ReferralProvinceId
|
|
{
|
|
get { return (System.String)GetValue((int)TblPatientFieldIndex.ReferralProvinceId, true); }
|
|
set { SetValue((int)TblPatientFieldIndex.ReferralProvinceId, value); }
|
|
}
|
|
|
|
/// <summary> The Regimenid property of the Entity TblPatient<br/><br/></summary>
|
|
/// <remarks>Mapped on table field: "tblPatients"."Regimenid"<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 Regimenid
|
|
{
|
|
get { return (System.String)GetValue((int)TblPatientFieldIndex.Regimenid, true); }
|
|
set { SetValue((int)TblPatientFieldIndex.Regimenid, value); }
|
|
}
|
|
|
|
/// <summary> The Sex property of the Entity TblPatient<br/><br/></summary>
|
|
/// <remarks>Mapped on table field: "tblPatients"."Sex"<br/>
|
|
/// Table field type characteristics (type, precision, scale, length): SmallInt, 5, 0, 0<br/>
|
|
/// Table field behavior characteristics (is nullable, is PK, is identity): false, false, false</remarks>
|
|
public virtual System.Int16 Sex
|
|
{
|
|
get { return (System.Int16)GetValue((int)TblPatientFieldIndex.Sex, true); }
|
|
set { SetValue((int)TblPatientFieldIndex.Sex, value); }
|
|
}
|
|
|
|
/// <summary> The Sms property of the Entity TblPatient<br/><br/></summary>
|
|
/// <remarks>Mapped on table field: "tblPatients"."SMS"<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 Nullable<System.Boolean> Sms
|
|
{
|
|
get { return (Nullable<System.Boolean>)GetValue((int)TblPatientFieldIndex.Sms, false); }
|
|
set { SetValue((int)TblPatientFieldIndex.Sms, value); }
|
|
}
|
|
|
|
/// <summary> The Status property of the Entity TblPatient<br/><br/></summary>
|
|
/// <remarks>Mapped on table field: "tblPatients"."Status"<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 Status
|
|
{
|
|
get { return (System.String)GetValue((int)TblPatientFieldIndex.Status, true); }
|
|
set { SetValue((int)TblPatientFieldIndex.Status, value); }
|
|
}
|
|
|
|
/// <summary> The SupporterInfo property of the Entity TblPatient<br/><br/></summary>
|
|
/// <remarks>Mapped on table field: "tblPatients"."SupporterInfo"<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 SupporterInfo
|
|
{
|
|
get { return (System.String)GetValue((int)TblPatientFieldIndex.SupporterInfo, true); }
|
|
set { SetValue((int)TblPatientFieldIndex.SupporterInfo, value); }
|
|
}
|
|
|
|
/// <summary> The TelephoneNo property of the Entity TblPatient<br/><br/></summary>
|
|
/// <remarks>Mapped on table field: "tblPatients"."TelephoneNo"<br/>
|
|
/// Table field type characteristics (type, precision, scale, length): VarWChar, 0, 0, 20<br/>
|
|
/// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false</remarks>
|
|
public virtual System.String TelephoneNo
|
|
{
|
|
get { return (System.String)GetValue((int)TblPatientFieldIndex.TelephoneNo, true); }
|
|
set { SetValue((int)TblPatientFieldIndex.TelephoneNo, value); }
|
|
}
|
|
|
|
/// <summary> Gets the EntityCollection with the related entities of type 'TblClinicInfoEntity' 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(TblClinicInfoEntity))]
|
|
public virtual EntityCollection<TblClinicInfoEntity> TblClinicInfos
|
|
{
|
|
get { return GetOrCreateEntityCollection<TblClinicInfoEntity, TblClinicInfoEntityFactory>("TblPatient", true, false, ref _tblClinicInfos); }
|
|
}
|
|
|
|
/// <summary> Gets the EntityCollection with the related entities of type 'TblDiaryEntity' 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(TblDiaryEntity))]
|
|
public virtual EntityCollection<TblDiaryEntity> TblDiaries
|
|
{
|
|
get { return GetOrCreateEntityCollection<TblDiaryEntity, TblDiaryEntityFactory>("TblPatient", true, false, ref _tblDiaries); }
|
|
}
|
|
|
|
/// <summary> Gets the EntityCollection with the related entities of type 'TblExaminationInfoEntity' 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(TblExaminationInfoEntity))]
|
|
public virtual EntityCollection<TblExaminationInfoEntity> TblExaminationInfos
|
|
{
|
|
get { return GetOrCreateEntityCollection<TblExaminationInfoEntity, TblExaminationInfoEntityFactory>("TblPatient", true, false, ref _tblExaminationInfos); }
|
|
}
|
|
|
|
/// <summary> Gets the EntityCollection with the related entities of type 'TblPreClinicsInfoEntity' 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(TblPreClinicsInfoEntity))]
|
|
public virtual EntityCollection<TblPreClinicsInfoEntity> TblPreClinicsInfos
|
|
{
|
|
get { return GetOrCreateEntityCollection<TblPreClinicsInfoEntity, TblPreClinicsInfoEntityFactory>("TblPatient", true, false, ref _tblPreClinicsInfos); }
|
|
}
|
|
|
|
/// <summary> Gets the EntityCollection with the related entities of type 'TblPregnanceInfoEntity' 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(TblPregnanceInfoEntity))]
|
|
public virtual EntityCollection<TblPregnanceInfoEntity> TblPregnanceInfos
|
|
{
|
|
get { return GetOrCreateEntityCollection<TblPregnanceInfoEntity, TblPregnanceInfoEntityFactory>("TblPatient", true, false, ref _tblPregnanceInfos); }
|
|
}
|
|
|
|
/// <summary> Gets the EntityCollection with the related entities of type 'TblReferralsToEntity' 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(TblReferralsToEntity))]
|
|
public virtual EntityCollection<TblReferralsToEntity> TblReferralsTos
|
|
{
|
|
get { return GetOrCreateEntityCollection<TblReferralsToEntity, TblReferralsToEntityFactory>("TblPatient", true, false, ref _tblReferralsTos); }
|
|
}
|
|
|
|
/// <summary> Gets the EntityCollection with the related entities of type 'TblReferraltoServiceEntity' 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(TblReferraltoServiceEntity))]
|
|
public virtual EntityCollection<TblReferraltoServiceEntity> TblReferraltoServices
|
|
{
|
|
get { return GetOrCreateEntityCollection<TblReferraltoServiceEntity, TblReferraltoServiceEntityFactory>("TblPatient", true, false, ref _tblReferraltoServices); }
|
|
}
|
|
|
|
/// <summary> Gets the EntityCollection with the related entities of type 'TblTreatmentInfoEntity' 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(TblTreatmentInfoEntity))]
|
|
public virtual EntityCollection<TblTreatmentInfoEntity> TblTreatmentInfos
|
|
{
|
|
get { return GetOrCreateEntityCollection<TblTreatmentInfoEntity, TblTreatmentInfoEntityFactory>("TblPatient", true, false, ref _tblTreatmentInfos); }
|
|
}
|
|
|
|
/// <summary> Gets / sets related entity of type 'TblReferralFromPlaceEntity' 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 TblReferralFromPlaceEntity TblReferralFromPlace
|
|
{
|
|
get { return _tblReferralFromPlace; }
|
|
set
|
|
{
|
|
if(this.IsDeserializing)
|
|
{
|
|
SetupSyncTblReferralFromPlace(value);
|
|
}
|
|
else
|
|
{
|
|
SetSingleRelatedEntityNavigator(value, "TblPatients", "TblReferralFromPlace", _tblReferralFromPlace, true);
|
|
}
|
|
}
|
|
}
|
|
|
|
/// <summary> Gets the type of the hierarchy this entity is in. </summary>
|
|
protected override InheritanceHierarchyType LLBLGenProIsInHierarchyOfType
|
|
{
|
|
get { return InheritanceHierarchyType.None;}
|
|
}
|
|
|
|
/// <summary> Gets or sets a value indicating whether this entity is a subtype</summary>
|
|
protected override bool LLBLGenProIsSubType
|
|
{
|
|
get { return false;}
|
|
}
|
|
|
|
/// <summary>Returns the Datalib.EntityType enum value for this entity.</summary>
|
|
[Browsable(false), XmlIgnore]
|
|
protected override int LLBLGenProEntityTypeValue
|
|
{
|
|
get { return (int)Datalib.EntityType.TblPatientEntity; }
|
|
}
|
|
|
|
#endregion
|
|
|
|
|
|
#region Custom Entity code
|
|
|
|
// __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode
|
|
// __LLBLGENPRO_USER_CODE_REGION_END
|
|
|
|
#endregion
|
|
|
|
#region Included code
|
|
|
|
#endregion
|
|
}
|
|
}
|