Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dynamics properties in business object
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01177108
Message ID:
01177835
Vues:
10
Andrus,

>Ideablade application can ask the Ideablade PersistenceManager to tell at run-time what data columns it founds in the live data source.
>
>Suppose the Ideblade appl connects to a database containing an Employee table. The application discovers an integer column called “MySpecialNumber”.
>
>The Employee class doesn’t have a MySpecialNumber property.
>
>The application can read and set Employee instance’s MySpecialNumber value using the indexing method. The PersistenceManager will update this data column in the data source when it saves the employee entity.

In reality, MM .NET can also work in a dynamic, untyped fashion. Ultimately, behind the scenes an entity object is a wrapper around untyped data (as is the .NET Typed DataSet). Even though you have specific properties on the entity at design time, the underlying DataTable can have additional columns which can be accessed at run time.

Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform