• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# IPrefetchPath类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中IPrefetchPath的典型用法代码示例。如果您正苦于以下问题:C# IPrefetchPath类的具体用法?C# IPrefetchPath怎么用?C# IPrefetchPath使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



IPrefetchPath类属于命名空间,在下文中一共展示了IPrefetchPath类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: GetMultiUsingRolesWithAuditAction

 /// <summary>Retrieves in the calling AuditActionCollection object all AuditActionEntity objects which are related via a relation of type 'm:n' with the passed in RoleEntity.</summary>
 /// <param name="containingTransaction">A containing transaction, if caller is added to a transaction, or null if not.</param>
 /// <param name="collectionToFill">Collection to fill with the entity objects retrieved</param>
 /// <param name="maxNumberOfItemsToReturn"> The maximum number of items to return with this retrieval query. When set to 0, no limitations are specified.</param>
 /// <param name="sortClauses">The order by specifications for the sorting of the resultset. When not specified, no sorting is applied.</param>
 /// <param name="entityFactoryToUse">The EntityFactory to use when creating entity objects during a GetMulti() call.</param>
 /// <param name="roleInstance">RoleEntity object to be used as a filter in the m:n relation</param>
 /// <param name="prefetchPathToUse">the PrefetchPath which defines the graph of objects to fetch.</param>
 /// <param name="pageNumber">The page number to retrieve.</param>
 /// <param name="pageSize">The page size of the page to retrieve.</param>
 /// <returns>true if succeeded, false otherwise</returns>
 public bool GetMultiUsingRolesWithAuditAction(ITransaction containingTransaction, IEntityCollection collectionToFill, long maxNumberOfItemsToReturn, ISortExpression sortClauses, IEntityFactory entityFactoryToUse, IEntity roleInstance, IPrefetchPath prefetchPathToUse, int pageNumber, int pageSize)
 {
     RelationCollection relations = new RelationCollection();
     relations.Add(AuditActionEntity.Relations.RoleAuditActionEntityUsingAuditActionID, "RoleAuditAction_");
     relations.Add(RoleAuditActionEntity.Relations.RoleEntityUsingRoleID, "RoleAuditAction_", string.Empty, JoinHint.None);
     IPredicateExpression selectFilter = new PredicateExpression();
     selectFilter.Add(new FieldCompareValuePredicate(roleInstance.Fields[(int)RoleFieldIndex.RoleID], ComparisonOperator.Equal));
     return this.GetMulti(containingTransaction, collectionToFill, maxNumberOfItemsToReturn, sortClauses, entityFactoryToUse, selectFilter, relations, prefetchPathToUse, pageNumber, pageSize);
 }
开发者ID:priaonehaha,项目名称:HnD,代码行数:20,代码来源:AuditActionDAO.cs


示例2: CityEntity

 /// <summary>CTor</summary>
 /// <param name="id">PK value for City which data should be fetched into this City object</param>
 /// <param name="prefetchPathToUse">the PrefetchPath which defines the graph of objects to fetch as well</param>
 public CityEntity(System.Int32 id, IPrefetchPath prefetchPathToUse)
 {
     InitClassFetch(id, null, prefetchPathToUse);
 }
开发者ID:fahrigoktuna,项目名称:ProductSearchEngine,代码行数:7,代码来源:CityEntity.cs


示例3: InitClassFetch

        /// <summary> Initializes the the entity and fetches the data related to the entity in this entity.</summary>
        /// <param name="sectionID">PK value for Section which data should be fetched into this Section object</param>
        /// <param name="validator">The validator object for this SectionEntity</param>
        /// <param name="prefetchPathToUse">the PrefetchPath which defines the graph of objects to fetch as well</param>
        private void InitClassFetch(System.Int32 sectionID, IValidator validator, IPrefetchPath prefetchPathToUse)
        {
            OnInitializing();
            this.Validator = validator;
            this.Fields = CreateFields();
            InitClassMembers();
            Fetch(sectionID, prefetchPathToUse, null, null);

            // __LLBLGENPRO_USER_CODE_REGION_START InitClassFetch
            // __LLBLGENPRO_USER_CODE_REGION_END

            OnInitialized();
        }
开发者ID:priaonehaha,项目名称:HnD,代码行数:17,代码来源:SectionEntityBase.cs


示例4: FetchUsingPK

 /// <summary> Fetches the contents of this entity from the persistent storage using the primary key.</summary>
 /// <param name="sectionID">PK value for Section which data should be fetched into this Section object</param>
 /// <param name="prefetchPathToUse">the PrefetchPath which defines the graph of objects to fetch as well</param>
 /// <param name="contextToUse">The context to add the entity to if the fetch was succesful. </param>
 /// <param name="excludedIncludedFields">The list of IEntityField objects which have to be excluded or included for the fetch. 
 /// If null or empty, all fields are fetched (default). If an instance of ExcludeIncludeFieldsList is passed in and its ExcludeContainedFields property
 /// is set to false, the fields contained in excludedIncludedFields are kept in the query, the rest of the fields in the query are excluded.</param>
 /// <returns>True if succeeded, false otherwise.</returns>
 public bool FetchUsingPK(System.Int32 sectionID, IPrefetchPath prefetchPathToUse, Context contextToUse, ExcludeIncludeFieldsList excludedIncludedFields)
 {
     return Fetch(sectionID, prefetchPathToUse, contextToUse, excludedIncludedFields);
 }
开发者ID:priaonehaha,项目名称:HnD,代码行数:12,代码来源:SectionEntityBase.cs


示例5: GetMultiUsingUserCollectionViaUser_

 /// <summary>
 /// Retrieves in the calling AccountCollection object all AccountEntity objects
 /// which are related via a relation of type 'm:n' with the passed in UserEntity. 
 /// </summary>
 /// <param name="containingTransaction">A containing transaction, if caller is added to a transaction, or null if not.</param>
 /// <param name="collectionToFill">Collection to fill with the entity objects retrieved</param>
 /// <param name="maxNumberOfItemsToReturn"> The maximum number of items to return with this retrieval query. 
 /// If the used Dynamic Query Engine supports it, 'TOP' is used to limit the amount of rows to return. When set to 0, no limitations are specified.</param>
 /// <param name="sortClauses">The order by specifications for the sorting of the resultset. When not specified, no sorting is applied.</param>
 /// <param name="entityFactoryToUse">The EntityFactory to use when creating entity objects during a GetMulti() call.</param>
 /// <param name="userInstance">UserEntity object to be used as a filter in the m:n relation</param>
 /// <param name="prefetchPathToUse">the PrefetchPath which defines the graph of objects to fetch.</param>
 /// <returns>true if succeeded, false otherwise</returns>
 public bool GetMultiUsingUserCollectionViaUser_(ITransaction containingTransaction, IEntityCollection collectionToFill, long maxNumberOfItemsToReturn, ISortExpression sortClauses, IEntityFactory entityFactoryToUse, IEntity userInstance, IPrefetchPath prefetchPathToUse)
 {
     IEntityFields fieldsToReturn = EntityFieldsFactory.CreateEntityFieldsObject(Auction.Entities.EntityType.AccountEntity);
     RelationCollection relations = new RelationCollection();
     relations.Add(AccountEntity.Relations.UserEntityUsingAccountId, "User_");
     relations.Add(UserEntity.Relations.UserEntityUsingUpdatedBy, "User_", string.Empty, JoinHint.None);
     IPredicateExpression selectFilter = new PredicateExpression();
     selectFilter.Add(new FieldCompareValuePredicate(userInstance.Fields[(int)UserFieldIndex.Id], ComparisonOperator.Equal));
     return GetMulti(containingTransaction, collectionToFill, maxNumberOfItemsToReturn, sortClauses, entityFactoryToUse, selectFilter, relations, prefetchPathToUse);
 }
开发者ID:danappleyard,项目名称:auction-csharp,代码行数:23,代码来源:AccountDAO.cs


