2006-11-14 14:33:33 +00:00

137 lines
3.8 KiB
C#

// ========================================================================
// 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
{
/// <summary>
/// StepTextInfo Generated by MyGeneration using the CSLA Object Mapping template
/// </summary>
[Serializable()]
public partial class StepTextInfo : ReadOnlyBase<StepTextInfo>
{
#region Business Methods
private int _StepTextMID;
[System.ComponentModel.DataObjectField(true, true)]
public int StepTextMID
{
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
get
{
CanReadProperty(true);
return _StepTextMID;
}
}
private int _StepID;
public int StepID
{
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
get
{
CanReadProperty(true);
return _StepID;
}
}
private int _ItemType;
public int ItemType
{
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
get
{
CanReadProperty(true);
return _ItemType;
}
}
private string _TextM = string.Empty;
public string TextM
{
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
get
{
CanReadProperty(true);
return _TextM;
}
}
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 StepTextInfo.ToString function as necessary
/// <summary>
/// Overrides Base ToString
/// </summary>
/// <returns>A string representation of current StepTextInfo</returns>
//public override string ToString()
//{
// return base.ToString();
//}
// TODO: Check StepTextInfo.GetIdValue to assure that the ID returned is unique
/// <summary>
/// Overrides Base GetIdValue - Used internally by CSLA to determine equality
/// </summary>
/// <returns>A Unique ID for the current StepTextInfo</returns>
protected override object GetIdValue()
{
return _StepTextMID;
}
#endregion
#region Factory Methods
private StepTextInfo()
{ /* require use of factory methods */ }
public StepText Get()
{
return StepText.Get(_StepTextMID);
}
#endregion
#region Data Access Portal
internal StepTextInfo(SafeDataReader dr)
{
try
{
_StepTextMID = dr.GetInt32("StepTextMID");
_StepID = dr.GetInt32("StepID");
_ItemType = dr.GetInt32("ItemType");
_TextM = dr.GetString("TextM");
_DTS = dr.GetDateTime("DTS");
_UserID = dr.GetString("UserID");
}
catch (Exception ex)
{
Database.LogException("StepTextInfo.Constructor", ex);
throw new DbCslaException("StepTextInfo.Constructor", ex);
}
}
#endregion
} // Class
} // Namespace