Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting Defaults
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01423203
Message ID:
01423214
Vues:
45
Eric,

>protected override void HookSetDefaultValues(OrderDetailEntity entity)
>{
> if (this.DefaultValues != null)
> {
> // Store the dynamic default values via the entity object
> entity.OrderID = Defaults.OrderID;
> }
>}
>

The Defaults property is generated by the Business Layer Generator -- only if you have dynamic default values (vs,. hard-coded values). It looks like this on the OrderDetail business object:
/// <summary>
/// Default values object
/// </summary>
public virtual OrderDetailDefaults Defaults
{
	get { return (OrderDetailDefaults)this.DefaultValues; }
	set { this._defaults = value; }
}
private OrderDetailDefaults _defaults;
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform