[Adapdev-commits] Adapdev/src/Adapdev/Attributes SchemaDataRewritableAttribute.cs,1.4,1.5
Status: Beta
Brought to you by:
intesar66
From: Sean M. <int...@us...> - 2005-11-16 07:19:53
|
Update of /cvsroot/adapdev/Adapdev/src/Adapdev/Attributes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4187/src/Adapdev/Attributes Added Files: SchemaDataRewritableAttribute.cs Log Message: --- NEW FILE: SchemaDataRewritableAttribute.cs --- using System; namespace Adapdev.Attributes { /// <summary> /// Summary description for CompareAttribute. /// /// Add this attribute to Schema properties that should or shouldn't be updated when performing /// a CompareDatabaseSchema between the saved schema and DB schema's /// </summary> [AttributeUsage(AttributeTargets.Property)] public class SchemaDataRewritableAttribute : Attribute { private bool _rewrite; /// <summary> /// SchemaDataRewritableAttribute /// </summary> /// <param name="rewrite">bool - is this property going to be rewritten from the DatabaseSchema</param> public SchemaDataRewritableAttribute(bool rewrite) { this._rewrite = rewrite; } /// <summary> /// Is this Schema property it be re-written from the Database schama /// </summary> public bool Rewrite { get{return this._rewrite;} set{this._rewrite = value;} } } } |