|
// =====================================================================================
// Copyright © 2005 by . All rights are reserved.
//
// If you like this code then feel free to go ahead and use it.
// The only thing I ask is that you don't remove or alter my copyright notice.
//
// Your use of this software is entirely at your own risk. I make no claims or
// warrantees about the reliability or fitness of this code for any particular purpose.
// If you make changes or additions to this code please mark your code as being yours.
//
// website , email OmarALZabir@gmail.com, msn oazabir@hotmail.com
// =====================================================================================
namespace SmartInstitute
{
/// <summary>
/// The interface that each business object of the model implements.
/// </summary>
public interface IEntity
{
/// <summary>
/// The name of the underlying database table.
/// </summary>
string TableName { get;}
/// <summary>
/// Indicates if the object has been modified from its original state.
/// </summary>
///<value>True if object has been modified from its original state; otherwise False;</value>
bool IsDirty {get;}
/// <summary>
/// Indicates if the object is new.
/// </summary>
///<value>True if objectis new; otherwise False;</value>
bool IsNew {get;}
/// <summary>
/// True if object has been marked as deleted. ReadOnly.
/// </summary>
bool IsDeleted {get;}
/// <summary>
/// Accepts the changes made to this object by setting each flags to false.
/// </summary>
void AcceptChanges();
/// <summary>
/// Marks entity to be deleted.
/// </summary>
void MarkToDelete();
/// <summary>
///
/// </summary>
System.Int32 ID{ get; }
/// <summary>
///
/// </summary>
System.DateTime ChangeStamp{ get; }
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here