XAFers Community Standup. XAF Modularity, Plugins and Application Domains

Thursday, March 7th, 2024 at 10:00 AM GMT -7


Tentative Agenda: 

  • Introductions
  • Announcements
  • Presentation
  • Questions


Relevant Links:

How to persist metadata using XPO, to crate persistent classes dynamically  


Xaf types info 


XAF dynamically extend your ORM in runtime. 


Allow admin to extend persistent classes.  


XPO class info( the metadata of the class) 


Create persistent metadata on the fly 


How to generate persistent classes at runtime 


Tips for a modular architecture 

  1.  Create an ORM project that you will share across all your modules, this makes it easier to write code on each specific module that interact with domain objects from other modules, otherwise you will  have to interact with shadow properties (properties that only exist at metadata level) 

The concept of shadow properties in EF core, there is no name for that in XPO 

Shadow properties are a feature in Entity Framework (EF) Core that allows you to define properties on your entities that do not exist in your entity class. Essentially, these are properties that EF Core knows about and can use in its model, but they are not explicitly declared in your C# entity classes. This feature can be particularly useful for tracking information such as when an entity was created or modified, without having to clutter your entity classes with properties that are only used for database concerns. 

Shadow properties are typically used for audit fields like CreatedDate, LastModifiedDate, or ForeignKey properties that you do not want to expose on your entity model directly. EF Core will manage these properties in the background, and you can interact with them through the EF Core API, such as when you’re saving changes to the database or querying data. 

  1.  Understand the application life cycle, there are different paths for each platform. https://docs.devexpress.com/eXpressAppFramework/113127/app-shell-and-base-infrastructure/application-life-cycle?ssp=1&darkschemeovr=1&setlang=en&cc=US&safesearch=moderate 
  1. Understand how modules works. https://docs.devexpress.com/eXpressAppFramework/118046/app-shell-and-base-infrastructure/application-solution-components/modules?ssp=1&darkschemeovr=1&setlang=en&cc=US&safesearch=moderate 
  1. Ways to register modules. 


  1. Understanding application domains and Assembly contexts  
  1. Model generator updaters. 


  1. Solid design pattern 




Posted in XAF

2 thoughts on “XAFers Community Standup. XAF Modularity, Plugins and Application Domains

Leave a Reply

Your email address will not be published.