The purpose of this upgrade is to improve the user experience when using the Admin tool to Update ROs. Currently for larger RO dbs (like Barakah) we can run up against memory constraints that do not allow all the ROs to be updated at one time. This is based upon some initial resource where some places were identified where we could improve memory usage. Some of these should benefit PROMS as a whole while others will be specific to the RO Update option in Admin Tools.
149 lines
4.9 KiB
C#
149 lines
4.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;
|
|
|
|
namespace Volian.Object.Library
|
|
{
|
|
/// <summary>
|
|
/// MembershipInfo Generated by MyGeneration using the CSLA Object Mapping template
|
|
/// </summary>
|
|
[Serializable()]
|
|
public partial class MembershipInfo : ReadOnlyBase<MembershipInfo>
|
|
{
|
|
#region Business Methods
|
|
|
|
|
|
private int _ugid;
|
|
[System.ComponentModel.DataObjectField(true, true)]
|
|
public int Ugid
|
|
{
|
|
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
|
get
|
|
{
|
|
return _ugid;
|
|
}
|
|
}
|
|
private int _uid;
|
|
[System.ComponentModel.DataObjectField(true, true)]
|
|
public int Uid
|
|
{
|
|
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
|
get
|
|
{
|
|
return _uid;
|
|
}
|
|
}
|
|
private int _gid;
|
|
[System.ComponentModel.DataObjectField(true, true)]
|
|
public int Gid
|
|
{
|
|
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
|
get
|
|
{
|
|
return _gid;
|
|
}
|
|
}
|
|
private string _startdate = string.Empty;
|
|
[System.ComponentModel.DataObjectField(true, true)]
|
|
public string StartDate
|
|
{
|
|
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
|
get
|
|
{
|
|
return _startdate;
|
|
}
|
|
}
|
|
private string _enddate = string.Empty;
|
|
[System.ComponentModel.DataObjectField(true, true)]
|
|
public string EndDate
|
|
{
|
|
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
|
get
|
|
{
|
|
return _enddate;
|
|
}
|
|
}
|
|
private DateTime _dts = new DateTime();
|
|
[System.ComponentModel.DataObjectField(true, true)]
|
|
public DateTime Dts
|
|
{
|
|
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
|
get
|
|
{
|
|
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
|
|
{
|
|
return _usrid;
|
|
}
|
|
}
|
|
// TODO: Replace base MembershipInfo.ToString function as necessary
|
|
/// <summary>
|
|
/// Overrides Base ToString
|
|
/// </summary>
|
|
/// <returns>A string representation of current MembershipInfo</returns>
|
|
//public override string ToString()
|
|
//{
|
|
// return base.ToString();
|
|
//}
|
|
|
|
// TODO: Check MembershipInfo.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 MembershipInfo</returns>
|
|
protected override object GetIdValue()
|
|
{
|
|
return _ugid;
|
|
}
|
|
|
|
|
|
#endregion
|
|
#region Factory Methods
|
|
private MembershipInfo()
|
|
{ /* require use of factory methods */ }
|
|
|
|
#endregion
|
|
#region Data Access Portal
|
|
|
|
internal MembershipInfo(SafeDataReader dr)
|
|
{
|
|
try
|
|
{
|
|
_ugid = dr.GetInt32("UGID");
|
|
_uid = dr.GetInt32("UID");
|
|
_gid = dr.GetInt32("GID");
|
|
_startdate = dr.GetSmartDate("StartDate").Text;
|
|
_enddate = dr.GetSmartDate("EndDate").Text;
|
|
_dts = dr.GetDateTime("DTS");
|
|
_usrid = dr.GetString("UsrID");
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
Database.LogException("MembershipInfo", ex);
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
} // Class
|
|
} // Namespace
|