// ======================================================================== // 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 { /// /// ZSectionInfo Generated by MyGeneration using the CSLA Object Mapping template /// [Serializable()] public partial class ZSectionInfo : ReadOnlyBase { #region Business Methods private int _SectID; [System.ComponentModel.DataObjectField(true, true)] public int SectID { [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)] get { CanReadProperty(true); return _SectID; } } private string _OldStepSequence = string.Empty; public string OldStepSequence { [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)] get { CanReadProperty(true); return _OldStepSequence; } } // TODO: Replace base ZSectionInfo.ToString function as necessary /// /// Overrides Base ToString /// /// A string representation of current ZSectionInfo //public override string ToString() //{ // return base.ToString(); //} // TODO: Check ZSectionInfo.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 ZSectionInfo protected override object GetIdValue() { return _SectID; } #endregion #region Factory Methods private ZSectionInfo() { /* require use of factory methods */ } public ZSection Get() { return ZSection.Get(_SectID); } #endregion #region Data Access Portal internal ZSectionInfo(SafeDataReader dr) { try { _SectID = dr.GetInt32("SectID"); _OldStepSequence = dr.GetString("OldStepSequence"); } catch (Exception ex) { Database.LogException("ZSectionInfo.Constructor", ex); throw new DbCslaException("ZSectionInfo.Constructor", ex); } } #endregion } // Class } // Namespace