132 lines
3.5 KiB
C#
132 lines
3.5 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;
|
|
|
|
namespace Volian.Object.Library
|
|
{
|
|
/// <summary>
|
|
/// RoleInfo Generated by MyGeneration using the CSLA Object Mapping template
|
|
/// </summary>
|
|
[Serializable()]
|
|
public partial class RoleInfo : ReadOnlyBase<RoleInfo>
|
|
{
|
|
#region Business Methods
|
|
|
|
|
|
private int _rid;
|
|
[System.ComponentModel.DataObjectField(true, true)]
|
|
public int Rid
|
|
{
|
|
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
|
get
|
|
{
|
|
CanReadProperty(true);
|
|
return _rid;
|
|
}
|
|
}
|
|
private string _name=string.Empty;
|
|
[System.ComponentModel.DataObjectField(true, true)]
|
|
public string Name
|
|
{
|
|
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
|
get
|
|
{
|
|
CanReadProperty(true);
|
|
return _name;
|
|
}
|
|
}
|
|
private string _title=string.Empty;
|
|
[System.ComponentModel.DataObjectField(true, true)]
|
|
public string Title
|
|
{
|
|
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
|
get
|
|
{
|
|
CanReadProperty(true);
|
|
return _title;
|
|
}
|
|
}
|
|
private DateTime _dts=new DateTime();
|
|
[System.ComponentModel.DataObjectField(true, true)]
|
|
public DateTime Dts
|
|
{
|
|
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
|
get
|
|
{
|
|
CanReadProperty(true);
|
|
return _dts;
|
|
}
|
|
}
|
|
private string _usrid=string.Empty;
|
|
[System.ComponentModel.DataObjectField(true, true)]
|
|
public string Usrid
|
|
{
|
|
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
|
get
|
|
{
|
|
CanReadProperty(true);
|
|
return _usrid;
|
|
}
|
|
}
|
|
// TODO: Replace base RoleInfo.ToString function as necessary
|
|
/// <summary>
|
|
/// Overrides Base ToString
|
|
/// </summary>
|
|
/// <returns>A string representation of current RoleInfo</returns>
|
|
//public override string ToString()
|
|
//{
|
|
// return base.ToString();
|
|
//}
|
|
|
|
// TODO: Check RoleInfo.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 RoleInfo</returns>
|
|
protected override object GetIdValue()
|
|
{
|
|
return _rid;
|
|
}
|
|
|
|
|
|
#endregion
|
|
#region Factory Methods
|
|
private RoleInfo()
|
|
{ /* require use of factory methods */ }
|
|
|
|
#endregion
|
|
#region Data Access Portal
|
|
|
|
internal RoleInfo(SafeDataReader dr)
|
|
{
|
|
try
|
|
{
|
|
_rid = dr.GetInt32("RID");
|
|
_name = dr.GetString("Name");
|
|
_title = dr.GetString("Title");
|
|
_dts = dr.GetDateTime("DTS");
|
|
_usrid = dr.GetString("UsrID");
|
|
}
|
|
catch(Exception ex)
|
|
{
|
|
Database.LogException("RoleInfo",ex);
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
} // Class
|
|
} // Namespace
|