// ======================================================================== // 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 { /// /// DocVersionInfo Generated by MyGeneration using the CSLA Object Mapping template /// [Serializable()] public partial class DocVersionInfo : ReadOnlyBase { #region Business Methods private int _VersionID; [System.ComponentModel.DataObjectField(true, true)] public int VersionID { [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)] get { CanReadProperty(true); return _VersionID; } } private int _FolderID; public int FolderID { [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)] get { CanReadProperty(true); return _FolderID; } } private int _VersionType; /// /// 0 Working Draft, 1 Temporary, 128 Revision, 129 Approved (Greater than 127 - non editable) /// public int VersionType { [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)] get { CanReadProperty(true); return _VersionType; } } private string _Name = string.Empty; public string Name { [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)] get { CanReadProperty(true); return _Name; } } private string _Title = string.Empty; public string Title { [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)] get { CanReadProperty(true); return _Title; } } private int _StructureID; public int StructureID { [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)] get { CanReadProperty(true); return _StructureID; } } 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; } } // TODO: Replace base DocVersionInfo.ToString function as necessary /// /// Overrides Base ToString /// /// A string representation of current DocVersionInfo //public override string ToString() //{ // return base.ToString(); //} // TODO: Check DocVersionInfo.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 DocVersionInfo protected override object GetIdValue() { return _VersionID; } #endregion #region Factory Methods private DocVersionInfo() { /* require use of factory methods */ } public DocVersion Get() { return DocVersion.Get(_VersionID); } #endregion #region Data Access Portal internal DocVersionInfo(SafeDataReader dr) { try { _VersionID = dr.GetInt32("VersionID"); _FolderID = dr.GetInt32("FolderID"); _VersionType = dr.GetInt32("VersionType"); _Name = dr.GetString("Name"); _Title = dr.GetString("Title"); _StructureID = dr.GetInt32("StructureID"); _Config = dr.GetString("Config"); _DTS = dr.GetDateTime("DTS"); _UserID = dr.GetString("UserID"); } catch (Exception ex) { Database.LogException("DocVersionInfo.Constructor", ex); throw new DbCslaException("DocVersionInfo.Constructor", ex); } } #endregion } // Class } // Namespace