This commit is contained in:
209
PROMS/proms/Volian.CSLA.Library/Generated/TransitionInfo.cs
Normal file
209
PROMS/proms/Volian.CSLA.Library/Generated/TransitionInfo.cs
Normal file
@@ -0,0 +1,209 @@
|
||||
// ========================================================================
|
||||
// Copyright 2006 - 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;
|
||||
|
||||
namespace Volian.CSLA.Library
|
||||
{
|
||||
/// <summary>
|
||||
/// TransitionInfo Generated by MyGeneration using the CSLA Object Mapping template
|
||||
/// </summary>
|
||||
[Serializable()]
|
||||
public partial class TransitionInfo : ReadOnlyBase<TransitionInfo>
|
||||
{
|
||||
#region Business Methods
|
||||
private int _TransitionId;
|
||||
[System.ComponentModel.DataObjectField(true, true)]
|
||||
public int TransitionId
|
||||
{
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
CanReadProperty(true);
|
||||
return _TransitionId;
|
||||
}
|
||||
}
|
||||
private int _FromId;
|
||||
public int FromId
|
||||
{
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
CanReadProperty(true);
|
||||
return _FromId;
|
||||
}
|
||||
}
|
||||
private int _ToId;
|
||||
/// <summary>
|
||||
/// StructureID
|
||||
/// </summary>
|
||||
public int ToId
|
||||
{
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
CanReadProperty(true);
|
||||
return _ToId;
|
||||
}
|
||||
}
|
||||
private int _TranType;
|
||||
public int TranType
|
||||
{
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
CanReadProperty(true);
|
||||
return _TranType;
|
||||
}
|
||||
}
|
||||
private int _SectID;
|
||||
public int SectID
|
||||
{
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
CanReadProperty(true);
|
||||
return _SectID;
|
||||
}
|
||||
}
|
||||
private int _ProcID;
|
||||
public int ProcID
|
||||
{
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
CanReadProperty(true);
|
||||
return _ProcID;
|
||||
}
|
||||
}
|
||||
private int _SetID;
|
||||
public int SetID
|
||||
{
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
CanReadProperty(true);
|
||||
return _SetID;
|
||||
}
|
||||
}
|
||||
private int _PlantID;
|
||||
public int PlantID
|
||||
{
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
CanReadProperty(true);
|
||||
return _PlantID;
|
||||
}
|
||||
}
|
||||
private DateTime _DTS = new DateTime();
|
||||
public DateTime DTS
|
||||
{
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
CanReadProperty(true);
|
||||
return _DTS;
|
||||
}
|
||||
}
|
||||
private string _UserID = string.Empty;
|
||||
public string UserID
|
||||
{
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
CanReadProperty(true);
|
||||
return _UserID;
|
||||
}
|
||||
}
|
||||
private int _ZTransitioncount = 0;
|
||||
/// <summary>
|
||||
/// Count of ZTransition for this Transition
|
||||
/// </summary>
|
||||
public int ZTransitionCount
|
||||
{
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
CanReadProperty(true);
|
||||
return _ZTransitioncount;
|
||||
}
|
||||
}
|
||||
private ZTransitionInfoList _ZTransitions = null;
|
||||
public ZTransitionInfoList ZTransitions
|
||||
{
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
CanReadProperty(true);
|
||||
if (_ZTransitions == null)
|
||||
_ZTransitions = ZTransitionInfoList.GetByTransition(_TransitionId);
|
||||
return _ZTransitions;
|
||||
}
|
||||
}
|
||||
// TODO: Replace base TransitionInfo.ToString function as necessary
|
||||
/// <summary>
|
||||
/// Overrides Base ToString
|
||||
/// </summary>
|
||||
/// <returns>A string representation of current TransitionInfo</returns>
|
||||
//public override string ToString()
|
||||
//{
|
||||
// return base.ToString();
|
||||
//}
|
||||
// TODO: Check TransitionInfo.GetIdValue to assure that the ID returned is unique
|
||||
/// <summary>
|
||||
/// Overrides Base GetIdValue - Used internally by CSLA to determine equality
|
||||
/// </summary>
|
||||
/// <returns>A Unique ID for the current TransitionInfo</returns>
|
||||
protected override object GetIdValue()
|
||||
{
|
||||
return _TransitionId;
|
||||
}
|
||||
#endregion
|
||||
#region Factory Methods
|
||||
private TransitionInfo()
|
||||
{ /* require use of factory methods */ }
|
||||
public Transition Get()
|
||||
{
|
||||
return Transition.Get(_TransitionId);
|
||||
}
|
||||
#endregion
|
||||
#region Data Access Portal
|
||||
internal TransitionInfo(SafeDataReader dr)
|
||||
{
|
||||
try
|
||||
{
|
||||
_TransitionId = dr.GetInt32("TransitionId");
|
||||
_FromId = dr.GetInt32("FromId");
|
||||
_ToId = dr.GetInt32("ToId");
|
||||
_TranType = dr.GetInt32("TranType");
|
||||
_SectID = dr.GetInt32("SectID");
|
||||
_ProcID = dr.GetInt32("ProcID");
|
||||
_SetID = dr.GetInt32("SetID");
|
||||
_PlantID = dr.GetInt32("PlantID");
|
||||
_DTS = dr.GetDateTime("DTS");
|
||||
_UserID = dr.GetString("UserID");
|
||||
_ZTransitioncount = dr.GetInt32("ZTransitionCount");
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Database.LogException("TransitionInfo.Constructor", ex);
|
||||
throw new DbCslaException("TransitionInfo.Constructor", ex);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
} // Class
|
||||
} // Namespace
|
Reference in New Issue
Block a user