// ======================================================================== // 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 { /// /// TextMInfo Generated by MyGeneration using the CSLA Object Mapping template /// [Serializable()] public partial class TextMInfo : ReadOnlyBase { #region Business Methods private int _TextMID; [System.ComponentModel.DataObjectField(true, true)] public int TextMID { [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)] get { CanReadProperty(true); return _TextMID; } } private string _TextMValue = string.Empty; public string TextMValue { [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)] get { CanReadProperty(true); return _TextMValue; } } 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 _Stepcount = 0; /// /// Count of Step for this TextM /// public int StepCount { [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)] get { CanReadProperty(true); return _Stepcount; } } private StepInfoList _Steps = null; public StepInfoList Steps { [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)] get { CanReadProperty(true); if (_Steps == null) _Steps = StepInfoList.GetByTextM(_TextMID); return _Steps; } } // TODO: Replace base TextMInfo.ToString function as necessary /// /// Overrides Base ToString /// /// A string representation of current TextMInfo //public override string ToString() //{ // return base.ToString(); //} // TODO: Check TextMInfo.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 TextMInfo protected override object GetIdValue() { return _TextMID; } #endregion #region Factory Methods private TextMInfo() { /* require use of factory methods */ } public TextM Get() { return TextM.Get(_TextMID); } #endregion #region Data Access Portal internal TextMInfo(SafeDataReader dr) { try { _TextMID = dr.GetInt32("TextMID"); _TextMValue = dr.GetString("TextMValue"); _DTS = dr.GetDateTime("DTS"); _UserID = dr.GetString("UserID"); _Stepcount = dr.GetInt32("StepCount"); } catch (Exception ex) { Database.LogException("TextMInfo.Constructor", ex); throw new DbCslaException("TextMInfo.Constructor", ex); } } #endregion } // Class } // Namespace