示例6: FetchUsingPK

 /// <summary> Fetches the contents of this entity from the persistent storage using the primary key.</summary>
 /// <param name="actionRightID">PK value for ActionRight which data should be fetched into this ActionRight object</param>
 /// <param name="prefetchPathToUse">the PrefetchPath which defines the graph of objects to fetch as well</param>
 /// <returns>True if succeeded, false otherwise.</returns>
 public bool FetchUsingPK(System.Int32 actionRightID, IPrefetchPath prefetchPathToUse)
 {
     return FetchUsingPK(actionRightID, prefetchPathToUse, null, null);
 }
开发者ID:priaonehaha,项目名称:HnD,代码行数:8,代码来源:ActionRightEntityBase.cs


示例7: FetchUsingPK

 /// <summary> Fetches the contents of this entity from the persistent storage using the primary key.</summary>
 /// <param name="id">PK value for Raffle which data should be fetched into this Raffle object</param>
 /// <param name="prefetchPathToUse">the PrefetchPath which defines the graph of objects to fetch as well</param>
 /// <param name="contextToUse">The context to add the entity to if the fetch was succesful. </param>
 /// <returns>True if succeeded, false otherwise.</returns>
 public bool FetchUsingPK(System.Int64 id, IPrefetchPath prefetchPathToUse, Context contextToUse)
 {
     return Fetch(id, prefetchPathToUse, contextToUse, null);
 }
开发者ID:danappleyard,项目名称:auction-csharp,代码行数:9,代码来源:RaffleEntity.cs


示例8: InitClassFetch

        /// <summary> Initializes the the entity and fetches the data related to the entity in this entity.</summary>
        /// <param name="id">PK value for Raffle which data should be fetched into this Raffle object</param>
        /// <param name="validator">The validator object for this RaffleEntity</param>
        /// <param name="prefetchPathToUse">the PrefetchPath which defines the graph of objects to fetch as well</param>
        protected virtual void InitClassFetch(System.Int64 id, IValidator validator, IPrefetchPath prefetchPathToUse)
        {
            OnInitializing();
            base.Validator = validator;
            InitClassMembers();
            base.Fields = CreateFields();
            bool wasSuccesful = Fetch(id, prefetchPathToUse, null, null);
            base.IsNew = !wasSuccesful;

            // __LLBLGENPRO_USER_CODE_REGION_START InitClassFetch
            // __LLBLGENPRO_USER_CODE_REGION_END

            OnInitialized();
        }
开发者ID:danappleyard,项目名称:auction-csharp,代码行数:18,代码来源:RaffleEntity.cs


示例9: MHakAksesEntity

 /// <summary>CTor</summary>
 /// <param name="cIdHakAkses">PK value for MHakAkses which data should be fetched into this MHakAkses object</param>
 /// <param name="prefetchPathToUse">the PrefetchPath which defines the graph of objects to fetch as well</param>
 public MHakAksesEntity(System.String cIdHakAkses, IPrefetchPath prefetchPathToUse)
 {
     InitClassFetch(cIdHakAkses, null, prefetchPathToUse);
 }
开发者ID:trogalko,项目名称:kalibrasi,代码行数:7,代码来源:MHakAksesEntity.cs


示例10: FetchUsingPK

 /// <summary> Fetches the contents of this entity from the persistent storage using the primary key.</summary>
 /// <param name="cIdHakAkses">PK value for MHakAkses which data should be fetched into this MHakAkses object</param>
 /// <param name="prefetchPathToUse">the PrefetchPath which defines the graph of objects to fetch as well</param>
 /// <param name="contextToUse">The context to add the entity to if the fetch was succesful. </param>
 /// <param name="excludedIncludedFields">The list of IEntityField objects which have to be excluded or included for the fetch. 
 /// If null or empty, all fields are fetched (default). If an instance of ExcludeIncludeFieldsList is passed in and its ExcludeContainedFields property
 /// is set to false, the fields contained in excludedIncludedFields are kept in the query, the rest of the fields in the query are excluded.</param>
 /// <returns>True if succeeded, false otherwise.</returns>
 public bool FetchUsingPK(System.String cIdHakAkses, IPrefetchPath prefetchPathToUse, Context contextToUse, ExcludeIncludeFieldsList excludedIncludedFields)
 {
     return Fetch(cIdHakAkses, prefetchPathToUse, contextToUse, excludedIncludedFields);
 }
