// ========================================================================
// Copyright 2007 - Volian Enterprises, Inc. All rights reserved.
// Volian Enterprises - Proprietary Information - DO NOT COPY OR DISTRIBUTE
// ------------------------------------------------------------------------
// $Workfile: $ $Revision: $
// $Author: $ $Date: $
//
// $History: $
// ========================================================================
using System;
using System.Data;
using System.Data.SqlClient;
using Csla;
using Csla.Data;
using System.Configuration;
using System.IO;
using System.ComponentModel;
using System.Collections.Generic;
using Csla.Validation;
namespace VEPROMS.CSLA.Library
{
///
/// DocumentEntries Generated by MyGeneration using the CSLA Object Mapping template
///
[Serializable()]
[TypeConverter(typeof(DocumentEntriesConverter))]
public partial class DocumentEntries : BusinessListBase, ICustomTypeDescriptor, IVEHasBrokenRules , IDisposable
{
#region Log4Net
private static readonly log4net.ILog _MyLog = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
#endregion
#region Business Methods
private string _ErrorMessage = string.Empty;
public string ErrorMessage
{
get { return _ErrorMessage; }
}
// One To Many
public DocumentEntry this[Entry myEntry]
{
get
{
foreach (DocumentEntry entry in this)
if (entry.ContentID == myEntry.ContentID)
return entry;
return null;
}
}
public new System.Collections.Generic.IList Items
{
get { return base.Items; }
}
public DocumentEntry GetItem(Entry myEntry)
{
foreach (DocumentEntry entry in this)
if (entry.ContentID == myEntry.ContentID)
return entry;
return null;
}
public DocumentEntry Add(Entry myEntry) // One to Many
{
DocumentEntry entry = DocumentEntry.New(myEntry);
this.Add(entry);
return entry;
}
public void Remove(Entry myEntry)
{
foreach (DocumentEntry entry in this)
{
if (entry.ContentID == myEntry.ContentID)
{
Remove(entry);
break;
}
}
}
public bool Contains(Entry myEntry)
{
foreach (DocumentEntry entry in this)
if (entry.ContentID == myEntry.ContentID)
return true;
return false;
}
public bool ContainsDeleted(Entry myEntry)
{
foreach (DocumentEntry entry in DeletedList)
if (entry.ContentID == myEntry.ContentID)
return true;
return false;
}
public bool IsDirtyList(List