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,244 @@
///////////////////////////////////////////////////////////////
// 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.
//////////////////////////////////////////////////////////////
using System;
using System.Linq;
using Datalib.EntityClasses;
using Datalib.HelperClasses;
using SD.LLBLGen.Pro.ORMSupportClasses;
using SD.LLBLGen.Pro.QuerySpec;
namespace Datalib.FactoryClasses
{
/// <summary>Factory class to produce DynamicQuery instances and EntityQuery instances</summary>
public partial class QueryFactory
{
private int _aliasCounter = 0;
/// <summary>Creates a new DynamicQuery instance with no alias set.</summary>
/// <returns>Ready to use DynamicQuery instance</returns>
public DynamicQuery Create()
{
return Create(string.Empty);
}
/// <summary>Creates a new DynamicQuery instance with the alias specified as the alias set.</summary>
/// <param name="alias">The alias.</param>
/// <returns>Ready to use DynamicQuery instance</returns>
public DynamicQuery Create(string alias)
{
return new DynamicQuery(new ElementCreator(), alias, this.GetNextAliasCounterValue());
}
/// <summary>Creates a new DynamicQuery which wraps the specified TableValuedFunction call</summary>
/// <param name="toWrap">The table valued function call to wrap.</param>
/// <returns>toWrap wrapped in a DynamicQuery.</returns>
public DynamicQuery Create(TableValuedFunctionCall toWrap)
{
return this.Create().From(new TvfCallWrapper(toWrap)).Select(toWrap.GetFieldsAsArray().Select(f => this.Field(toWrap.Alias, f.Alias)).ToArray());
}
/// <summary>Creates a new EntityQuery for the entity of the type specified with no alias set.</summary>
/// <typeparam name="TEntity">The type of the entity to produce the query for.</typeparam>
/// <returns>ready to use EntityQuery instance</returns>
public EntityQuery<TEntity> Create<TEntity>()
where TEntity : IEntityCore
{
return Create<TEntity>(string.Empty);
}
/// <summary>Creates a new EntityQuery for the entity of the type specified with the alias specified as the alias set.</summary>
/// <typeparam name="TEntity">The type of the entity to produce the query for.</typeparam>
/// <param name="alias">The alias.</param>
/// <returns>ready to use EntityQuery instance</returns>
public EntityQuery<TEntity> Create<TEntity>(string alias)
where TEntity : IEntityCore
{
return new EntityQuery<TEntity>(new ElementCreator(), alias, this.GetNextAliasCounterValue());
}
/// <summary>Creates a new field object with the name specified and of resulttype 'object'. Used for referring to aliased fields in another projection.</summary>
/// <param name="fieldName">Name of the field.</param>
/// <returns>Ready to use field object</returns>
public EntityField2 Field(string fieldName)
{
return Field<object>(string.Empty, fieldName);
}
/// <summary>Creates a new field object with the name specified and of resulttype 'object'. Used for referring to aliased fields in another projection.</summary>
/// <param name="targetAlias">The alias of the table/query to target.</param>
/// <param name="fieldName">Name of the field.</param>
/// <returns>Ready to use field object</returns>
public EntityField2 Field(string targetAlias, string fieldName)
{
return Field<object>(targetAlias, fieldName);
}
/// <summary>Creates a new field object with the name specified and of resulttype 'TValue'. Used for referring to aliased fields in another projection.</summary>
/// <typeparam name="TValue">The type of the value represented by the field.</typeparam>
/// <param name="fieldName">Name of the field.</param>
/// <returns>Ready to use field object</returns>
public EntityField2 Field<TValue>(string fieldName)
{
return Field<TValue>(string.Empty, fieldName);
}
/// <summary>Creates a new field object with the name specified and of resulttype 'TValue'. Used for referring to aliased fields in another projection.</summary>
/// <typeparam name="TValue">The type of the value.</typeparam>
/// <param name="targetAlias">The alias of the table/query to target.</param>
/// <param name="fieldName">Name of the field.</param>
/// <returns>Ready to use field object</returns>
public EntityField2 Field<TValue>(string targetAlias, string fieldName)
{
return new EntityField2(fieldName, targetAlias, typeof(TValue));
}
/// <summary>Gets the next alias counter value to produce artifical aliases with</summary>
private int GetNextAliasCounterValue()
{
_aliasCounter++;
return _aliasCounter;
}
/// <summary>Creates and returns a new EntityQuery for the TblAgeGroup entity</summary>
public EntityQuery<TblAgeGroupEntity> TblAgeGroup
{
get { return Create<TblAgeGroupEntity>(); }
}
/// <summary>Creates and returns a new EntityQuery for the TblAgency entity</summary>
public EntityQuery<TblAgencyEntity> TblAgency
{
get { return Create<TblAgencyEntity>(); }
}
/// <summary>Creates and returns a new EntityQuery for the TblChild entity</summary>
public EntityQuery<TblChildEntity> TblChild
{
get { return Create<TblChildEntity>(); }
}
/// <summary>Creates and returns a new EntityQuery for the TblClinicInfo entity</summary>
public EntityQuery<TblClinicInfoEntity> TblClinicInfo
{
get { return Create<TblClinicInfoEntity>(); }
}
/// <summary>Creates and returns a new EntityQuery for the TblCommune entity</summary>
public EntityQuery<TblCommuneEntity> TblCommune
{
get { return Create<TblCommuneEntity>(); }
}
/// <summary>Creates and returns a new EntityQuery for the TblDiary entity</summary>
public EntityQuery<TblDiaryEntity> TblDiary
{
get { return Create<TblDiaryEntity>(); }
}
/// <summary>Creates and returns a new EntityQuery for the TblDistrict entity</summary>
public EntityQuery<TblDistrictEntity> TblDistrict
{
get { return Create<TblDistrictEntity>(); }
}
/// <summary>Creates and returns a new EntityQuery for the TblExaminationInfo entity</summary>
public EntityQuery<TblExaminationInfoEntity> TblExaminationInfo
{
get { return Create<TblExaminationInfoEntity>(); }
}
/// <summary>Creates and returns a new EntityQuery for the TblPatient entity</summary>
public EntityQuery<TblPatientEntity> TblPatient
{
get { return Create<TblPatientEntity>(); }
}
/// <summary>Creates and returns a new EntityQuery for the TblPreClinicsInfo entity</summary>
public EntityQuery<TblPreClinicsInfoEntity> TblPreClinicsInfo
{
get { return Create<TblPreClinicsInfoEntity>(); }
}
/// <summary>Creates and returns a new EntityQuery for the TblPregnanceInfo entity</summary>
public EntityQuery<TblPregnanceInfoEntity> TblPregnanceInfo
{
get { return Create<TblPregnanceInfoEntity>(); }
}
/// <summary>Creates and returns a new EntityQuery for the TblProvince entity</summary>
public EntityQuery<TblProvinceEntity> TblProvince
{
get { return Create<TblProvinceEntity>(); }
}
/// <summary>Creates and returns a new EntityQuery for the TblReferralFromPlace entity</summary>
public EntityQuery<TblReferralFromPlaceEntity> TblReferralFromPlace
{
get { return Create<TblReferralFromPlaceEntity>(); }
}
/// <summary>Creates and returns a new EntityQuery for the TblReferralsTo entity</summary>
public EntityQuery<TblReferralsToEntity> TblReferralsTo
{
get { return Create<TblReferralsToEntity>(); }
}
/// <summary>Creates and returns a new EntityQuery for the TblReferraltoService entity</summary>
public EntityQuery<TblReferraltoServiceEntity> TblReferraltoService
{
get { return Create<TblReferraltoServiceEntity>(); }
}
/// <summary>Creates and returns a new EntityQuery for the TblRegimen entity</summary>
public EntityQuery<TblRegimenEntity> TblRegimen
{
get { return Create<TblRegimenEntity>(); }
}
/// <summary>Creates and returns a new EntityQuery for the TblRegimenStopReason entity</summary>
public EntityQuery<TblRegimenStopReasonEntity> TblRegimenStopReason
{
get { return Create<TblRegimenStopReasonEntity>(); }
}
/// <summary>Creates and returns a new EntityQuery for the TblService entity</summary>
public EntityQuery<TblServiceEntity> TblService
{
get { return Create<TblServiceEntity>(); }
}
/// <summary>Creates and returns a new EntityQuery for the TblTest entity</summary>
public EntityQuery<TblTestEntity> TblTest
{
get { return Create<TblTestEntity>(); }
}
/// <summary>Creates and returns a new EntityQuery for the TblTreatment entity</summary>
public EntityQuery<TblTreatmentEntity> TblTreatment
{
get { return Create<TblTreatmentEntity>(); }
}
/// <summary>Creates and returns a new EntityQuery for the TblTreatmentInfo entity</summary>
public EntityQuery<TblTreatmentInfoEntity> TblTreatmentInfo
{
get { return Create<TblTreatmentInfoEntity>(); }
}
/// <summary>Creates and returns a new EntityQuery for the TblWaitingList entity</summary>
public EntityQuery<TblWaitingListEntity> TblWaitingList
{
get { return Create<TblWaitingListEntity>(); }
}
}
}