/// <summary>CTor</summary> public SpecialOfferProductDAO() : base(InheritanceInfoProviderSingleton.GetInstance(), new DynamicQueryEngine(), InheritanceHierarchyType.None, "SpecialOfferProductEntity", new SpecialOfferProductEntityFactory()) { }
/// <summary>CTor</summary> public ProductSubcategoryDAO() : base(InheritanceInfoProviderSingleton.GetInstance(), new DynamicQueryEngine(), InheritanceHierarchyType.None, "ProductSubcategoryEntity", new ProductSubcategoryEntityFactory()) { }
/// <summary>Gets the inheritance info provider instance of the project this entity instance is located in. </summary> /// <returns>ready to use inheritance info provider instance.</returns> protected override IInheritanceInfoProvider GetInheritanceInfoProvider() { return(InheritanceInfoProviderSingleton.GetInstance()); }
/// <summary>Gets a predicateexpression which filters on the entity with type belonging to this factory.</summary> /// <param name="negate">Flag to produce a NOT filter, (true), or a normal filter (false). </param> /// <param name="objectAlias">The object alias to use for the predicate(s).</param> /// <returns>ready to use predicateexpression, or an empty predicate expression if the belonging entity isn't a hierarchical type.</returns> public override IPredicateExpression GetEntityTypeFilter(bool negate, string objectAlias) { return(InheritanceInfoProviderSingleton.GetInstance().GetEntityTypeFilter(this.ForEntityName, objectAlias, negate)); }
/// <summary>CTor</summary> public TypedListDAO() : base(InheritanceInfoProviderSingleton.GetInstance(), new DynamicQueryEngine(), InheritanceHierarchyType.None, string.Empty, null) { }
/// <summary>CTor</summary> /// <param name="typeOfInheritance">Type of inheritance the entity which owns this Dao is in.</param> /// <param name="entityName">Name of the entity owning this Dao</param> /// <param name="entityFactory">Entity factory for the entity owning this Dao.</param> public CommonDaoBase(InheritanceHierarchyType typeOfInheritance, string entityName, IEntityFactory entityFactory) : base(InheritanceInfoProviderSingleton.GetInstance(), PersistenceInfoProviderSingleton.GetInstance(), new DynamicQueryEngine(), typeOfInheritance, entityName, entityFactory) { }
/// <summary>Creates the relations collection to the entity to join all targets so this entity can be fetched. </summary> /// <param name="objectAlias">The object alias to use for the elements in the relations.</param> /// <returns>null if the entity isn't in a hierarchy of type TargetPerEntity, otherwise the relations collection needed to join all targets together to fetch all subtypes of this entity and this entity itself</returns> public override IRelationCollection CreateHierarchyRelations(string objectAlias) { return(InheritanceInfoProviderSingleton.GetInstance().GetHierarchyRelations(this.ForEntityName, objectAlias)); }
/// <summary>General factory entrance method which will return an EntityFields2 object with the format generated by the factory specified</summary> /// <param name="relatedEntityType">The type of entity the fields are for</param> /// <returns>The IEntityFields instance requested</returns> public static IEntityFields2 CreateEntityFieldsObject(AdventureWorks.Dal.Adapter.v50.EntityType relatedEntityType) { return(FieldInfoProviderSingleton.GetInstance().GetEntityFields(InheritanceInfoProviderSingleton.GetInstance(), _entityTypeNamesCache[relatedEntityType])); }
/// <summary>Gets a predicateexpression which filters on this entity</summary> /// <param name="negate">Flag to produce a NOT filter, (true), or a normal filter (false). </param> /// <returns>ready to use predicateexpression</returns> /// <remarks>Only useful in entity fetches.</remarks> public new static IPredicateExpression GetEntityTypeFilter(bool negate) { return(InheritanceInfoProviderSingleton.GetInstance().GetEntityTypeFilter("OrderAuditInfoEntity", negate)); }
/// <summary>This method retrieves, using the InheritanceInfoprovider, the factory for the entity represented by the values passed in.</summary> /// <param name="fieldValues">Field values read from the db, to determine which factory to return, based on the field values passed in.</param> /// <param name="entityFieldStartIndexesPerEntity">indexes into values where per entity type their own fields start.</param> /// <returns>the factory for the entity which is represented by the values passed in.</returns> public override IEntityFactory GetEntityFactory(object[] fieldValues, Dictionary <string, int> entityFieldStartIndexesPerEntity) { return((IEntityFactory)InheritanceInfoProviderSingleton.GetInstance().GetEntityFactory(ForEntityName, fieldValues, entityFieldStartIndexesPerEntity) ?? this); }
protected override bool CheckIfIsSubTypeOf(int typeOfEntity) { return InheritanceInfoProviderSingleton.GetInstance().CheckIfIsSubTypeOf("OrderAuditInfoEntity", ((Northwind.SSDAL.EntityType)typeOfEntity).ToString()); }
protected override bool CheckIfIsSubTypeOf(int typeOfEntity) { return(InheritanceInfoProviderSingleton.GetInstance().CheckIfIsSubTypeOf("AuditDataCoreEntity", ((SD.HnD.DAL.EntityType)typeOfEntity).ToString())); }
/// <summary>Gets a predicateexpression which filters on this entity</summary> /// <returns>ready to use predicateexpression</returns> /// <remarks>Only useful in entity fetches.</remarks> public static IPredicateExpression GetEntityTypeFilter() { return(InheritanceInfoProviderSingleton.GetInstance().GetEntityTypeFilter("AuditDataCoreEntity", false)); }
/// <summary>CTor</summary> public PolicyLinkDAO() : base(InheritanceInfoProviderSingleton.GetInstance(), new DynamicQueryEngine(), InheritanceHierarchyType.None, "PolicyLinkEntity", new PolicyLinkEntityFactory()) { }
/// <summary>General factory entrance method which will return an EntityFields2 object with the format generated by the factory specified</summary> /// <param name="relatedEntityType">The type of entity the fields are for</param> /// <returns>The IEntityFields instance requested</returns> public static IEntityFields2 CreateEntityFieldsObject(EntityModel.EntityType relatedEntityType) { return(FieldInfoProviderSingleton.GetInstance().GetEntityFields(InheritanceInfoProviderSingleton.GetInstance(), _entityTypeNamesCache[relatedEntityType])); }
/// <summary>Determines whether this entity is a subType of the entity represented by the passed in enum value, which represents a value in the SD.LLBLGen.Pro.Examples.Auditing.EntityType enum</summary> /// <param name="typeOfEntity">Type of entity.</param> /// <returns>true if the passed in type is a supertype of this entity, otherwise false</returns> protected override bool CheckIfIsSubTypeOf(int typeOfEntity) { return(InheritanceInfoProviderSingleton.GetInstance().CheckIfIsSubTypeOf("OrderAuditInfoEntity", ((SD.LLBLGen.Pro.Examples.Auditing.EntityType)typeOfEntity).ToString())); }
/// <summary>CTor</summary> public AttributeMatchDAO() : base(InheritanceInfoProviderSingleton.GetInstance(), new DynamicQueryEngine(), InheritanceHierarchyType.None, "AttributeMatchEntity", new AttributeMatchEntityFactory()) { }
/// <summary>CTor</summary> public WorkOrderServiceLocationDAO() : base(InheritanceInfoProviderSingleton.GetInstance(), new DynamicQueryEngine(), InheritanceHierarchyType.None, "WorkOrderServiceLocationEntity", new WorkOrderServiceLocationEntityFactory()) { }
/// <summary>General factory entrance method which will return an EntityFields object with the format generated by the factory specified</summary> /// <param name="relatedEntityType">The type of entity the fields are for</param> /// <returns>The IEntityFields instance requested</returns> public static IEntityFields CreateEntityFieldsObject(SD.LLBLGen.Pro.Examples.Auditing.EntityType relatedEntityType) { return(FieldInfoProviderSingleton.GetInstance().GetEntityFields(InheritanceInfoProviderSingleton.GetInstance(), PersistenceInfoProviderSingleton.GetInstance(), _entityTypeNamesCache[relatedEntityType])); }
/// <summary>CTor</summary> public RecycleVendorServiceDAO() : base(InheritanceInfoProviderSingleton.GetInstance(), new DynamicQueryEngine(), InheritanceHierarchyType.None, "RecycleVendorServiceEntity", new RecycleVendorServiceEntityFactory()) { }
/// <summary>Obtains the inheritance info provider instance from the singleton </summary> /// <returns>The singleton instance of the inheritance info provider</returns> public override IInheritanceInfoProvider ObtainInheritanceInfoProviderInstance() { return(InheritanceInfoProviderSingleton.GetInstance()); }
/// <summary>CTor</summary> public SalesOrderDetailDAO() : base(InheritanceInfoProviderSingleton.GetInstance(), new DynamicQueryEngine(), InheritanceHierarchyType.None, "SalesOrderDetailEntity", new SalesOrderDetailEntityFactory()) { }
/// <summary>Creates the hierarchy fields for the entity to which this factory belongs.</summary> /// <returns>IEntityFields2 object with the fields of all the entities in teh hierarchy of this entity or the fields of this entity if the entity isn't in a hierarchy.</returns> public override IEntityFields2 CreateHierarchyFields() { return(_isInHierarchy ? new EntityFields2(InheritanceInfoProviderSingleton.GetInstance().GetHierarchyFields(this.ForEntityName), InheritanceInfoProviderSingleton.GetInstance(), null) : base.CreateHierarchyFields()); }
/// <summary>CTor</summary> public AssetReclamationServiceChangeLogDAO() : base(InheritanceInfoProviderSingleton.GetInstance(), new DynamicQueryEngine(), InheritanceHierarchyType.None, "AssetReclamationServiceChangeLogEntity", new AssetReclamationServiceChangeLogEntityFactory()) { }
/// <summary>CTor</summary> public ProductModelIllustrationDAO() : base(InheritanceInfoProviderSingleton.GetInstance(), new DynamicQueryEngine(), InheritanceHierarchyType.None, "ProductModelIllustrationEntity", new ProductModelIllustrationEntityFactory()) { }
/// <summary>CTor</summary> public ControlSetDAO() : base(InheritanceInfoProviderSingleton.GetInstance(), new DynamicQueryEngine(), InheritanceHierarchyType.None, "ControlSetEntity", new ControlSetEntityFactory()) { }
/// <summary>CTor</summary> public DeepFryerDAO() : base(InheritanceInfoProviderSingleton.GetInstance(), new DynamicQueryEngine(), InheritanceHierarchyType.None, "DeepFryerEntity", new DeepFryerEntityFactory()) { }
/// <summary>General factory entrance method which will return an EntityFields object with the format generated by the factory specified</summary> /// <param name="relatedEntityType">The type of entity the fields are for</param> /// <returns>The IEntityFields instance requested</returns> public static IEntityFields CreateEntityFieldsObject(EPICCentralDL.EntityType relatedEntityType) { return(FieldInfoProviderSingleton.GetInstance().GetEntityFields(InheritanceInfoProviderSingleton.GetInstance(), PersistenceInfoProviderSingleton.GetInstance(), _entityTypeNamesCache[relatedEntityType])); }
/// <summary>Creates the hierarchy fields for the entity to which this factory belongs.</summary> /// <returns>IEntityFields object with the fields of all the entities in teh hierarchy of this entity or the fields of this entity if the entity isn't in a hierarchy.</returns> public override IEntityFields CreateHierarchyFields() { return(new EntityFields(InheritanceInfoProviderSingleton.GetInstance().GetHierarchyFields("AuditInfoEntity"), InheritanceInfoProviderSingleton.GetInstance(), null)); }
/// <summary>CTor</summary> public ConditionDAO() : base(InheritanceInfoProviderSingleton.GetInstance(), new DynamicQueryEngine(), InheritanceHierarchyType.TargetPerEntityHierarchy, "ConditionEntity", new ConditionEntityFactory()) { }