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,611 @@
///////////////////////////////////////////////////////////////
// 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 'TblPregnanceInfo'.<br/><br/></summary>
[Serializable]
public partial class TblPregnanceInfoEntity : CommonEntityBase
// __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces
// __LLBLGENPRO_USER_CODE_REGION_END
{
#region Class Member Declarations
private EntityCollection<TblChildEntity> _tblChildren;
private TblPatientEntity _tblPatient;
// __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 TblPatient</summary>
public static readonly string TblPatient = "TblPatient";
/// <summary>Member name TblChildren</summary>
public static readonly string TblChildren = "TblChildren";
}
#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 TblPregnanceInfoEntity()
{
SetupCustomPropertyHashtables();
}
/// <summary> CTor</summary>
public TblPregnanceInfoEntity():base("TblPregnanceInfoEntity")
{
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 TblPregnanceInfoEntity(IEntityFields2 fields):base("TblPregnanceInfoEntity")
{
InitClassEmpty(null, fields);
}
/// <summary> CTor</summary>
/// <param name="validator">The custom validator object for this TblPregnanceInfoEntity</param>
public TblPregnanceInfoEntity(IValidator validator):base("TblPregnanceInfoEntity")
{
InitClassEmpty(validator, null);
}
/// <summary> CTor</summary>
/// <param name="uniqueKey">PK value for TblPregnanceInfo which data should be fetched into this TblPregnanceInfo object</param>
/// <remarks>The entity is not fetched by this constructor. Use a DataAccessAdapter for that.</remarks>
public TblPregnanceInfoEntity(System.String uniqueKey):base("TblPregnanceInfoEntity")
{
InitClassEmpty(null, null);
this.UniqueKey = uniqueKey;
}
/// <summary> CTor</summary>
/// <param name="uniqueKey">PK value for TblPregnanceInfo which data should be fetched into this TblPregnanceInfo object</param>
/// <param name="validator">The custom validator object for this TblPregnanceInfoEntity</param>
/// <remarks>The entity is not fetched by this constructor. Use a DataAccessAdapter for that.</remarks>
public TblPregnanceInfoEntity(System.String uniqueKey, IValidator validator):base("TblPregnanceInfoEntity")
{
InitClassEmpty(validator, null);
this.UniqueKey = uniqueKey;
}
/// <summary> Protected CTor for deserialization</summary>
/// <param name="info"></param>
/// <param name="context"></param>
[EditorBrowsable(EditorBrowsableState.Never)]
protected TblPregnanceInfoEntity(SerializationInfo info, StreamingContext context) : base(info, context)
{
if(SerializationHelper.Optimization != SerializationOptimization.Fast)
{
_tblChildren = (EntityCollection<TblChildEntity>)info.GetValue("_tblChildren", typeof(EntityCollection<TblChildEntity>));
_tblPatient = (TblPatientEntity)info.GetValue("_tblPatient", typeof(TblPatientEntity));
if(_tblPatient!=null)
{
_tblPatient.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((TblPregnanceInfoFieldIndex)fieldIndex)
{
case TblPregnanceInfoFieldIndex.PatientId:
DesetupSyncTblPatient(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 "TblPatient":
this.TblPatient = (TblPatientEntity)entity;
break;
case "TblChildren":
this.TblChildren.Add((TblChildEntity)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 "TblPatient":
toReturn.Add(Relations.TblPatientEntityUsingPatientId);
break;
case "TblChildren":
toReturn.Add(Relations.TblChildEntityUsingPreganceId);
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 "TblPatient":
SetupSyncTblPatient(relatedEntity);
break;
case "TblChildren":
this.TblChildren.Add((TblChildEntity)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 "TblPatient":
DesetupSyncTblPatient(false, true);
break;
case "TblChildren":
this.PerformRelatedEntityRemoval(this.TblChildren, 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(_tblPatient!=null)
{
toReturn.Add(_tblPatient);
}
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.TblChildren);
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("_tblChildren", ((_tblChildren!=null) && (_tblChildren.Count>0) && !this.MarkedForDeletion)?_tblChildren:null);
info.AddValue("_tblPatient", (!this.MarkedForDeletion?_tblPatient: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 TblPregnanceInfoRelations().GetAllRelations();
}
/// <summary> Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entities of type 'TblChild' to this entity.</summary>
/// <returns></returns>
public virtual IRelationPredicateBucket GetRelationInfoTblChildren()
{
IRelationPredicateBucket bucket = new RelationPredicateBucket();
bucket.PredicateExpression.Add(new FieldCompareValuePredicate(TblChildFields.PreganceId, null, ComparisonOperator.Equal, this.UniqueKey));
return bucket;
}
/// <summary> Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'TblPatient' to this entity.</summary>
/// <returns></returns>
public virtual IRelationPredicateBucket GetRelationInfoTblPatient()
{
IRelationPredicateBucket bucket = new RelationPredicateBucket();
bucket.PredicateExpression.Add(new FieldCompareValuePredicate(TblPatientFields.PatientId, null, ComparisonOperator.Equal, this.PatientId));
return bucket;
}
/// <summary>Creates a new instance of the factory related to this entity</summary>
protected override IEntityFactory2 CreateEntityFactory()
{
return EntityFactoryCache2.GetEntityFactory(typeof(TblPregnanceInfoEntityFactory));
}
#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._tblChildren);
}
/// <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._tblChildren = (EntityCollection<TblChildEntity>) 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._tblChildren != 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<TblChildEntity>(EntityFactoryCache2.GetEntityFactory(typeof(TblChildEntityFactory))) : 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("TblPatient", _tblPatient);
toReturn.Add("TblChildren", _tblChildren);
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("EstimatedDelivery", fieldHashtable);
fieldHashtable = new Dictionary<string, string>();
_fieldsCustomProperties.Add("Note", fieldHashtable);
fieldHashtable = new Dictionary<string, string>();
_fieldsCustomProperties.Add("PatientId", fieldHashtable);
fieldHashtable = new Dictionary<string, string>();
_fieldsCustomProperties.Add("PregnanceDate", fieldHashtable);
fieldHashtable = new Dictionary<string, string>();
_fieldsCustomProperties.Add("UniqueKey", fieldHashtable);
}
#endregion
/// <summary> Removes the sync logic for member _tblPatient</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 DesetupSyncTblPatient(bool signalRelatedEntity, bool resetFKFields)
{
this.PerformDesetupSyncRelatedEntity( _tblPatient, new PropertyChangedEventHandler( OnTblPatientPropertyChanged ), "TblPatient", Datalib.RelationClasses.StaticTblPregnanceInfoRelations.TblPatientEntityUsingPatientIdStatic, true, signalRelatedEntity, "TblPregnanceInfos", resetFKFields, new int[] { (int)TblPregnanceInfoFieldIndex.PatientId } );
_tblPatient = null;
}
/// <summary> setups the sync logic for member _tblPatient</summary>
/// <param name="relatedEntity">Instance to set as the related entity of type entityType</param>
private void SetupSyncTblPatient(IEntityCore relatedEntity)
{
if(_tblPatient!=relatedEntity)
{
DesetupSyncTblPatient(true, true);
_tblPatient = (TblPatientEntity)relatedEntity;
this.PerformSetupSyncRelatedEntity( _tblPatient, new PropertyChangedEventHandler( OnTblPatientPropertyChanged ), "TblPatient", Datalib.RelationClasses.StaticTblPregnanceInfoRelations.TblPatientEntityUsingPatientIdStatic, 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 OnTblPatientPropertyChanged( 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 TblPregnanceInfoEntity</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 TblPregnanceInfoRelations Relations
{
get { return new TblPregnanceInfoRelations(); }
}
/// <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 'TblChild' for this entity.</summary>
/// <returns>Ready to use IPrefetchPathElement2 implementation.</returns>
public static IPrefetchPathElement2 PrefetchPathTblChildren
{
get { return new PrefetchPathElement2( new EntityCollection<TblChildEntity>(EntityFactoryCache2.GetEntityFactory(typeof(TblChildEntityFactory))), (IEntityRelation)GetRelationsForField("TblChildren")[0], (int)Datalib.EntityType.TblPregnanceInfoEntity, (int)Datalib.EntityType.TblChildEntity, 0, null, null, null, null, "TblChildren", SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany); }
}
/// <summary> Creates a new PrefetchPathElement2 object which contains all the information to prefetch the related entities of type 'TblPatient' for this entity.</summary>
/// <returns>Ready to use IPrefetchPathElement2 implementation.</returns>
public static IPrefetchPathElement2 PrefetchPathTblPatient
{
get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(TblPatientEntityFactory))), (IEntityRelation)GetRelationsForField("TblPatient")[0], (int)Datalib.EntityType.TblPregnanceInfoEntity, (int)Datalib.EntityType.TblPatientEntity, 0, null, null, null, null, "TblPatient", 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 EstimatedDelivery property of the Entity TblPregnanceInfo<br/><br/></summary>
/// <remarks>Mapped on table field: "tblPregnanceInfo"."EstimatedDelivery"<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> EstimatedDelivery
{
get { return (Nullable<System.DateTime>)GetValue((int)TblPregnanceInfoFieldIndex.EstimatedDelivery, false); }
set { SetValue((int)TblPregnanceInfoFieldIndex.EstimatedDelivery, value); }
}
/// <summary> The Note property of the Entity TblPregnanceInfo<br/><br/></summary>
/// <remarks>Mapped on table field: "tblPregnanceInfo"."Note"<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 Note
{
get { return (System.String)GetValue((int)TblPregnanceInfoFieldIndex.Note, true); }
set { SetValue((int)TblPregnanceInfoFieldIndex.Note, value); }
}
/// <summary> The PatientId property of the Entity TblPregnanceInfo<br/><br/></summary>
/// <remarks>Mapped on table field: "tblPregnanceInfo"."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): true, false, false</remarks>
public virtual System.String PatientId
{
get { return (System.String)GetValue((int)TblPregnanceInfoFieldIndex.PatientId, true); }
set { SetValue((int)TblPregnanceInfoFieldIndex.PatientId, value); }
}
/// <summary> The PregnanceDate property of the Entity TblPregnanceInfo<br/><br/></summary>
/// <remarks>Mapped on table field: "tblPregnanceInfo"."PregnanceDate"<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> PregnanceDate
{
get { return (Nullable<System.DateTime>)GetValue((int)TblPregnanceInfoFieldIndex.PregnanceDate, false); }
set { SetValue((int)TblPregnanceInfoFieldIndex.PregnanceDate, value); }
}
/// <summary> The UniqueKey property of the Entity TblPregnanceInfo<br/><br/></summary>
/// <remarks>Mapped on table field: "tblPregnanceInfo"."UniqueKey"<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 UniqueKey
{
get { return (System.String)GetValue((int)TblPregnanceInfoFieldIndex.UniqueKey, true); }
set { SetValue((int)TblPregnanceInfoFieldIndex.UniqueKey, value); }
}
/// <summary> Gets the EntityCollection with the related entities of type 'TblChildEntity' 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(TblChildEntity))]
public virtual EntityCollection<TblChildEntity> TblChildren
{
get { return GetOrCreateEntityCollection<TblChildEntity, TblChildEntityFactory>("TblPregnanceInfo", true, false, ref _tblChildren); }
}
/// <summary> Gets / sets related entity of type 'TblPatientEntity' 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 TblPatientEntity TblPatient
{
get { return _tblPatient; }
set
{
if(this.IsDeserializing)
{
SetupSyncTblPatient(value);
}
else
{
SetSingleRelatedEntityNavigator(value, "TblPregnanceInfos", "TblPatient", _tblPatient, 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.TblPregnanceInfoEntity; }
}
#endregion
#region Custom Entity code
// __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode
// __LLBLGENPRO_USER_CODE_REGION_END
#endregion
#region Included code
#endregion
}
}