continue;
}
- DataTable table = HandleTable(element);
+ _ = HandleTable(element);
+
}
if (_dsElement != null)
// it should be user defined Named simple type
if (((XmlSchemaSimpleType)typeNode).Name != null && ((XmlSchemaSimpleType)typeNode).Name.Length != 0 && ((XmlSchemaSimpleType)typeNode).QualifiedName.Namespace != Keywords.XSDNS)
{
- string targetNamespace = XSDSchema.GetMsdataAttribute(typeNode, Keywords.TARGETNAMESPACE);
strType = ((XmlSchemaSimpleType)typeNode).QualifiedName.ToString(); // use qualifed name
type = ParseDataType(strType);
}
{
string dsName = node.Name;
string dsNamespace = node.QualifiedName.Namespace;
- int initialTableCount = _ds.Tables.Count; // just use for inference backward compatablity
List<DataTable> tableSequenceList = new List<DataTable>();
_sRoot = rootSchema;
WriteSchemaRoot(xd, rootSchema, dt.Namespace);
- XmlElement dsCompositor = FillDataSetElement(xd, null, dt);
+ _ = FillDataSetElement(xd, null, dt);
_constraintSeparator = xd.CreateElement(Keywords.XSD_PREFIX, "SHOULDNOTBEHERE", Keywords.XSDNS);
_dsElement.AppendChild(_constraintSeparator);
root.SetAttribute(Keywords.REF, _prefixes[col.Namespace] + ":" + col.EncodedColumnName);
if (col.Table.Namespace != _ds.Namespace)
{
- string prefix = (string)_prefixes[col.Namespace];
- XmlElement tNode = GetSchema(col.Table.Namespace);
+ _ = GetSchema(col.Table.Namespace);
}
}
}
string tablePrefix = (table.Namespace.Length != 0) ? table.Prefix : string.Empty;
- // read value if the TextOnly column (if any)
- object val = (table.XmlText == null ? DBNull.Value : row[table.XmlText, DataRowVersion.Original]);
-
//old row
_xmlw.WriteStartElement(tablePrefix, row.Table.EncodedTableName, row.Table.Namespace);
_isDiffgram = true;
_rowsOrder = rowsOrder;
- int countTopTable = _topLevelTables.Length;
-
string prefix = (_ds != null) ? ((_ds.Namespace.Length == 0) ? "" : _ds.Prefix) : ((_dt.Namespace.Length == 0) ? "" : _dt.Prefix);
if (_ds == null || _ds.DataSetName == null || _ds.DataSetName.Length == 0)