/*
* Namespace Summary
* Copyright (C) 2005+ Bogdan Damian Constantin
* E-Mail: damianbcpetro@gmail.com
* WEB: http://www.sourceforge.net/projects/dataholder
*
* This library is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License 2.1 or later, as
* published by the Free Software Foundation. See the included License.txt
* or http://www.gnu.org/copyleft/lesser.html for details.
*
*/
using System;
using System.Data;
namespace DataHolder.Containers{
/// <summary>
/// Summary description for UtilVersion.
/// </summary>
public class UtilVersion
{
public static DataRowVersion GetDataRowVersion(GenericDataVersion vers)
{
if(vers == GenericDataVersion.Original)
return DataRowVersion.Original;
else
return DataRowVersion.Current;
}
public static GenericDataVersion GetGenericDataVersion(DataRowVersion vers)
{
if(vers == DataRowVersion.Original)
return GenericDataVersion.Original;
else
return GenericDataVersion.Current;
}
}
}
|