using System;
using System.Collections;
using System.Runtime.Serialization;
using DataHolder.Containers;
namespace GEGeneratorWizzard{
#region WizzardAttribute
[Serializable]
public class WizzardAttribute : DataHolder.Containers.GenericData
{
#region Constructors
public WizzardAttribute()
{
GUID = Guid.NewGuid().ToString();
}
public WizzardAttribute(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("AttributeName", typeof(string) , DBNull.Value, true)
,
new DataHolder.Containers.Property.Property("AttributeConstructorSentence", typeof(string) , DBNull.Value, true)
,
new DataHolder.Containers.Property.Property("GUID", typeof(string) , string.Empty, true)
}
);
}
}
public string AttributeName
{
get{return GetValue<string>( 0, string.Empty);}
set{SetValue<string>(0, value, string.Empty);}
}
public string AttributeConstructorSentence
{
get{return GetValue<string>( 1, string.Empty);}
set{SetValue<string>(1, value, string.Empty);}
}
public string GUID
{
get{return GetValue<string>( 2, string.Empty);}
set{SetValue<string>(2, value, string.Empty);}
}
}
#endregion
}
|