using System;
using System.Collections;
using System.Runtime.Serialization;
using DataHolder.Containers;
namespace GEGeneratorWizzard{
#region WizzardTableJoin
[Serializable]
public class WizzardTableJoin : DataHolder.Containers.GenericData
{
#region Constructors
public WizzardTableJoin()
{
GUID = Guid.NewGuid().ToString();
}
public WizzardTableJoin(SerializationInfo info, StreamingContext context):base(info, context)
{
if(GUID.Length == 0)
GUID = Guid.NewGuid().ToString();
}
#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("MasterTableName", typeof(string) )
,
new DataHolder.Containers.Property.Property("MasterTableIndex", typeof(int) , 0, true)
,
new DataHolder.Containers.Property.Property("JoinType", typeof(string) , "DataHolder.DataPersistence.DBAProviderTableJoinType.InnerJoin", true)
,
new DataHolder.Containers.Property.Property("Index", typeof(int) , 0, true)
,
new DataHolder.Containers.Property.Property("GUID", typeof(string), string.Empty, true)
,
new DataHolder.Containers.Property.Property("MasterTableGUID", typeof(string), string.Empty, true)
,
new DataHolder.Containers.Property.TypedProperty("RelationMapping", typeof(GenericDataCollection<WizzardTypedRelationMapping>) )
}
);
}
}
public String MasterTableName
{
get{return GetValue<string>( 0, string.Empty);}
set{SetValue<string>(0, value, string.Empty);}
}
public Int32 MasterTableIndex
{
get{return (Int32)this[1];}
set{this[1] = value;}
}
public String JoinType
{
get{return (String)this[2];}
set{this[2] = value;}
}
public Int32 Index
{
get{return (Int32)this[3];}
set{this[3] = value;}
}
public String GUID
{
get{return (String)this[4];}
set{this[4] = value;}
}
public String MasterTableGUID
{
get{return GetValue<string>( 5, string.Empty);}
set{SetValue<string>(5, value, string.Empty);}
}
public GenericDataCollection<WizzardTypedRelationMapping> RelationMapping
{
get{return (GenericDataCollection<WizzardTypedRelationMapping>)this[6];}
set{this[6] = value;}
}
}
#endregion
}
|