abcdefghijklmnopqrstuvwxyz .,;:?/()
ABCDEFGHIJKLMNOPQRSTUVWXYZ_________
/* ---- [ cut here: next file '.auto.cs'] ---------------- */
//-------------------------------------------------------------
//
//
// .auto.cs
//
// (c)2007 Cygnet Solutions Ltd
//
// Main application entry point for
// Automatically generated from application description using
// adl2activerecord.xsl revision
//
//
//
// This file is automatically generated; DO NOT EDIT IT.
//
//-------------------------------------------------------------
using System;
using System.Windows.Forms;
using Castle.ActiveRecord;
using Castle.ActiveRecord.Framework.Config;
using Cygnet.Entities;
namespace
{
/// <summary>
///
/// </summary>
/// <remarks>
/// Automatically generated from description of application
/// using adl2activerecord.xsl revision .
/// Note that manually maintained parts of this class may be defined in
/// a separate file called .manual.cs, q.v.
///
/// DO NOT EDIT THIS FILE!
/// </remarks>
public class
{
public static void Main()
{
XmlConfigurationSource source = new XmlConfigurationSource("appconfig.xml");
ActiveRecordStarter.Initialize( source
, typeof( )
);
}
}
}
/* ---- [ cut here: next file 'junk'] ------------------------- */
/* ---- [ cut here: next file '.auto.cs'] ---------------- */
//-------------------------------------------------------------
//
//
// .auto.cs
//
// (c)2007 Cygnet Solutions Ltd
//
// Automatically generated from application description using
// adl2activerecord.xsl revision
//
//
//
// This file is automatically generated; DO NOT EDIT IT.
//
//-------------------------------------------------------------
using System;
using System.Text;
using System.Collections.Generic;
using Castle.ActiveRecord;
using Cygnet.Entities;
using Cygnet.Exceptions;
using Cygnet.Entities.Exceptions;
namespace
{
/// <summary>
///
/// </summary>
/// <remarks>
/// Automatically generated from description of entity
/// using adl2activerecord.xsl revision .
/// Note that manually maintained parts of this class may be defined in
/// a separate file called .manual.cs, q.v.
///
/// DO NOT EDIT THIS FILE!
/// </remarks>
[ActiveRecord]
public partial class : AdlActiveRecord<>
{
/// <summary>
/// Auto-generated no-args constructor; does nothing (but probably should
/// ensure ID slot is initialised correctly)
/// </summary>
public () : base(){
}
/* natural primary key exists - not generating abstract key */
/* primary key exists - not generating abstract key */
/// <summary>
/// Auto-generated constructor; initialises each of the slots within
/// the primary key and also all one-to-many and many-to-many slots
/// </summary>
public (
,
){
this. = ;
}
ADL: ERROR: Entity '' has no key. Was the
canonicalise stage missed in the build process?
/// <summary>
/// Auto-generated overridden property for the Key slot, maps onto
///
/// .KeyString
/// </summary>
public override string KeyString {
get {
StringBuilder result = new StringBuilder();
result.Append(.KeyString);
result.Append('|');
return result.ToString();
}
}
/// <summary>
/// A user readable distinct identifying string
/// </summary>
public override string UserIdentifier
{
get {
StringBuilder result = new StringBuilder();
if ( != null){
result.Append( );
}
if ( != null){
result.Append( );
}
if ( != null){
result.Append(.ToString( "d"));
}
if ( != null){
result.Append(.ToString( "t"));
}
result.Append(.ToString());
if ( != null){
result.Append();
}
result.Append( ",");
result.AppendFormat( "#{0}", KeyString);
return result.ToString();
}
}
/// <summary>
/// If I should not be deleted, return a message explaining why I should not be deleted; else null.
/// </summary>
/// <returns>a message explaining why I should not be deleted; else null</returns>
public override string NoDeleteReason {
get {
string result = null;
StringBuilder bob = new StringBuilder();
if ( != null && .Count > 0) {
bob.AppendFormat("Cannot delete this as it has {0} dependent ; ", .Count);
}
if (bob.Length > 0) {
result = bob.ToString();
}
return result;
}
}
}
}
/* ---- [ cut here: next file 'junk'] ------------------------- */
/* NOTE: property '' is marked as being abstract; it must
* be supported by manually maintained code */
// auto generating iv/property pair for slot with name
?
= ""
=
= null
= false
= 0
= 0.0M
= 0.0
= null
private Regex Validator = new Regex( "");
public const int =
ADL: ERROR: Cannot infer a value for option
;
private ;
/// <summary>
///
/// Auto generated property for field
///
/// </summary>
[PrimaryKey]
[Property(ColumnType="StringClob")]
[HasMany(Inverse=true, Cascade=ManyRelationCascadeEnum.All)]
[HasMany(Inverse=true, Cascade=ManyRelationCascadeEnum.AllDeleteOrphan)]
[HasMany(Inverse=true, Cascade=ManyRelationCascadeEnum.Delete)]
[HasMany(Inverse=true, Cascade=ManyRelationCascadeEnum.SaveUpdate)]
[HasMany]
[BelongsTo()]
[Property]
[IsUserDistinct()]
public virtual
{
get {
if ( == null) {
= new List<>();
}
return ;
}
set {
if ( value == null)
{
throw new DataRequiredException(
"The value for may not be set to null"
);
}
if ( value > )
{
throw new DataRangeException( "The maximum permitted value for is ");
}
if ( value < )
{
throw new DataRangeException( "The minimum permitted value for is ");
}
if ( value != null && ! Validator.IsMatch( value))
{
throw new DataFormatException( string.Format( "The value supplied ({0}) does not match the format required by ", value));
}
switch ( value ) {
case
:
break;
default:
throw new DataRangeException( string.Format( "The value supplied ({0}) is not an acceptable value for ", value));
}
if ( value != null && value.Length > )
{
value = value.Substring( 0, );
}
= value;
}
}
/// <summary>
/// auto generated primitive value for key property of type entity (experimental)
/// </summary>
private
= false
= 0
= 0.0M
= 0.0
= null
[unknown? ]
;
/// <summary>
/// auto generated primitive value getter/setter for key property of type entity (experimental)
/// </summary>
public virtual {
get { return ; }
set { = value; }
}
/* */
""
///
= new Message();
= new List<>();
ADL: ERROR: could not find C# base type of property
Message
IList<>
IList<>
DateTime
DateTime
String
String
Boolean
DateTime
int
double
Decimal
[unknown?]