Exemple #1
0
        //[Obsolete("for 2.0")]
        /// <summary>
        /// for version 2.0
        /// </summary>
        private void ReadTableInfoVersion2(XmlSchemaComplexType complexType, CremaDataTable dataTable)
        {
            string textValue;

            dataTable.InternalCreationInfo     = complexType.ReadAppInfoAsSigunatureDate(CremaSchema.TableInfo, CremaSchemaObsolete.CreatorObsolete, CremaSchema.CreatedDateTime);
            dataTable.InternalModificationInfo = complexType.ReadAppInfoAsSigunatureDate(CremaSchema.TableInfo, CremaSchema.Modifier, CremaSchema.ModifiedDateTime);

            textValue = complexType.ReadAppInfoAsString(CremaSchema.TableInfo, CremaSchema.ID);
            if (textValue != null)
            {
                dataTable.InternalTableID = Guid.Parse(textValue);
            }
            else
            {
                dataTable.InternalTableID = GuidUtility.FromName(dataTable.Name);
            }

            dataTable.InternalTags    = complexType.ReadAppInfoAsTagInfo(CremaSchema.TableInfo, CremaSchema.Tags);
            dataTable.InternalComment = complexType.ReadDescription();

            var properties = new PropertyCollection();

            this.ReadExtendedProperties(complexType, properties);
            if (properties.ContainsKey(CremaSchemaObsolete.DataLocation) == true)
            {
                dataTable.InternalTags = new TagInfo(properties[CremaSchemaObsolete.DataLocation] as string);
                properties.Remove(CremaSchemaObsolete.DataLocation);
            }
        }
Exemple #2
0
 private void ReadTableInfo(XmlSchemaComplexType complexType, CremaDataTable dataTable)
 {
     dataTable.InternalCreationInfo     = complexType.ReadAppInfoAsSigunatureDate(CremaSchema.TableInfo, CremaSchema.Creator, CremaSchema.CreatedDateTime);
     dataTable.InternalModificationInfo = complexType.ReadAppInfoAsSigunatureDate(CremaSchema.TableInfo, CremaSchema.Modifier, CremaSchema.ModifiedDateTime);
     dataTable.InternalTableID          = complexType.ReadAppInfoAsGuid(CremaSchema.TableInfo, CremaSchema.ID);
     dataTable.InternalTags             = complexType.ReadAppInfoAsTagInfo(CremaSchema.TableInfo, CremaSchema.Tags);
     dataTable.InternalComment          = complexType.ReadDescription();
 }