Update of /cvsroot/adapdev/Adapdev/src/Adapdev.Data/Schema
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29764/src/Adapdev.Data/Schema
Modified Files:
ColumnSchema.cs
Log Message:
Changes made for schema xml serialization. Uses custom SchemaDataRewritableAttribute attribute to indicate if a property is to be uppdated. Added Xml tags to properties
Index: ColumnSchema.cs
===================================================================
RCS file: /cvsroot/adapdev/Adapdev/src/Adapdev.Data/Schema/ColumnSchema.cs,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** ColumnSchema.cs 23 Oct 2005 07:27:20 -0000 1.5
--- ColumnSchema.cs 6 Nov 2005 09:41:27 -0000 1.6
***************
*** 3,6 ****
--- 3,8 ----
using System;
using System.Collections;
+ using System.Xml.Serialization;
+ using Adapdev.Attributes;
using Adapdev.Text;
***************
*** 34,37 ****
--- 36,41 ----
/// Specifies whether the column is readonly
/// </summary>
+ [XmlAttribute]
+ [SchemaDataRewritableAttribute(true)]
public bool IsReadOnly
{
***************
*** 45,48 ****
--- 49,54 ----
/// be part of a TableSchema, but ignored for various reasons
/// </summary>
+ [XmlAttribute]
+ [SchemaDataRewritableAttribute(false)]
public bool IsActive
{
***************
*** 54,57 ****
--- 60,65 ----
/// The ordinal number of the column
/// </summary>
+ [XmlAttribute]
+ [SchemaDataRewritableAttribute(true)]
public int Ordinal
{
***************
*** 63,66 ****
--- 71,76 ----
/// Specifies whether the column allows nulls
/// </summary>
+ [XmlAttribute]
+ [SchemaDataRewritableAttribute(true)]
public bool AllowNulls
{
***************
*** 72,75 ****
--- 82,87 ----
/// Specifies whether the column is unique
/// </summary>
+ [XmlAttribute]
+ [SchemaDataRewritableAttribute(true)]
public bool IsUnique
{
***************
*** 81,84 ****
--- 93,98 ----
/// Specifies whether the column is an autoincrement column
/// </summary>
+ [XmlAttribute]
+ [SchemaDataRewritableAttribute(true)]
public bool IsAutoIncrement
{
***************
*** 90,93 ****
--- 104,109 ----
/// Specifies whether the column is a primary key
/// </summary>
+ [XmlAttribute]
+ [SchemaDataRewritableAttribute(true)]
public bool IsPrimaryKey
{
***************
*** 99,102 ****
--- 115,120 ----
/// Specifies whether the column is a foreign key
/// </summary>
+ [XmlAttribute]
+ [SchemaDataRewritableAttribute(true)]
public bool IsForeignKey
{
***************
*** 108,111 ****
--- 126,131 ----
/// Specifies whether the column is a key (primary or foreign)
/// </summary>
+ [XmlAttribute]
+ [SchemaDataRewritableAttribute(false)]
public bool IsKey
{
***************
*** 120,123 ****
--- 140,145 ----
/// The .NET Object equivalent for the column
/// </summary>
+ [XmlAttribute]
+ [SchemaDataRewritableAttribute(true)]
public string NetType
{
***************
*** 129,132 ****
--- 151,156 ----
/// The database type
/// </summary>
+ [XmlAttribute]
+ [SchemaDataRewritableAttribute(true)]
public string DataType
{
***************
*** 138,141 ****
--- 162,167 ----
/// The column length
/// </summary>
+ [XmlAttribute]
+ [SchemaDataRewritableAttribute(true)]
public int Length
{
***************
*** 147,150 ****
--- 173,178 ----
/// The column name
/// </summary>
+ [XmlAttribute]
+ [SchemaDataRewritableAttribute(true)]
public string Name
{
***************
*** 156,159 ****
--- 184,189 ----
/// The column alias
/// </summary>
+ [XmlAttribute]
+ [SchemaDataRewritableAttribute(false)]
public string Alias
{
***************
*** 169,172 ****
--- 199,204 ----
/// The numeric id (assigned by ADO.NET) for the specified data type
/// </summary>
+ [XmlAttribute]
+ [SchemaDataRewritableAttribute(true)]
public int DataTypeId
{
***************
*** 179,182 ****
--- 211,216 ----
/// </summary>
/// <value></value>
+ [XmlAttribute]
+ [SchemaDataRewritableAttribute(false)]
public string DefaultValue
{
***************
*** 189,192 ****
--- 223,228 ----
/// </summary>
/// <value></value>
+ [XmlAttribute]
+ [SchemaDataRewritableAttribute(false)]
public string DefaultTestValue
{
***************
*** 199,202 ****
--- 235,239 ----
/// </summary>
/// <value></value>
+ [XmlIgnore]
public ArrayList ForeignKeyTables
{
***************
*** 210,213 ****
--- 247,252 ----
/// </summary>
/// <returns></returns>
+ [XmlAttribute]
+ [SchemaDataRewritableAttribute(false)]
public string ProperName
{
***************
*** 220,223 ****
--- 259,264 ----
/// </summary>
/// <returns></returns>
+ [XmlAttribute]
+ [SchemaDataRewritableAttribute(false)]
public string MemberName
{
|