Commit for development environment setup
This commit is contained in:
167
PROMS/VEPROMS_Security/Volian.Object.Library/FolderInfo.cs
Normal file
167
PROMS/VEPROMS_Security/Volian.Object.Library/FolderInfo.cs
Normal file
@@ -0,0 +1,167 @@
|
||||
|
||||
// ========================================================================
|
||||
// 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>
|
||||
/// FolderInfo Generated by MyGeneration using the CSLA Object Mapping template
|
||||
/// </summary>
|
||||
[Serializable()]
|
||||
public partial class FolderInfo : ReadOnlyBase<FolderInfo>
|
||||
{
|
||||
#region Business Methods
|
||||
|
||||
|
||||
private int _folderid;
|
||||
[System.ComponentModel.DataObjectField(true, true)]
|
||||
public int Folderid
|
||||
{
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
CanReadProperty(true);
|
||||
return _folderid;
|
||||
}
|
||||
}
|
||||
private int _parentid;
|
||||
[System.ComponentModel.DataObjectField(true, true)]
|
||||
public int Parentid
|
||||
{
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
CanReadProperty(true);
|
||||
return _parentid;
|
||||
}
|
||||
}
|
||||
private int _dbid;
|
||||
[System.ComponentModel.DataObjectField(true, true)]
|
||||
public int Dbid
|
||||
{
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
CanReadProperty(true);
|
||||
return _dbid;
|
||||
}
|
||||
}
|
||||
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 string _config=string.Empty;
|
||||
[System.ComponentModel.DataObjectField(true, true)]
|
||||
public string Config
|
||||
{
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
CanReadProperty(true);
|
||||
return _config;
|
||||
}
|
||||
}
|
||||
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 FolderInfo.ToString function as necessary
|
||||
/// <summary>
|
||||
/// Overrides Base ToString
|
||||
/// </summary>
|
||||
/// <returns>A string representation of current FolderInfo</returns>
|
||||
//public override string ToString()
|
||||
//{
|
||||
// return base.ToString();
|
||||
//}
|
||||
|
||||
// TODO: Check FolderInfo.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 FolderInfo</returns>
|
||||
protected override object GetIdValue()
|
||||
{
|
||||
return _folderid;
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
#region Factory Methods
|
||||
private FolderInfo()
|
||||
{ /* require use of factory methods */ }
|
||||
|
||||
#endregion
|
||||
#region Data Access Portal
|
||||
|
||||
internal FolderInfo(SafeDataReader dr)
|
||||
{
|
||||
try
|
||||
{
|
||||
_folderid = dr.GetInt32("FolderID");
|
||||
_parentid = dr.GetInt32("ParentID");
|
||||
_dbid = dr.GetInt32("DBID");
|
||||
_name = dr.GetString("Name");
|
||||
_title = dr.GetString("Title");
|
||||
_config = dr.GetString("Config");
|
||||
_dts = dr.GetDateTime("DTS");
|
||||
_usrid = dr.GetString("UsrID");
|
||||
}
|
||||
catch(Exception ex)
|
||||
{
|
||||
Database.LogException("FolderInfo",ex);
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
} // Class
|
||||
} // Namespace
|
Reference in New Issue
Block a user