Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using entity object with MM .Net 2.4 and C#
Message
 
À
15/11/2007 09:53:05
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 2.0
OS:
Vista
Database:
MS SQL Server
Divers
Thread ID:
01269015
Message ID:
01269321
Vues:
19
Willy,

>The Entity object is empty (all nulls).

OK...the problem is that you are setting the entity object and then passing a DataSet to be saved which will subsequently overwrite whatever happened to be in the business object. Your easiest path here is to do this:
>protected void btnSave_Click(object sender, EventArgs e)
{
 DataSet dsFundingReports = (DataSet)Session["dsFundingReports"];
 this.oFundingReport.SetCurrentDataSet(dsFundingReports);

 //Modify the column Image Type
 oFundingReport.Entity.FundingReportImageType = "pdf";

 if (this.Save(this.oFundingReport) == mmSaveDataResult.RulesPassed) { }

}
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