Exemplo n.º 1
0
        private void WriteHeaderInfo(XmlWriter writer, CremaDataTable dataTable)
        {
            var name     = dataTable.GetXmlPath(this.targetNamespace);
            var user     = name + CremaSchema.ModifierExtension;
            var dateTime = name + CremaSchema.ModifiedDateTimeExtension;
            var count    = name + CremaSchema.CountExtension;
            var id       = name + CremaSchema.IDExtension;

            writer.WriteAttribute(user, dateTime, dataTable.ContentsInfo);
            writer.WriteAttribute(count, dataTable.Rows.Count);
            writer.WriteAttribute(id, dataTable.TableID.ToString());
        }