/*
* 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;
namespace DataHolder.DataPersistence.DBAProvider.Properties{
/// <summary>
/// Generic interface for mapping a generic data property with a DataTable field
/// </summary>
public abstract class APersistenceField
{
protected string l_PropertyName;
protected APersistenceField(string p_PropertyName)
{
l_PropertyName = p_PropertyName;
if(p_PropertyName.Length == 0)
throw new ApplicationException("Invalid Property name when defining table persistence field");
}
public string PropertyName
{
get{return l_PropertyName;}
}
public virtual string RecordSetName
{
get{throw new Exception("RecordSetName property not implemented in " + this.GetType().ToString());}
}
public virtual string Alias
{
get{throw new Exception("Alias property not implemented in " + this.GetType().ToString());}
}
public virtual bool SaveConcurrencyCheck
{
get{return true;}
}
}
}
|