开发者ID:trogalko,项目名称:kalibrasi,代码行数:12,代码来源:MHakAksesEntity.cs


示例11: ProductPhotoEntity

 /// <summary>CTor</summary>
 /// <param name="id">PK value for ProductPhoto which data should be fetched into this ProductPhoto object</param>
 /// <param name="prefetchPathToUse">the PrefetchPath which defines the graph of objects to fetch as well</param>
 public ProductPhotoEntity(System.Int32 id, IPrefetchPath prefetchPathToUse)
 {
     InitClassFetch(id, null, prefetchPathToUse);
 }
开发者ID:fahrigoktuna,项目名称:ProductSearchEngine,代码行数:7,代码来源:ProductPhotoEntity.cs


示例12: FetchUsingPK

 /// <summary> Fetches the contents of this entity from the persistent storage using the primary key.</summary>
 /// <param name="id">PK value for ProductPhoto which data should be fetched into this ProductPhoto object</param>
 /// <param name="prefetchPathToUse">the PrefetchPath which defines the graph of objects to fetch as well</param>
 /// <returns>True if succeeded, false otherwise.</returns>
 public bool FetchUsingPK(System.Int32 id, IPrefetchPath prefetchPathToUse)
 {
     return FetchUsingPK(id, prefetchPathToUse, null, null);
 }
开发者ID:fahrigoktuna,项目名称:ProductSearchEngine,代码行数:8,代码来源:ProductPhotoEntity.cs


示例13: RoleSystemActionRightEntity

 /// <summary>CTor</summary>
 /// <param name="roleID">PK value for RoleSystemActionRight which data should be fetched into this RoleSystemActionRight object</param>
 /// <param name="actionRightID">PK value for RoleSystemActionRight which data should be fetched into this RoleSystemActionRight object</param>
 /// <param name="prefetchPathToUse">the PrefetchPath which defines the graph of objects to fetch as well</param>
 public RoleSystemActionRightEntity(System.Int32 roleID, System.Int32 actionRightID, IPrefetchPath prefetchPathToUse)
     : base(roleID, actionRightID, prefetchPathToUse)
 {
 }
开发者ID:priaonehaha,项目名称:HnD,代码行数:8,代码来源:RoleSystemActionRightEntity.cs


示例14: SupportQueueEntity

 /// <summary>CTor</summary>
 /// <param name="queueID">PK value for SupportQueue which data should be fetched into this SupportQueue object</param>
 /// <param name="prefetchPathToUse">the PrefetchPath which defines the graph of objects to fetch as well</param>
 public SupportQueueEntity(System.Int32 queueID, IPrefetchPath prefetchPathToUse)
     : base(queueID, prefetchPathToUse)
 {
 }
开发者ID:priaonehaha,项目名称:HnD,代码行数:7,代码来源:SupportQueueEntity.cs


示例15: SupportQueueThreadEntityBase

 /// <summary>CTor</summary>
 /// <param name="queueID">PK value for SupportQueueThread which data should be fetched into this SupportQueueThread object</param>
 /// <param name="threadID">PK value for SupportQueueThread which data should be fetched into this SupportQueueThread object</param>
 /// <param name="prefetchPathToUse">the PrefetchPath which defines the graph of objects to fetch as well</param>
 protected SupportQueueThreadEntityBase(System.Int32 queueID, System.Int32 threadID, IPrefetchPath prefetchPathToUse)
     : base("SupportQueueThreadEntity")
 {
     InitClassFetch(queueID, threadID, null, prefetchPathToUse);
 }
开发者ID:priaonehaha,项目名称:HnD,代码行数:9,代码来源:SupportQueueThreadEntityBase.cs


