Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BusinessProcess apparently not saving
Message
 
À
17/07/2012 08:14:56
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01547911
Message ID:
01548749
Vues:
42
Frank,

>This is the code I was calling:
>
>
        public PolicyEntity GetPolicyByPolicyHeaderFK(Guid policyHeaderFK)
>        {
>            return this.GetEntity("PoliciesSelectByPolicyHeaderFK",
>                this.CreateParameter("@PolicyHeaderFK", policyHeaderFK));
>        }
>
>
>I found the section on using business processes in the help and tried adjusting my code like this:
>
>
        public mmSaveDataResult DailyProcessPolicy(PolicyHeaderEntity oPolicyHeaderEntity, int userPK)
>        {
>// do I need to call GetEmptyDataSet first?
>            this.oPolicyHeader.GetEmptyDataSet();
>            this.oPolicyHeader.GetPolicyHeaderByPolicyHeaderPK(oPolicyHeaderEntity.PolicyHeaderPK);
>
>            mmBindingList<PolicyEntity> PolicyList = this.oPolicy.GetPolicyListByPolicyHeaderFK(oPolicyHeaderEntity.PolicyHeaderPK);
>
>
>So I am now returning an Entity List and things apparently work. However I am still a little confused as I still make my changes to the Entity and that is now being reflected in the Entity list and getting saved.

All the entities you retrieve using the business controller object get included in the entity list, so making a change to the entity then saving the list saves the entity too.

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