662 lines
30 KiB
C#
662 lines
30 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 'TblChild'.<br/><br/></summary>
|
|
[Serializable]
|
|
public partial class TblChildEntity : CommonEntityBase
|
|
// __LLBLGENPRO_USER_CODE_REGION_START AdditionalInterfaces
|
|
// __LLBLGENPRO_USER_CODE_REGION_END
|
|
|
|
{
|
|
#region Class Member Declarations
|
|
private TblPregnanceInfoEntity _tblPregnanceInfo;
|
|
|
|
// __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 TblPregnanceInfo</summary>
|
|
public static readonly string TblPregnanceInfo = "TblPregnanceInfo";
|
|
}
|
|
#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 TblChildEntity()
|
|
{
|
|
SetupCustomPropertyHashtables();
|
|
}
|
|
|
|
/// <summary> CTor</summary>
|
|
public TblChildEntity():base("TblChildEntity")
|
|
{
|
|
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 TblChildEntity(IEntityFields2 fields):base("TblChildEntity")
|
|
{
|
|
InitClassEmpty(null, fields);
|
|
}
|
|
|
|
/// <summary> CTor</summary>
|
|
/// <param name="validator">The custom validator object for this TblChildEntity</param>
|
|
public TblChildEntity(IValidator validator):base("TblChildEntity")
|
|
{
|
|
InitClassEmpty(validator, null);
|
|
}
|
|
|
|
/// <summary> CTor</summary>
|
|
/// <param name="uniqueKey">PK value for TblChild which data should be fetched into this TblChild object</param>
|
|
/// <remarks>The entity is not fetched by this constructor. Use a DataAccessAdapter for that.</remarks>
|
|
public TblChildEntity(System.String uniqueKey):base("TblChildEntity")
|
|
{
|
|
InitClassEmpty(null, null);
|
|
this.UniqueKey = uniqueKey;
|
|
}
|
|
|
|
/// <summary> CTor</summary>
|
|
/// <param name="uniqueKey">PK value for TblChild which data should be fetched into this TblChild object</param>
|
|
/// <param name="validator">The custom validator object for this TblChildEntity</param>
|
|
/// <remarks>The entity is not fetched by this constructor. Use a DataAccessAdapter for that.</remarks>
|
|
public TblChildEntity(System.String uniqueKey, IValidator validator):base("TblChildEntity")
|
|
{
|
|
InitClassEmpty(validator, null);
|
|
this.UniqueKey = uniqueKey;
|
|
}
|
|
|
|
/// <summary> Protected CTor for deserialization</summary>
|
|
/// <param name="info"></param>
|
|
/// <param name="context"></param>
|
|
[EditorBrowsable(EditorBrowsableState.Never)]
|
|
protected TblChildEntity(SerializationInfo info, StreamingContext context) : base(info, context)
|
|
{
|
|
if(SerializationHelper.Optimization != SerializationOptimization.Fast)
|
|
{
|
|
_tblPregnanceInfo = (TblPregnanceInfoEntity)info.GetValue("_tblPregnanceInfo", typeof(TblPregnanceInfoEntity));
|
|
if(_tblPregnanceInfo!=null)
|
|
{
|
|
_tblPregnanceInfo.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((TblChildFieldIndex)fieldIndex)
|
|
{
|
|
case TblChildFieldIndex.PreganceId:
|
|
DesetupSyncTblPregnanceInfo(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 "TblPregnanceInfo":
|
|
this.TblPregnanceInfo = (TblPregnanceInfoEntity)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 "TblPregnanceInfo":
|
|
toReturn.Add(Relations.TblPregnanceInfoEntityUsingPreganceId);
|
|
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 "TblPregnanceInfo":
|
|
SetupSyncTblPregnanceInfo(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 "TblPregnanceInfo":
|
|
DesetupSyncTblPregnanceInfo(false, true);
|
|
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(_tblPregnanceInfo!=null)
|
|
{
|
|
toReturn.Add(_tblPregnanceInfo);
|
|
}
|
|
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>();
|
|
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("_tblPregnanceInfo", (!this.MarkedForDeletion?_tblPregnanceInfo: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 TblChildRelations().GetAllRelations();
|
|
}
|
|
|
|
/// <summary> Creates a new IRelationPredicateBucket object which contains the predicate expression and relation collection to fetch the related entity of type 'TblPregnanceInfo' to this entity.</summary>
|
|
/// <returns></returns>
|
|
public virtual IRelationPredicateBucket GetRelationInfoTblPregnanceInfo()
|
|
{
|
|
IRelationPredicateBucket bucket = new RelationPredicateBucket();
|
|
bucket.PredicateExpression.Add(new FieldCompareValuePredicate(TblPregnanceInfoFields.UniqueKey, null, ComparisonOperator.Equal, this.PreganceId));
|
|
return bucket;
|
|
}
|
|
|
|
|
|
/// <summary>Creates a new instance of the factory related to this entity</summary>
|
|
protected override IEntityFactory2 CreateEntityFactory()
|
|
{
|
|
return EntityFactoryCache2.GetEntityFactory(typeof(TblChildEntityFactory));
|
|
}
|
|
#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);
|
|
}
|
|
|
|
/// <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);
|
|
|
|
}
|
|
|
|
/// <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;
|
|
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);
|
|
}
|
|
#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("TblPregnanceInfo", _tblPregnanceInfo);
|
|
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("ChildId", fieldHashtable);
|
|
fieldHashtable = new Dictionary<string, string>();
|
|
_fieldsCustomProperties.Add("ChildName", fieldHashtable);
|
|
fieldHashtable = new Dictionary<string, string>();
|
|
_fieldsCustomProperties.Add("Ctxdate", fieldHashtable);
|
|
fieldHashtable = new Dictionary<string, string>();
|
|
_fieldsCustomProperties.Add("FeedingType", fieldHashtable);
|
|
fieldHashtable = new Dictionary<string, string>();
|
|
_fieldsCustomProperties.Add("Hiv18Date", fieldHashtable);
|
|
fieldHashtable = new Dictionary<string, string>();
|
|
_fieldsCustomProperties.Add("Hiv18Result", fieldHashtable);
|
|
fieldHashtable = new Dictionary<string, string>();
|
|
_fieldsCustomProperties.Add("Pcrcdate1", fieldHashtable);
|
|
fieldHashtable = new Dictionary<string, string>();
|
|
_fieldsCustomProperties.Add("Pcrcdate2", fieldHashtable);
|
|
fieldHashtable = new Dictionary<string, string>();
|
|
_fieldsCustomProperties.Add("Pcrresult1", fieldHashtable);
|
|
fieldHashtable = new Dictionary<string, string>();
|
|
_fieldsCustomProperties.Add("Pcrresult2", fieldHashtable);
|
|
fieldHashtable = new Dictionary<string, string>();
|
|
_fieldsCustomProperties.Add("PreganceId", fieldHashtable);
|
|
fieldHashtable = new Dictionary<string, string>();
|
|
_fieldsCustomProperties.Add("Sex", fieldHashtable);
|
|
fieldHashtable = new Dictionary<string, string>();
|
|
_fieldsCustomProperties.Add("UniqueKey", fieldHashtable);
|
|
}
|
|
#endregion
|
|
|
|
/// <summary> Removes the sync logic for member _tblPregnanceInfo</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 DesetupSyncTblPregnanceInfo(bool signalRelatedEntity, bool resetFKFields)
|
|
{
|
|
this.PerformDesetupSyncRelatedEntity( _tblPregnanceInfo, new PropertyChangedEventHandler( OnTblPregnanceInfoPropertyChanged ), "TblPregnanceInfo", Datalib.RelationClasses.StaticTblChildRelations.TblPregnanceInfoEntityUsingPreganceIdStatic, true, signalRelatedEntity, "TblChildren", resetFKFields, new int[] { (int)TblChildFieldIndex.PreganceId } );
|
|
_tblPregnanceInfo = null;
|
|
}
|
|
|
|
/// <summary> setups the sync logic for member _tblPregnanceInfo</summary>
|
|
/// <param name="relatedEntity">Instance to set as the related entity of type entityType</param>
|
|
private void SetupSyncTblPregnanceInfo(IEntityCore relatedEntity)
|
|
{
|
|
if(_tblPregnanceInfo!=relatedEntity)
|
|
{
|
|
DesetupSyncTblPregnanceInfo(true, true);
|
|
_tblPregnanceInfo = (TblPregnanceInfoEntity)relatedEntity;
|
|
this.PerformSetupSyncRelatedEntity( _tblPregnanceInfo, new PropertyChangedEventHandler( OnTblPregnanceInfoPropertyChanged ), "TblPregnanceInfo", Datalib.RelationClasses.StaticTblChildRelations.TblPregnanceInfoEntityUsingPreganceIdStatic, 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 OnTblPregnanceInfoPropertyChanged( 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 TblChildEntity</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 TblChildRelations Relations
|
|
{
|
|
get { return new TblChildRelations(); }
|
|
}
|
|
|
|
/// <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 'TblPregnanceInfo' for this entity.</summary>
|
|
/// <returns>Ready to use IPrefetchPathElement2 implementation.</returns>
|
|
public static IPrefetchPathElement2 PrefetchPathTblPregnanceInfo
|
|
{
|
|
get { return new PrefetchPathElement2(new EntityCollection(EntityFactoryCache2.GetEntityFactory(typeof(TblPregnanceInfoEntityFactory))), (IEntityRelation)GetRelationsForField("TblPregnanceInfo")[0], (int)Datalib.EntityType.TblChildEntity, (int)Datalib.EntityType.TblPregnanceInfoEntity, 0, null, null, null, null, "TblPregnanceInfo", 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 ChildId property of the Entity TblChild<br/><br/></summary>
|
|
/// <remarks>Mapped on table field: "tblChildren"."ChildId"<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 ChildId
|
|
{
|
|
get { return (System.String)GetValue((int)TblChildFieldIndex.ChildId, true); }
|
|
set { SetValue((int)TblChildFieldIndex.ChildId, value); }
|
|
}
|
|
|
|
/// <summary> The ChildName property of the Entity TblChild<br/><br/></summary>
|
|
/// <remarks>Mapped on table field: "tblChildren"."ChildName"<br/>
|
|
/// Table field type characteristics (type, precision, scale, length): VarWChar, 0, 0, 25<br/>
|
|
/// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false</remarks>
|
|
public virtual System.String ChildName
|
|
{
|
|
get { return (System.String)GetValue((int)TblChildFieldIndex.ChildName, true); }
|
|
set { SetValue((int)TblChildFieldIndex.ChildName, value); }
|
|
}
|
|
|
|
/// <summary> The Ctxdate property of the Entity TblChild<br/><br/></summary>
|
|
/// <remarks>Mapped on table field: "tblChildren"."CTXDate"<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> Ctxdate
|
|
{
|
|
get { return (Nullable<System.DateTime>)GetValue((int)TblChildFieldIndex.Ctxdate, false); }
|
|
set { SetValue((int)TblChildFieldIndex.Ctxdate, value); }
|
|
}
|
|
|
|
/// <summary> The FeedingType property of the Entity TblChild<br/><br/></summary>
|
|
/// <remarks>Mapped on table field: "tblChildren"."FeedingType"<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 FeedingType
|
|
{
|
|
get { return (System.Int16)GetValue((int)TblChildFieldIndex.FeedingType, true); }
|
|
set { SetValue((int)TblChildFieldIndex.FeedingType, value); }
|
|
}
|
|
|
|
/// <summary> The Hiv18Date property of the Entity TblChild<br/><br/></summary>
|
|
/// <remarks>Mapped on table field: "tblChildren"."HIV18Date"<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> Hiv18Date
|
|
{
|
|
get { return (Nullable<System.DateTime>)GetValue((int)TblChildFieldIndex.Hiv18Date, false); }
|
|
set { SetValue((int)TblChildFieldIndex.Hiv18Date, value); }
|
|
}
|
|
|
|
/// <summary> The Hiv18Result property of the Entity TblChild<br/><br/></summary>
|
|
/// <remarks>Mapped on table field: "tblChildren"."HIV18Result"<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> Hiv18Result
|
|
{
|
|
get { return (Nullable<System.Int16>)GetValue((int)TblChildFieldIndex.Hiv18Result, false); }
|
|
set { SetValue((int)TblChildFieldIndex.Hiv18Result, value); }
|
|
}
|
|
|
|
/// <summary> The Pcrcdate1 property of the Entity TblChild<br/><br/></summary>
|
|
/// <remarks>Mapped on table field: "tblChildren"."PCRCDate1"<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> Pcrcdate1
|
|
{
|
|
get { return (Nullable<System.DateTime>)GetValue((int)TblChildFieldIndex.Pcrcdate1, false); }
|
|
set { SetValue((int)TblChildFieldIndex.Pcrcdate1, value); }
|
|
}
|
|
|
|
/// <summary> The Pcrcdate2 property of the Entity TblChild<br/><br/></summary>
|
|
/// <remarks>Mapped on table field: "tblChildren"."PCRCDate2"<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> Pcrcdate2
|
|
{
|
|
get { return (Nullable<System.DateTime>)GetValue((int)TblChildFieldIndex.Pcrcdate2, false); }
|
|
set { SetValue((int)TblChildFieldIndex.Pcrcdate2, value); }
|
|
}
|
|
|
|
/// <summary> The Pcrresult1 property of the Entity TblChild<br/><br/></summary>
|
|
/// <remarks>Mapped on table field: "tblChildren"."PCRResult1"<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> Pcrresult1
|
|
{
|
|
get { return (Nullable<System.Int16>)GetValue((int)TblChildFieldIndex.Pcrresult1, false); }
|
|
set { SetValue((int)TblChildFieldIndex.Pcrresult1, value); }
|
|
}
|
|
|
|
/// <summary> The Pcrresult2 property of the Entity TblChild<br/><br/></summary>
|
|
/// <remarks>Mapped on table field: "tblChildren"."PCRResult2"<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> Pcrresult2
|
|
{
|
|
get { return (Nullable<System.Int16>)GetValue((int)TblChildFieldIndex.Pcrresult2, false); }
|
|
set { SetValue((int)TblChildFieldIndex.Pcrresult2, value); }
|
|
}
|
|
|
|
/// <summary> The PreganceId property of the Entity TblChild<br/><br/></summary>
|
|
/// <remarks>Mapped on table field: "tblChildren"."PreganceID"<br/>
|
|
/// Table field type characteristics (type, precision, scale, length): VarWChar, 0, 0, 32<br/>
|
|
/// Table field behavior characteristics (is nullable, is PK, is identity): true, false, false</remarks>
|
|
public virtual System.String PreganceId
|
|
{
|
|
get { return (System.String)GetValue((int)TblChildFieldIndex.PreganceId, true); }
|
|
set { SetValue((int)TblChildFieldIndex.PreganceId, value); }
|
|
}
|
|
|
|
/// <summary> The Sex property of the Entity TblChild<br/><br/></summary>
|
|
/// <remarks>Mapped on table field: "tblChildren"."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)TblChildFieldIndex.Sex, true); }
|
|
set { SetValue((int)TblChildFieldIndex.Sex, value); }
|
|
}
|
|
|
|
/// <summary> The UniqueKey property of the Entity TblChild<br/><br/></summary>
|
|
/// <remarks>Mapped on table field: "tblChildren"."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)TblChildFieldIndex.UniqueKey, true); }
|
|
set { SetValue((int)TblChildFieldIndex.UniqueKey, value); }
|
|
}
|
|
|
|
/// <summary> Gets / sets related entity of type 'TblPregnanceInfoEntity' 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 TblPregnanceInfoEntity TblPregnanceInfo
|
|
{
|
|
get { return _tblPregnanceInfo; }
|
|
set
|
|
{
|
|
if(this.IsDeserializing)
|
|
{
|
|
SetupSyncTblPregnanceInfo(value);
|
|
}
|
|
else
|
|
{
|
|
SetSingleRelatedEntityNavigator(value, "TblChildren", "TblPregnanceInfo", _tblPregnanceInfo, 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.TblChildEntity; }
|
|
}
|
|
|
|
#endregion
|
|
|
|
|
|
#region Custom Entity code
|
|
|
|
// __LLBLGENPRO_USER_CODE_REGION_START CustomEntityCode
|
|
// __LLBLGENPRO_USER_CODE_REGION_END
|
|
|
|
#endregion
|
|
|
|
#region Included code
|
|
|
|
#endregion
|
|
}
|
|
}
|