189 lines
5.1 KiB
C#
189 lines
5.1 KiB
C#
// ========================================================================
|
|
// 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>
|
|
/// StepInfo Generated by MyGeneration using the CSLA Object Mapping template
|
|
/// </summary>
|
|
[Serializable()]
|
|
public partial class StepInfo : ReadOnlyBase<StepInfo>
|
|
{
|
|
#region Business Methods
|
|
private int _StepID;
|
|
[System.ComponentModel.DataObjectField(true, true)]
|
|
public int StepID
|
|
{
|
|
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
|
get
|
|
{
|
|
CanReadProperty(true);
|
|
return _StepID;
|
|
}
|
|
}
|
|
private string _StepType = string.Empty;
|
|
public string StepType
|
|
{
|
|
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
|
get
|
|
{
|
|
CanReadProperty(true);
|
|
return _StepType;
|
|
}
|
|
}
|
|
private int _TextMID;
|
|
public int TextMID
|
|
{
|
|
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
|
get
|
|
{
|
|
CanReadProperty(true);
|
|
return _TextMID;
|
|
}
|
|
}
|
|
private string _Config = string.Empty;
|
|
public string Config
|
|
{
|
|
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
|
get
|
|
{
|
|
CanReadProperty(true);
|
|
return _Config;
|
|
}
|
|
}
|
|
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 _StepTextcount = 0;
|
|
/// <summary>
|
|
/// Count of StepText for this Step
|
|
/// </summary>
|
|
public int StepTextCount
|
|
{
|
|
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
|
get
|
|
{
|
|
CanReadProperty(true);
|
|
return _StepTextcount;
|
|
}
|
|
}
|
|
private StepTextInfoList _StepTexts = null;
|
|
public StepTextInfoList StepTexts
|
|
{
|
|
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
|
get
|
|
{
|
|
CanReadProperty(true);
|
|
if (_StepTexts == null)
|
|
_StepTexts = StepTextInfoList.GetByStep(_StepID);
|
|
return _StepTexts;
|
|
}
|
|
}
|
|
private int _ZStepcount = 0;
|
|
/// <summary>
|
|
/// Count of ZStep for this Step
|
|
/// </summary>
|
|
public int ZStepCount
|
|
{
|
|
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
|
get
|
|
{
|
|
CanReadProperty(true);
|
|
return _ZStepcount;
|
|
}
|
|
}
|
|
private ZStepInfoList _ZSteps = null;
|
|
public ZStepInfoList ZSteps
|
|
{
|
|
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
|
get
|
|
{
|
|
CanReadProperty(true);
|
|
if (_ZSteps == null)
|
|
_ZSteps = ZStepInfoList.GetByStep(_StepID);
|
|
return _ZSteps;
|
|
}
|
|
}
|
|
// TODO: Replace base StepInfo.ToString function as necessary
|
|
/// <summary>
|
|
/// Overrides Base ToString
|
|
/// </summary>
|
|
/// <returns>A string representation of current StepInfo</returns>
|
|
//public override string ToString()
|
|
//{
|
|
// return base.ToString();
|
|
//}
|
|
// TODO: Check StepInfo.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 StepInfo</returns>
|
|
protected override object GetIdValue()
|
|
{
|
|
return _StepID;
|
|
}
|
|
#endregion
|
|
#region Factory Methods
|
|
private StepInfo()
|
|
{ /* require use of factory methods */ }
|
|
public Step Get()
|
|
{
|
|
return Step.Get(_StepID);
|
|
}
|
|
#endregion
|
|
#region Data Access Portal
|
|
internal StepInfo(SafeDataReader dr)
|
|
{
|
|
try
|
|
{
|
|
_StepID = dr.GetInt32("StepID");
|
|
_StepType = dr.GetString("StepType");
|
|
_TextMID = dr.GetInt32("TextMID");
|
|
_Config = dr.GetString("Config");
|
|
_DTS = dr.GetDateTime("DTS");
|
|
_UserID = dr.GetString("UserID");
|
|
_StepTextcount = dr.GetInt32("StepTextCount");
|
|
_ZStepcount = dr.GetInt32("ZStepCount");
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
Database.LogException("StepInfo.Constructor", ex);
|
|
throw new DbCslaException("StepInfo.Constructor", ex);
|
|
}
|
|
}
|
|
#endregion
|
|
} // Class
|
|
} // Namespace
|