示例16: GetMultiUsingUsersWhoStartedThreads

 /// <summary>Retrieves in the calling ForumCollection object all ForumEntity objects which are related via a relation of type 'm:n' with the passed in UserEntity.</summary>
 /// <param name="containingTransaction">A containing transaction, if caller is added to a transaction, or null if not.</param>
 /// <param name="collectionToFill">Collection to fill with the entity objects retrieved</param>
 /// <param name="maxNumberOfItemsToReturn"> The maximum number of items to return with this retrieval query. When set to 0, no limitations are specified.</param>
 /// <param name="sortClauses">The order by specifications for the sorting of the resultset. When not specified, no sorting is applied.</param>
 /// <param name="entityFactoryToUse">The EntityFactory to use when creating entity objects during a GetMulti() call.</param>
 /// <param name="userInstance">UserEntity object to be used as a filter in the m:n relation</param>
 /// <param name="prefetchPathToUse">the PrefetchPath which defines the graph of objects to fetch.</param>
 /// <param name="pageNumber">The page number to retrieve.</param>
 /// <param name="pageSize">The page size of the page to retrieve.</param>
 /// <returns>true if succeeded, false otherwise</returns>
 public bool GetMultiUsingUsersWhoStartedThreads(ITransaction containingTransaction, IEntityCollection collectionToFill, long maxNumberOfItemsToReturn, ISortExpression sortClauses, IEntityFactory entityFactoryToUse, IEntity userInstance, IPrefetchPath prefetchPathToUse, int pageNumber, int pageSize)
 {
     RelationCollection relations = new RelationCollection();
     relations.Add(ForumEntity.Relations.ThreadEntityUsingForumID, "Thread_");
     relations.Add(ThreadEntity.Relations.UserEntityUsingStartedByUserID, "Thread_", string.Empty, JoinHint.None);
     IPredicateExpression selectFilter = new PredicateExpression();
     selectFilter.Add(new FieldCompareValuePredicate(userInstance.Fields[(int)UserFieldIndex.UserID], ComparisonOperator.Equal));
     return this.GetMulti(containingTransaction, collectionToFill, maxNumberOfItemsToReturn, sortClauses, entityFactoryToUse, selectFilter, relations, prefetchPathToUse, pageNumber, pageSize);
 }
开发者ID:priaonehaha,项目名称:HnD,代码行数:20,代码来源:ForumDAO.cs


示例17: GetMultiUsingPolicyCollectionViaRule

 /// <summary>
 /// Retrieves in the calling EffectCollection object all EffectEntity objects
 /// which are related via a relation of type 'm:n' with the passed in PolicyEntity. 
 /// </summary>
 /// <param name="containingTransaction">A containing transaction, if caller is added to a transaction, or null if not.</param>
 /// <param name="collectionToFill">Collection to fill with the entity objects retrieved</param>
 /// <param name="maxNumberOfItemsToReturn"> The maximum number of items to return with this retrieval query. 
 /// If the used Dynamic Query Engine supports it, 'TOP' is used to limit the amount of rows to return. When set to 0, no limitations are specified.</param>
 /// <param name="sortClauses">The order by specifications for the sorting of the resultset. When not specified, no sorting is applied.</param>
 /// <param name="entityFactoryToUse">The EntityFactory to use when creating entity objects during a GetMulti() call.</param>
 /// <param name="policyInstance">PolicyEntity object to be used as a filter in the m:n relation</param>
 /// <param name="prefetchPathToUse">the PrefetchPath which defines the graph of objects to fetch.</param>
 /// <returns>true if succeeded, false otherwise</returns>
 public bool GetMultiUsingPolicyCollectionViaRule(ITransaction containingTransaction, IEntityCollection collectionToFill, long maxNumberOfItemsToReturn, ISortExpression sortClauses, IEntityFactory entityFactoryToUse, IEntity policyInstance, IPrefetchPath prefetchPathToUse)
 {
     IEntityFields fieldsToReturn = EntityFieldsFactory.CreateEntityFieldsObject(policyDB.EntityType.EffectEntity);
     RelationCollection relations = new RelationCollection();
     relations.Add(EffectEntity.Relations.RuleEntityUsingEffectId, "Rule_");
     relations.Add(RuleEntity.Relations.PolicyEntityUsingPolicyId, "Rule_", string.Empty, JoinHint.None);
     IPredicateExpression selectFilter = new PredicateExpression();
     selectFilter.Add(new FieldCompareValuePredicate(policyInstance.Fields[(int)PolicyFieldIndex.Id], ComparisonOperator.Equal));
     return GetMulti(containingTransaction, collectionToFill, maxNumberOfItemsToReturn, sortClauses, entityFactoryToUse, selectFilter, relations, prefetchPathToUse);
 }
