Download presentation
Presentation is loading. Please wait.
1
Adxstudio Portals Training
Portal Development Basics
2
MasterPortal Helper Classes
PortalPage, PortalMasterPage, PortalUserControl, WebformPortalUserControl Every Page Template, Master Page, User Control, and Web Form User Control you create, respectively, should inherit from these Gives you access to: XrmContext ServiceContext PortalContext (And convenience properties)
3
Portal Context This allows us to always know the Website, Portal User Contact, Current Entity (based on the current site map node), and gives us a ServiceContext These are all surfaced at the PortalPage as properties
4
Using the XrmContext Gives you access to the LINQ query Provider
Simple, quick For more complicated queries use fetchXml
5
Late-Bound Methods Dynamic methods can be used as an alternative for power users Can create dynamic queries Better performance No need to code gen
6
Early-Bound Methods Strongly-typed classes
Allows for dot-through in code Requires Code Generation (CrmSvcUtil.exe)
7
CrmSvcUtil Necessary to run this utility if custom entities are to be queried using early-bound methods in code Use the supplied .cmd file that comes with Adxstudio Portals for example usage Requires various parameters to be supplied in order to function with adxstudio Portals: /codeCustomization:"Microsoft.Xrm.Client.CodeGeneration.CodeCustomiza tion, Microsoft.Xrm.Client.CodeGeneration“ /namespace:Xrm /serviceContextName: XrmServiceContext /serviceContextPrefix: Xrm /url, /out (as appropriate)
Similar presentations
© 2024 SlidePlayer.com Inc.
All rights reserved.