Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Handling date fields from Visual FoxPro
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 2.0
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01129644
Message ID:
01171651
Vues:
9
Ted,

>Like I said before, regarding setting the current row in RowUpdating():
>
>// this does NOT set the row: this.oSurveyDue.Entity.SetDataRow(CurrentRow);
>
>// The below does:
>this.oSurveyDue.DataRow = CurrentRow;

Right...I guess I wasn't clear in my response, but I was agreeing with you.

>Regarding storing null date my code below works, what you provided does not compile & provides this error:
>
>Error 1 Type of conditional expression cannot be determined because there is no implicit conversion between 'System.DBNull' and 'System.DateTime?' C:\MM.NET\MMS\MMS Business Objects CSharp\SurveyDueEntity.cs 112 62 MMS Business Objects CSharp


Sorry about that...the code I have at the Framework level has a different type conversion that works properly, so for now I recommend using the code you originally showed where you are setting an empty date value.

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