开发者ID:habibvirji,项目名称:Webinos-Platform,代码行数:23,代码来源:EffectDAO.cs


示例18: Fetch

 /// <summary> Fetches the entity from the persistent storage. Fetch simply reads the entity into an EntityFields object. </summary>
 /// <param name="id">PK value for Raffle which data should be fetched into this Raffle object</param>
 /// <param name="prefetchPathToUse">the PrefetchPath which defines the graph of objects to fetch as well</param>
 /// <param name="contextToUse">The context to add the entity to if the fetch was succesful. </param>
 /// <param name="excludedIncludedFields">The list of IEntityField objects which have to be excluded or included for the fetch. 
 /// If null or empty, all fields are fetched (default). If an instance of ExcludeIncludeFieldsList is passed in and its ExcludeContainedFields property
 /// is set to false, the fields contained in excludedIncludedFields are kept in the query, the rest of the fields in the query are excluded.</param>
 /// <returns>True if succeeded, false otherwise.</returns>
 private bool Fetch(System.Int64 id, IPrefetchPath prefetchPathToUse, Context contextToUse, ExcludeIncludeFieldsList excludedIncludedFields)
 {
     try
     {
         OnFetch();
         IDao dao = this.CreateDAOInstance();
         base.Fields[(int)RaffleFieldIndex.Id].ForcedCurrentValueWrite(id);
         dao.FetchExisting(this, base.Transaction, prefetchPathToUse, contextToUse, excludedIncludedFields);
         return (base.Fields.State == EntityState.Fetched);
     }
     finally
     {
         OnFetchComplete();
     }
 }
开发者ID:danappleyard,项目名称:auction-csharp,代码行数:23,代码来源:RaffleEntity.cs


示例19: InitClassFetch

        /// <summary> Initializes the the entity and fetches the data related to the entity in this entity.</summary>
        /// <param name="auditDataID">PK value for AuditDataMessageRelated which data should be fetched into this AuditDataMessageRelated object</param>
        /// <param name="validator">The validator object for this AuditDataMessageRelatedEntity</param>
        /// <param name="prefetchPathToUse">the PrefetchPath which defines the graph of objects to fetch as well</param>
        private void InitClassFetch(System.Int32 auditDataID, IValidator validator, IPrefetchPath prefetchPathToUse)
        {
            InitClassMembers();

            // __LLBLGENPRO_USER_CODE_REGION_START InitClassFetch
            // __LLBLGENPRO_USER_CODE_REGION_END
        }
开发者ID:priaonehaha,项目名称:HnD,代码行数:11,代码来源:AuditDataMessageRelatedEntityBase.cs


示例20: RaffleEntity

 /// <summary>CTor</summary>
 /// <param name="id">PK value for Raffle which data should be fetched into this Raffle object</param>
 /// <param name="prefetchPathToUse">the PrefetchPath which defines the graph of objects to fetch as well</param>
 public RaffleEntity(System.Int64 id, IPrefetchPath prefetchPathToUse)
 {
     InitClassFetch(id, null, prefetchPathToUse);
 }
开发者ID:danappleyard,项目名称:auction-csharp,代码行数:7,代码来源:RaffleEntity.cs



注:本文中的IPrefetchPath类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# IPresenceService类代码示例发布时间:2022-05-24
下一篇:
C# IPreferences类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap