// ========================================================================
// 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
{
///
/// ItemTransitions_RangeID Generated by MyGeneration using the CSLA Object Mapping template
///
[Serializable()]
[TypeConverter(typeof(ItemTransitions_RangeIDConverter))]
public partial class ItemTransitions_RangeID : 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 ItemTransition_RangeID this[Transition myTransition]
{
get
{
foreach (ItemTransition_RangeID transition in this)
if (transition.TransitionID == myTransition.TransitionID)
return transition;
return null;
}
}
public new System.Collections.Generic.IList Items
{
get { return base.Items; }
}
public ItemTransition_RangeID GetItem(Transition myTransition)
{
foreach (ItemTransition_RangeID transition in this)
if (transition.TransitionID == myTransition.TransitionID)
return transition;
return null;
}
public ItemTransition_RangeID Add(Content myContent, Item myItemToID) // One to Many
{
ItemTransition_RangeID transition = ItemTransition_RangeID.New(myContent, myItemToID);
this.Add(transition);
return transition;
}
public void Remove(Transition myTransition)
{
foreach (ItemTransition_RangeID transition in this)
{
if (transition.TransitionID == myTransition.TransitionID)
{
Remove(transition);
break;
}
}
}
public bool Contains(Transition myTransition)
{
foreach (ItemTransition_RangeID transition in this)
if (transition.TransitionID == myTransition.TransitionID)
return true;
return false;
}
public bool ContainsDeleted(Transition myTransition)
{
foreach (ItemTransition_RangeID transition in DeletedList)
if (transition.TransitionID == myTransition.TransitionID)
return true;
return false;
}
public bool IsDirtyList(List