Example #1
0
 /// <summary>
 /// Returns <see cref="TreeCategoryInfo"/> binding structure.
 /// </summary>
 /// <param name="nodeId">Node ID.</param>
 /// <param name="categoryId">Content category ID.</param>
 public static TreeCategoryInfo GetTreeCategoryInfo(int nodeId, int categoryId)
 {
     return(ProviderObject.GetObjectQuery().TopN(1)
            .WhereEquals("NodeID", nodeId)
            .WhereEquals("CategoryID", categoryId)
            .FirstOrDefault());
 }
Example #2
0
 /// <summary>
 /// Returns <see cref="PageBuilderContainerSiteInfo"/> binding structure.
 /// </summary>
 /// <param name="pagebuildercontainerId">ObjectType.cms_pagebuildercontainer ID.</param>
 /// <param name="siteId">Site ID.</param>
 public static PageBuilderContainerSiteInfo GetPageBuilderContainerSiteInfo(int pagebuildercontainerId, int siteId)
 {
     return(ProviderObject.GetObjectQuery().TopN(1)
            .WhereEquals("PageBuilderContainerID", pagebuildercontainerId)
            .WhereEquals("SiteID", siteId)
            .FirstOrDefault());
 }
 /// <summary>
 /// Returns the NodeBazInfo structure.
 /// Null if binding doesn't exist.
 /// </summary>
 /// <param name="nodeId">Node ID</param>
 /// <param name="bazId">ObjectType.demo_baz ID</param>
 protected virtual NodeBazInfo GetNodeBazInfoInternal(int nodeId, int bazId)
 {
     return(ProviderObject.GetObjectQuery().TopN(1)
            .WhereEquals("NodeID", nodeId)
            .WhereEquals("BazID", bazId)
            .FirstOrDefault());
 }
 /// <summary>
 /// Returns the FooBarInfo structure.
 /// Null if binding doesn't exist.
 /// </summary>
 /// <param name="fooId">ObjectType.demo_foo ID</param>
 /// <param name="barId">ObjectType.demo_bar ID</param>
 protected virtual FooBarInfo GetFooBarInfoInternal(int fooId, int barId)
 {
     return(ProviderObject.GetObjectQuery().TopN(1)
            .WhereEquals("FooID", fooId)
            .WhereEquals("BarID", barId)
            .FirstOrDefault());
 }
 /// <summary>
 /// Returns <see cref="FooCategoryInfo"/> binding structure.
 /// </summary>
 /// <param name="fooId">ObjectType.demo_foo ID.</param>
 /// <param name="categoryId">Content category ID.</param>
 public static FooCategoryInfo GetFooCategoryInfo(int fooId, int categoryId)
 {
     return(ProviderObject.GetObjectQuery().TopN(1)
            .WhereEquals("FooID", fooId)
            .WhereEquals("CategoryID", categoryId)
            .FirstOrDefault());
 }
Example #6
0
 /// <summary>
 /// Returns a query for all the <see cref="CustomMetricInfo"/> objects.
 /// </summary>
 public static ObjectQuery <CustomMetricInfo> GetCustomMetrics()
 {
     return(ProviderObject.GetObjectQuery());
 }
Example #7
0
 /// <summary>
 /// Returns all <see cref="TreeCategoryInfo"/> bindings.
 /// </summary>
 public static ObjectQuery <TreeCategoryInfo> GetTreeCategories()
 {
     return(ProviderObject.GetObjectQuery());
 }
 /// <summary>
 /// Returns a query for all the <see cref="RedirectionTableInfo"/> objects.
 /// </summary>
 public static ObjectQuery <RedirectionTableInfo> GetRedirectionTables()
 {
     return(ProviderObject.GetObjectQuery());
 }
Example #9
0
 /// <summary>
 /// Returns a query for all the <see cref="SlugGenerationQueueInfo"/> objects.
 /// </summary>
 public static ObjectQuery <SlugGenerationQueueInfo> GetSlugGenerationQueues()
 {
     return(ProviderObject.GetObjectQuery());
 }
Example #10
0
 /// <summary>
 /// Returns all <see cref="NodeRegionInfo"/> bindings.
 /// </summary>
 public static ObjectQuery <NodeRegionInfo> GetNodeRegions()
 {
     return(ProviderObject.GetObjectQuery());
 }
 /// <summary>
 /// Returns a query for all the <see cref="AppointmentInfo"/> objects.
 /// </summary>
 public static ObjectQuery <AppointmentInfo> GetAppointments()
 {
     return(ProviderObject.GetObjectQuery());
 }
 /// <summary>
 /// Returns a query for all the <see cref="WildcardUrlInfo"/> objects.
 /// </summary>
 public static ObjectQuery <WildcardUrlInfo> GetWildcardUrls()
 {
     return(ProviderObject.GetObjectQuery());
 }
Example #13
0
 /// <summary>
 /// Returns all <see cref="PageBuilderContainerSiteInfo"/> bindings.
 /// </summary>
 public static ObjectQuery <PageBuilderContainerSiteInfo> GetPageBuilderContainerSites()
 {
     return(ProviderObject.GetObjectQuery());
 }
 /// <summary>
 /// Returns a query for all the <see cref="UrlSlugInfo"/> objects.
 /// </summary>
 public static ObjectQuery <UrlSlugInfo> GetUrlSlugs()
 {
     return(ProviderObject.GetObjectQuery());
 }
Example #15
0
 public static ObjectQuery <UserWidgetInfo> GetUserWidgets() => ProviderObject.GetObjectQuery();
 /// <summary>
 /// Returns all NodeBazInfo bindings.
 /// </summary>
 public static ObjectQuery <NodeBazInfo> GetNodeBazes()
 {
     return(ProviderObject.GetObjectQuery());
 }
Example #17
0
 /// <summary>
 /// Returns a query for all the <see cref="DoctorInfo"/> objects.
 /// </summary>
 public static ObjectQuery <DoctorInfo> GetDoctors()
 {
     return(ProviderObject.GetObjectQuery());
 }
 /// <summary>
 /// Returns a query for all the <see cref="UrlSlugStagingTaskIgnoreInfo"/> objects.
 /// </summary>
 public static ObjectQuery <UrlSlugStagingTaskIgnoreInfo> GetUrlSlugStagingTaskIgnores()
 {
     return(ProviderObject.GetObjectQuery());
 }
Example #19
0
 /// <summary>
 /// Returns a query for all the <see cref="ExampleModuleClassInfo"/> objects.
 /// </summary>
 public static ObjectQuery <ExampleModuleClassInfo> GetExampleModuleClasses()
 {
     return(ProviderObject.GetObjectQuery());
 }
 /// <summary>
 /// Returns all FooBarInfo bindings.
 /// </summary>
 public static ObjectQuery <FooBarInfo> GetFooBars()
 {
     return(ProviderObject.GetObjectQuery());
 }