// ======================================================================== // 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 { /// /// AssignmentInfo Generated by MyGeneration using the CSLA Object Mapping template /// [Serializable()] public partial class AssignmentInfo : ReadOnlyBase { #region Business Methods private int _AID; [System.ComponentModel.DataObjectField(true, true)] public int AID { [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)] get { CanReadProperty(true); return _AID; } } private int _GID; public int GID { [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)] get { CanReadProperty(true); return _GID; } } private int _RID; public int RID { [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)] get { CanReadProperty(true); return _RID; } } private int _FolderID; public int FolderID { [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)] get { CanReadProperty(true); return _FolderID; } } private string _StartDate = string.Empty; public string StartDate { [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)] get { CanReadProperty(true); return _StartDate; } } private string _EndDate = string.Empty; public string EndDate { [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)] get { CanReadProperty(true); return _EndDate; } } private DateTime _DTS = new DateTime(); public DateTime DTS { [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)] get { CanReadProperty(true); return _DTS; } } private string _UsrID = string.Empty; public string UsrID { [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)] get { CanReadProperty(true); return _UsrID; } } // TODO: Replace base AssignmentInfo.ToString function as necessary /// /// Overrides Base ToString /// /// A string representation of current AssignmentInfo //public override string ToString() //{ // return base.ToString(); //} // TODO: Check AssignmentInfo.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 AssignmentInfo protected override object GetIdValue() { return _AID; } #endregion #region Factory Methods private AssignmentInfo() { /* require use of factory methods */ } public Assignment Get() { return Assignment.Get(_AID); } #endregion #region Data Access Portal internal AssignmentInfo(SafeDataReader dr) { try { _AID = dr.GetInt32("AID"); _GID = dr.GetInt32("GID"); _RID = dr.GetInt32("RID"); _FolderID = dr.GetInt32("FolderID"); _StartDate = dr.GetSmartDate("StartDate").Text; _EndDate = dr.GetSmartDate("EndDate").Text; _DTS = dr.GetDateTime("DTS"); _UsrID = dr.GetString("UsrID"); } catch (Exception ex) { Database.LogException("AssignmentInfo.Constructor", ex); throw new DbCslaException("AssignmentInfo.Constructor", ex); } } #endregion } // Class } // Namespace