This commit is contained in:
125
PROMS/proms/Volian.CSLA.Library/Generated/RoUsageInfo.cs
Normal file
125
PROMS/proms/Volian.CSLA.Library/Generated/RoUsageInfo.cs
Normal file
@@ -0,0 +1,125 @@
|
||||
// ========================================================================
|
||||
// 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>
|
||||
/// RoUsageInfo Generated by MyGeneration using the CSLA Object Mapping template
|
||||
/// </summary>
|
||||
[Serializable()]
|
||||
public partial class RoUsageInfo : ReadOnlyBase<RoUsageInfo>
|
||||
{
|
||||
#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
|
||||
/// <summary>
|
||||
/// Overrides Base ToString
|
||||
/// </summary>
|
||||
/// <returns>A string representation of current RoUsageInfo</returns>
|
||||
//public override string ToString()
|
||||
//{
|
||||
// return base.ToString();
|
||||
//}
|
||||
// TODO: Check RoUsageInfo.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 RoUsageInfo</returns>
|
||||
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
|
Reference in New Issue
Block a user