// ========================================================================
// 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
{
///
/// FolderDocVersions Generated by MyGeneration using the CSLA Object Mapping template
///
[Serializable()]
[TypeConverter(typeof(FolderDocVersionsConverter))]
public partial class FolderDocVersions : 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 FolderDocVersion this[DocVersion myDocVersion]
{
get
{
foreach (FolderDocVersion docVersion in this)
if (docVersion.VersionID == myDocVersion.VersionID)
return docVersion;
return null;
}
}
public new System.Collections.Generic.IList Items
{
get { return base.Items; }
}
public FolderDocVersion GetItem(DocVersion myDocVersion)
{
foreach (FolderDocVersion docVersion in this)
if (docVersion.VersionID == myDocVersion.VersionID)
return docVersion;
return null;
}
public FolderDocVersion Add(string name) // One to Many
{
FolderDocVersion docVersion = FolderDocVersion.New(name);
this.Add(docVersion);
return docVersion;
}
public void Remove(DocVersion myDocVersion)
{
foreach (FolderDocVersion docVersion in this)
{
if (docVersion.VersionID == myDocVersion.VersionID)
{
Remove(docVersion);
break;
}
}
}
public bool Contains(DocVersion myDocVersion)
{
foreach (FolderDocVersion docVersion in this)
if (docVersion.VersionID == myDocVersion.VersionID)
return true;
return false;
}
public bool ContainsDeleted(DocVersion myDocVersion)
{
foreach (FolderDocVersion docVersion in DeletedList)
if (docVersion.VersionID == myDocVersion.VersionID)
return true;
return false;
}
public bool IsDirtyList(List