// ======================================================================== // 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 { /// /// StepInfo Generated by MyGeneration using the CSLA Object Mapping template /// [Serializable()] public partial class StepInfo : ReadOnlyBase { #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; /// /// Count of StepText for this Step /// 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; /// /// Count of ZStep for this Step /// 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 /// /// Overrides Base ToString /// /// A string representation of current StepInfo //public override string ToString() //{ // return base.ToString(); //} // TODO: Check StepInfo.GetIdValue to assure that the ID returned is unique /// /// Overrides Base GetIdValue - Used internally by CSLA to determine equality /// /// A Unique ID for the current StepInfo 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