Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using entity object with MM .Net 2.4 and C#
Message
 
To
15/11/2007 09:53:05
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
C# 2.0
OS:
Vista
Database:
MS SQL Server
Miscellaneous
Thread ID:
01269015
Message ID:
01269321
Views:
18
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
Previous
Reply
Map
View

Click here to load this message in the networking platform