i give example
c# version value is :
Version
vrs = new Version(Application.ProductVersion);vrs = 1.0.0.0
i stored another version value in Database ,
i can retieve database value to dataset only.
version comparison take
"vrs.CompareTo(new Version(dbversion)"
how to convert dataset value into version model value like 1.0.0.0?
Jaganathan BantheswaranPosted Mar 18, 2011, 8:44 AM
Save the version value as string in DB. Get the version value and use as you mentioned here
Like,
string dbVersion = version value from db.
Version vrs = new Version(Application.ProductVersion);
if( vrs.CompareTo(new Version(dbVersion) == 0)
{
// its equal so do the stuff
}