141 lines
3.9 KiB
C#
141 lines
3.9 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>
|
|
/// TextMInfo Generated by MyGeneration using the CSLA Object Mapping template
|
|
/// </summary>
|
|
[Serializable()]
|
|
public partial class TextMInfo : ReadOnlyBase<TextMInfo>
|
|
{
|
|
#region Business Methods
|
|
private int _TextMID;
|
|
[System.ComponentModel.DataObjectField(true, true)]
|
|
public int TextMID
|
|
{
|
|
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
|
get
|
|
{
|
|
CanReadProperty(true);
|
|
return _TextMID;
|
|
}
|
|
}
|
|
private string _TextMValue = string.Empty;
|
|
public string TextMValue
|
|
{
|
|
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
|
get
|
|
{
|
|
CanReadProperty(true);
|
|
return _TextMValue;
|
|
}
|
|
}
|
|
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;
|
|
}
|
|
}
|
|
private int _Stepcount = 0;
|
|
/// <summary>
|
|
/// Count of Step for this TextM
|
|
/// </summary>
|
|
public int StepCount
|
|
{
|
|
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
|
get
|
|
{
|
|
CanReadProperty(true);
|
|
return _Stepcount;
|
|
}
|
|
}
|
|
private StepInfoList _Steps = null;
|
|
public StepInfoList Steps
|
|
{
|
|
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
|
get
|
|
{
|
|
CanReadProperty(true);
|
|
if (_Steps == null)
|
|
_Steps = StepInfoList.GetByTextM(_TextMID);
|
|
return _Steps;
|
|
}
|
|
}
|
|
// TODO: Replace base TextMInfo.ToString function as necessary
|
|
/// <summary>
|
|
/// Overrides Base ToString
|
|
/// </summary>
|
|
/// <returns>A string representation of current TextMInfo</returns>
|
|
//public override string ToString()
|
|
//{
|
|
// return base.ToString();
|
|
//}
|
|
// TODO: Check TextMInfo.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 TextMInfo</returns>
|
|
protected override object GetIdValue()
|
|
{
|
|
return _TextMID;
|
|
}
|
|
#endregion
|
|
#region Factory Methods
|
|
private TextMInfo()
|
|
{ /* require use of factory methods */ }
|
|
public TextM Get()
|
|
{
|
|
return TextM.Get(_TextMID);
|
|
}
|
|
#endregion
|
|
#region Data Access Portal
|
|
internal TextMInfo(SafeDataReader dr)
|
|
{
|
|
try
|
|
{
|
|
_TextMID = dr.GetInt32("TextMID");
|
|
_TextMValue = dr.GetString("TextMValue");
|
|
_DTS = dr.GetDateTime("DTS");
|
|
_UserID = dr.GetString("UserID");
|
|
_Stepcount = dr.GetInt32("StepCount");
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
Database.LogException("TextMInfo.Constructor", ex);
|
|
throw new DbCslaException("TextMInfo.Constructor", ex);
|
|
}
|
|
}
|
|
#endregion
|
|
} // Class
|
|
} // Namespace
|