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