using System;
using System.Collections;
using System.Runtime.Serialization;
using DataHolder.Containers;
namespace GEGeneratorWizzard{
#region WizzardContainer
[Serializable]
public class WizzardContainer : DataHolder.Containers.GenericData
{
#region Constructors
public WizzardContainer()
{}
public WizzardContainer(SerializationInfo info, StreamingContext context):base(info, context)
{}
#endregion
protected override DataHolder.Containers.Property.PropertyCollection NewPropertyCollection
{
get
{
return new DataHolder.Containers.Property.PropertyCollection(
new DataHolder.Containers.Property.GenericDataProperty [] {
new DataHolder.Containers.Property.Property("DefaultDataNameSpace", typeof(string) , DBNull.Value, true)
,
new DataHolder.Containers.Property.Property("DefaultPersistorNameSpace", typeof(string) , DBNull.Value, true)
,
new DataHolder.Containers.Property.Property("DataBaseConnectionString", typeof(string) , DBNull.Value, true)
,
new DataHolder.Containers.Property.TypedProperty("DataHolders", typeof(GenericDataCollection<WizzardDataHolder>), true )
,
new DataHolder.Containers.Property.TypedProperty("Attributes", typeof(GenericDataCollection<WizzardAttribute>), true )
}
);
}
}
public String DefaultDataNameSpace
{
get{return GetValue<string>( 0, string.Empty);}
set{SetValue<string>(0, value, string.Empty);}
}
public String DefaultPersistorNameSpace
{
get{return GetValue<string>( 1, string.Empty);}
set{SetValue<string>(1, value, string.Empty);}
}
public String DataBaseConnectionString
{
get{return GetValue<string>( 2, string.Empty);}
set{SetValue<string>(2, value, string.Empty);}
}
public GenericDataCollection<WizzardDataHolder> DataHolders
{
get{return (GenericDataCollection<WizzardDataHolder>)this[3];}
set{this[3] = value;}
}
public GenericDataCollection<WizzardAttribute> Attributes
{
get{return (GenericDataCollection<WizzardAttribute>)this[4];}
set{this[4] = value;}
}
}
#endregion
}
|