This commit is contained in:
188
PROMS/proms/Volian.CSLA.Library/Generated/GroupInfo.cs
Normal file
188
PROMS/proms/Volian.CSLA.Library/Generated/GroupInfo.cs
Normal file
@@ -0,0 +1,188 @@
|
||||
// ========================================================================
|
||||
// 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>
|
||||
/// GroupInfo Generated by MyGeneration using the CSLA Object Mapping template
|
||||
/// </summary>
|
||||
[Serializable()]
|
||||
public partial class GroupInfo : ReadOnlyBase<GroupInfo>
|
||||
{
|
||||
#region Business Methods
|
||||
private int _GID;
|
||||
[System.ComponentModel.DataObjectField(true, true)]
|
||||
public int GID
|
||||
{
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
CanReadProperty(true);
|
||||
return _GID;
|
||||
}
|
||||
}
|
||||
private string _GroupName = string.Empty;
|
||||
public string GroupName
|
||||
{
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
CanReadProperty(true);
|
||||
return _GroupName;
|
||||
}
|
||||
}
|
||||
private int _GroupType;
|
||||
public int GroupType
|
||||
{
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
CanReadProperty(true);
|
||||
return _GroupType;
|
||||
}
|
||||
}
|
||||
private string _Config = string.Empty;
|
||||
public string Config
|
||||
{
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
CanReadProperty(true);
|
||||
return _Config;
|
||||
}
|
||||
}
|
||||
private DateTime _DTS = new DateTime();
|
||||
public DateTime DTS
|
||||
{
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
CanReadProperty(true);
|
||||
return _DTS;
|
||||
}
|
||||
}
|
||||
private string _UsrID = string.Empty;
|
||||
public string UsrID
|
||||
{
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
CanReadProperty(true);
|
||||
return _UsrID;
|
||||
}
|
||||
}
|
||||
private int _Assignmentcount = 0;
|
||||
/// <summary>
|
||||
/// Count of Assignment for this Group
|
||||
/// </summary>
|
||||
public int AssignmentCount
|
||||
{
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
CanReadProperty(true);
|
||||
return _Assignmentcount;
|
||||
}
|
||||
}
|
||||
private AssignmentInfoList _Assignments = null;
|
||||
public AssignmentInfoList Assignments
|
||||
{
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
CanReadProperty(true);
|
||||
if (_Assignments == null)
|
||||
_Assignments = AssignmentInfoList.GetByGroup(_GID);
|
||||
return _Assignments;
|
||||
}
|
||||
}
|
||||
private int _Membershipcount = 0;
|
||||
/// <summary>
|
||||
/// Count of Membership for this Group
|
||||
/// </summary>
|
||||
public int MembershipCount
|
||||
{
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
CanReadProperty(true);
|
||||
return _Membershipcount;
|
||||
}
|
||||
}
|
||||
private MembershipInfoList _Memberships = null;
|
||||
public MembershipInfoList Memberships
|
||||
{
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
CanReadProperty(true);
|
||||
if (_Memberships == null)
|
||||
_Memberships = MembershipInfoList.GetByGroup(_GID);
|
||||
return _Memberships;
|
||||
}
|
||||
}
|
||||
// TODO: Replace base GroupInfo.ToString function as necessary
|
||||
/// <summary>
|
||||
/// Overrides Base ToString
|
||||
/// </summary>
|
||||
/// <returns>A string representation of current GroupInfo</returns>
|
||||
//public override string ToString()
|
||||
//{
|
||||
// return base.ToString();
|
||||
//}
|
||||
// TODO: Check GroupInfo.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 GroupInfo</returns>
|
||||
protected override object GetIdValue()
|
||||
{
|
||||
return _GID;
|
||||
}
|
||||
#endregion
|
||||
#region Factory Methods
|
||||
private GroupInfo()
|
||||
{ /* require use of factory methods */ }
|
||||
public Group Get()
|
||||
{
|
||||
return Group.Get(_GID);
|
||||
}
|
||||
#endregion
|
||||
#region Data Access Portal
|
||||
internal GroupInfo(SafeDataReader dr)
|
||||
{
|
||||
try
|
||||
{
|
||||
_GID = dr.GetInt32("GID");
|
||||
_GroupName = dr.GetString("GroupName");
|
||||
_GroupType = dr.GetInt32("GroupType");
|
||||
_Config = dr.GetString("Config");
|
||||
_DTS = dr.GetDateTime("DTS");
|
||||
_UsrID = dr.GetString("UsrID");
|
||||
_Assignmentcount = dr.GetInt32("AssignmentCount");
|
||||
_Membershipcount = dr.GetInt32("MembershipCount");
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Database.LogException("GroupInfo.Constructor", ex);
|
||||
throw new DbCslaException("GroupInfo.Constructor", ex);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
} // Class
|
||||
} // Namespace
|
Reference in New Issue
Block a user