908 references to Keywords
System.Data (908)
fx\src\data\System\Data\Common\ObjectStorage.cs (6)
308
string typeName = xmlReader.GetAttribute(
Keywords
.MSD_INSTANCETYPE,
Keywords
.MSDNS);
310
string xsdTypeName = xmlReader.GetAttribute(
Keywords
.TYPE,
Keywords
.XSINS); // this xsd type: Base type polymorphism
314
if (xmlReader.LookupNamespace(_typename[0]) ==
Keywords
.XSDNS) {
330
if (typeName ==
Keywords
.TYPEINSTANCE) {
fx\src\data\System\Data\Common\SQLTypes\SqlUDTStorage.cs (4)
161
string typeName = xmlReader.GetAttribute(
Keywords
.MSD_INSTANCETYPE,
Keywords
.MSDNS);
163
string xsdTypeName = xmlReader.GetAttribute(
Keywords
.MSD_INSTANCETYPE,
Keywords
.XSINS); // this xsd type
fx\src\data\System\Data\DataException.cs (2)
1368
return _Data(Res.GetString(Res.Xml_MissingRefer,
Keywords
.REFER,
Keywords
.XSD_KEYREF, name));
fx\src\data\System\Data\DataSet.cs (87)
188
string attribValue = reader.GetAttribute(
Keywords
.MSD_SCHEMASERIALIZATIONMODE,
Keywords
.MSDNS);
189
if ((String.Compare(attribValue,
Keywords
.MSD_EXCLUDESCHEMA, StringComparison.OrdinalIgnoreCase) == 0)) {
192
else if ((String.Compare(attribValue,
Keywords
.MSD_INCLUDESCHEMA, StringComparison.OrdinalIgnoreCase) == 0)) {
1574
if (reader.LocalName ==
Keywords
.XDR_SCHEMA && reader.NamespaceURI ==
Keywords
.XDRNS) {
1580
if (reader.LocalName ==
Keywords
.XSD_SCHEMA && reader.NamespaceURI ==
Keywords
.XSDNS) {
1586
if (reader.LocalName ==
Keywords
.XSD_SCHEMA && reader.NamespaceURI.StartsWith(
Keywords
.XSD_NS_START, StringComparison.Ordinal))
1587
throw ExceptionBuilder.DataSetUnsupportedSchema(
Keywords
.XSDNS);
1595
if (reader.NamespaceURI.Equals(
Keywords
.XSD_XMLNS_NS))
1609
if (reader.LocalName ==
Keywords
.XDR_SCHEMA && reader.NamespaceURI ==
Keywords
.XDRNS) {
1615
if (reader.LocalName ==
Keywords
.XSD_SCHEMA && reader.NamespaceURI ==
Keywords
.XSDNS) {
1621
if (reader.LocalName ==
Keywords
.XSD_SCHEMA && reader.NamespaceURI.StartsWith(
Keywords
.XSD_NS_START, StringComparison.Ordinal))
1622
throw ExceptionBuilder.DataSetUnsupportedSchema(
Keywords
.XSDNS);
1674
if (reader.LocalName ==
Keywords
.XSD_SCHEMA && reader.NamespaceURI ==
Keywords
.XSDNS) {
1676
string attribValue = reader.GetAttribute(
Keywords
.MSD_FRAGMENTCOUNT,
Keywords
.MSDNS); // this must not move the position
1683
while (reader.LocalName ==
Keywords
.XSD_SCHEMA && reader.NamespaceURI ==
Keywords
.XSDNS) {
1931
if ((reader.LocalName ==
Keywords
.DIFFGRAM) && (reader.NamespaceURI ==
Keywords
.DFFNS)) {
1939
if (reader.LocalName ==
Keywords
.XDR_SCHEMA && reader.NamespaceURI ==
Keywords
.XDRNS) {
1945
if (reader.LocalName ==
Keywords
.XSD_SCHEMA && reader.NamespaceURI ==
Keywords
.XSDNS) {
1951
if (reader.LocalName ==
Keywords
.XSD_SCHEMA && reader.NamespaceURI.StartsWith(
Keywords
.XSD_NS_START, StringComparison.Ordinal))
1952
throw ExceptionBuilder.DataSetUnsupportedSchema(
Keywords
.XSDNS);
1962
if (reader.NamespaceURI.Equals(
Keywords
.XSD_XMLNS_NS))
1976
if ((reader.LocalName ==
Keywords
.DIFFGRAM) && (reader.NamespaceURI ==
Keywords
.DFFNS)) {
1987
if (!fSchemaFound && !fDataFound && reader.LocalName ==
Keywords
.XDR_SCHEMA && reader.NamespaceURI ==
Keywords
.XDRNS) {
1995
if (reader.LocalName ==
Keywords
.XSD_SCHEMA && reader.NamespaceURI ==
Keywords
.XSDNS) {
2002
if (reader.LocalName ==
Keywords
.XSD_SCHEMA && reader.NamespaceURI.StartsWith(
Keywords
.XSD_NS_START, StringComparison.Ordinal))
2003
throw ExceptionBuilder.DataSetUnsupportedSchema(
Keywords
.XSDNS);
2005
if ((reader.LocalName ==
Keywords
.DIFFGRAM) && (reader.NamespaceURI ==
Keywords
.DFFNS)) {
2231
if ((reader.LocalName !=
Keywords
.DIFFGRAM) && (reader.NamespaceURI !=
Keywords
.DFFNS))
2240
if ((reader.NamespaceURI !=
Keywords
.DFFNS) && (reader.NamespaceURI !=
Keywords
.MSDNS)) {
2260
if (((reader.LocalName ==
Keywords
.SQL_BEFORE) && (reader.NamespaceURI ==
Keywords
.DFFNS)) ||
2261
((reader.LocalName ==
Keywords
.MSD_ERRORS) && (reader.NamespaceURI ==
Keywords
.DFFNS)))
2364
if ((reader.LocalName ==
Keywords
.DIFFGRAM) && (reader.NamespaceURI ==
Keywords
.DFFNS)) {
2376
if (reader.LocalName ==
Keywords
.XDR_SCHEMA && reader.NamespaceURI ==
Keywords
.XDRNS) {
2389
if (reader.LocalName ==
Keywords
.XSD_SCHEMA && reader.NamespaceURI ==
Keywords
.XSDNS) {
2401
if (reader.LocalName ==
Keywords
.XSD_SCHEMA && reader.NamespaceURI.StartsWith(
Keywords
.XSD_NS_START, StringComparison.Ordinal))
2402
throw ExceptionBuilder.DataSetUnsupportedSchema(
Keywords
.XSDNS);
2411
if (reader.NamespaceURI.Equals(
Keywords
.XSD_XMLNS_NS))
2425
if (reader.LocalName ==
Keywords
.XDR_SCHEMA && reader.NamespaceURI ==
Keywords
.XDRNS) {
2440
if (reader.LocalName ==
Keywords
.XSD_SCHEMA && reader.NamespaceURI ==
Keywords
.XSDNS) {
2454
if ((reader.LocalName ==
Keywords
.DIFFGRAM) && (reader.NamespaceURI ==
Keywords
.DFFNS)) {
2465
if (reader.LocalName ==
Keywords
.XSD_SCHEMA && reader.NamespaceURI.StartsWith(
Keywords
.XSD_NS_START, StringComparison.Ordinal))
2466
throw ExceptionBuilder.DataSetUnsupportedSchema(
Keywords
.XSDNS);
3119
const string xsinill =
Keywords
.XSI + ":" +
Keywords
.XSI_NIL;
3128
const string useDataSetSchemaOnlyString =
Keywords
.MSD + ":" +
Keywords
.USEDATASETSCHEMAONLY;
3139
throw ExceptionBuilder.InvalidAttributeValue(
Keywords
.USEDATASETSCHEMAONLY, _useDataSetSchemaOnly);
3143
const string udtIsWrappedString =
Keywords
.MSD + ":" +
Keywords
.UDTCOLUMNVALUEWRAPPED;
3155
throw ExceptionBuilder.InvalidAttributeValue(
Keywords
.UDTCOLUMNVALUEWRAPPED, _udtIsWrappedString);
3293
elem.RefName = new XmlQualifiedName(
Keywords
.XSD_SCHEMA,
Keywords
.XSDNS);
3307
any.Namespace =
Keywords
.DFFNS;
3336
NameValueCollection settings = (NameValueCollection)PrivilegedConfigurationManager.GetSection(
Keywords
.WS_DATASETFULLQNAME);
3339
string[] values = settings.GetValues(
Keywords
.WS_VERSION);
3682
if (a.LocalName == "IsDataSet" && a.NamespaceURI ==
Keywords
.MSDNS) {
fx\src\data\System\Data\DataTable.cs (55)
5102
if (reader.AttributeCount == 0 || (reader.LocalName ==
Keywords
.DIFFGRAM && reader.NamespaceURI ==
Keywords
.DFFNS)) {
5109
(reader.Prefix ==
Keywords
.XMLNS) &&
5110
(reader.NamespaceURI ==
Keywords
.XSD_XMLNS_NS))
5165
if ((reader.LocalName ==
Keywords
.DIFFGRAM) && (reader.NamespaceURI ==
Keywords
.DFFNS)) {
5182
if (reader.LocalName ==
Keywords
.XDR_SCHEMA && reader.NamespaceURI==
Keywords
.XDRNS) {
5190
if (reader.LocalName ==
Keywords
.XSD_SCHEMA && reader.NamespaceURI==
Keywords
.XSDNS) {
5197
if (reader.LocalName ==
Keywords
.XSD_SCHEMA && reader.NamespaceURI.StartsWith(
Keywords
.XSD_NS_START, StringComparison.Ordinal)) {
5205
throw ExceptionBuilder.DataSetUnsupportedSchema(
Keywords
.XSDNS);
5216
if (reader.NamespaceURI.Equals(
Keywords
.XSD_XMLNS_NS))
5229
if ((reader.LocalName ==
Keywords
.DIFFGRAM) && (reader.NamespaceURI ==
Keywords
.DFFNS)) {
5240
if (!fSchemaFound && !fDataFound && reader.LocalName ==
Keywords
.XDR_SCHEMA && reader.NamespaceURI==
Keywords
.XDRNS) {
5248
if (reader.LocalName ==
Keywords
.XSD_SCHEMA && reader.NamespaceURI==
Keywords
.XSDNS) {
5255
if (reader.LocalName ==
Keywords
.XSD_SCHEMA && reader.NamespaceURI.StartsWith(
Keywords
.XSD_NS_START, StringComparison.Ordinal)) {
5262
throw ExceptionBuilder.DataSetUnsupportedSchema(
Keywords
.XSDNS);
5265
if ((reader.LocalName ==
Keywords
.DIFFGRAM) && (reader.NamespaceURI ==
Keywords
.DFFNS)) {
5374
if ((reader.LocalName ==
Keywords
.DIFFGRAM) && (reader.NamespaceURI ==
Keywords
.DFFNS)) {
5394
if (reader.LocalName ==
Keywords
.XDR_SCHEMA && reader.NamespaceURI==
Keywords
.XDRNS) {
5406
if (reader.LocalName ==
Keywords
.XSD_SCHEMA && reader.NamespaceURI==
Keywords
.XSDNS) {
5417
if (reader.LocalName ==
Keywords
.XSD_SCHEMA && reader.NamespaceURI.StartsWith(
Keywords
.XSD_NS_START, StringComparison.Ordinal)) {
5424
throw ExceptionBuilder.DataSetUnsupportedSchema(
Keywords
.XSDNS);
5434
if (reader.NamespaceURI.Equals(
Keywords
.XSD_XMLNS_NS))
5448
if (reader.LocalName ==
Keywords
.XDR_SCHEMA && reader.NamespaceURI==
Keywords
.XDRNS) {
5461
if (reader.LocalName ==
Keywords
.XSD_SCHEMA && reader.NamespaceURI==
Keywords
.XSDNS) {
5473
if ((reader.LocalName ==
Keywords
.DIFFGRAM) && (reader.NamespaceURI ==
Keywords
.DFFNS)) {
5491
if (reader.LocalName ==
Keywords
.XSD_SCHEMA && reader.NamespaceURI.StartsWith(
Keywords
.XSD_NS_START, StringComparison.Ordinal)) {
5498
throw ExceptionBuilder.DataSetUnsupportedSchema(
Keywords
.XSDNS);
5603
if ((reader.LocalName !=
Keywords
.DIFFGRAM) && (reader.NamespaceURI !=
Keywords
.DFFNS))
5613
if ((reader.NamespaceURI !=
Keywords
.DFFNS) && (reader.NamespaceURI !=
Keywords
.MSDNS)) {
5625
if (((reader.LocalName ==
Keywords
.SQL_BEFORE) && (reader.NamespaceURI ==
Keywords
.DFFNS)) ||
5626
((reader.LocalName ==
Keywords
.MSD_ERRORS) && (reader.NamespaceURI ==
Keywords
.DFFNS)))
5673
while (reader.LocalName ==
Keywords
.XSD_SCHEMA && reader.NamespaceURI==
Keywords
.XSDNS) {
5927
any.Namespace =
Keywords
.DFFNS;
fx\src\data\System\Data\SimpleType.cs (26)
96
if ((ancestor != null) && (ancestor.QualifiedName.Namespace !=
Keywords
.XSDNS)) { // I'm assuming that built-in types don't have a name!
104
if (content.BaseTypeName.Namespace ==
Keywords
.XSDNS)
159
string tempStr = XSDSchema.GetMsdataAttribute(node,
Keywords
.TARGETNAMESPACE);
236
return
Keywords
.XSD_PREFIXCOLON + name;
248
XmlElement typeNode = dc.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_SIMPLETYPE,
Keywords
.XSDNS);
252
typeNode.SetAttribute(
Keywords
.NAME, name);
254
typeNode.SetAttribute(
Keywords
.TARGETNAMESPACE,
Keywords
.MSDNS, this.Namespace);
257
XmlElement type = dc.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_RESTRICTION,
Keywords
.XSDNS);
264
type.SetAttribute(
Keywords
.BASE, (prefix +":"+ baseSimpleType.Name));
267
type.SetAttribute(
Keywords
.BASE, baseSimpleType.Name);
271
type.SetAttribute(
Keywords
.BASE, baseSimpleType.Name);
275
type.SetAttribute(
Keywords
.BASE, QualifiedName(baseType)); // has to be xs:SomePrimitiveType
279
type.SetAttribute(
Keywords
.BASE, (baseSimpleType != null) ? baseSimpleType.Name : QualifiedName(baseType));
284
constraint = dc.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_LENGTH,
Keywords
.XSDNS);
285
constraint.SetAttribute(
Keywords
.VALUE, length.ToString(CultureInfo.InvariantCulture));
289
constraint = dc.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_MAXLENGTH,
Keywords
.XSDNS);
290
constraint.SetAttribute(
Keywords
.VALUE, maxLength.ToString(CultureInfo.InvariantCulture));
fx\src\data\System\Data\XDRSchema.cs (91)
40
_schemaName = schemaRoot.GetAttribute(
Keywords
.NAME);
44
Debug.Assert(FEqualIdentity(schemaRoot,
Keywords
.XDR_SCHEMA,
Keywords
.XDRNS), "Illegal node");
60
if (FEqualIdentity(child,
Keywords
.XDR_ELEMENTTYPE,
Keywords
.XDRNS)) {
76
Debug.Assert(FEqualIdentity(node,
Keywords
.XDR_ELEMENT,
Keywords
.XDRNS) ||
77
FEqualIdentity(node,
Keywords
.XDR_SCHEMA,
Keywords
.XDRNS) ||
78
FEqualIdentity(node,
Keywords
.XDR_ATTRIBUTE,
Keywords
.XDRNS) ||
79
FEqualIdentity(node,
Keywords
.XDR_ELEMENTTYPE,
Keywords
.XDRNS),
82
if (FEqualIdentity(node,
Keywords
.XDR_ELEMENTTYPE,
Keywords
.XDRNS))
85
strType = node.GetAttribute(
Keywords
.TYPE);
87
if (FEqualIdentity(node,
Keywords
.XDR_ELEMENT,
Keywords
.XDRNS) ||
88
FEqualIdentity(node,
Keywords
.XDR_ATTRIBUTE,
Keywords
.XDRNS)) {
97
if ((FEqualIdentity(vn,
Keywords
.XDR_ELEMENTTYPE,
Keywords
.XDRNS) &&
98
FEqualIdentity(node,
Keywords
.XDR_ELEMENT,
Keywords
.XDRNS)) ||
99
(FEqualIdentity(vn,
Keywords
.XDR_ATTRIBUTETYPE,
Keywords
.XDRNS) &&
100
FEqualIdentity(node,
Keywords
.XDR_ATTRIBUTE,
Keywords
.XDRNS))) {
101
if (vn is XmlElement && ((XmlElement)vn).GetAttribute(
Keywords
.NAME) == strType)
128
Debug.Assert(FEqualIdentity(node,
Keywords
.XDR_ELEMENTTYPE,
Keywords
.XDRNS),
131
string value = node.GetAttribute(
Keywords
.CONTENT);
133
string type = node.GetAttribute(
Keywords
.DT_TYPE,
Keywords
.DTNS);
140
if (value ==
Keywords
.EMPTY || value ==
Keywords
.ELTONLY || value ==
Keywords
.ELEMENTONLY || value ==
Keywords
.MIXED)
142
if (value ==
Keywords
.TEXTONLY)
156
if (FEqualIdentity(n,
Keywords
.XDR_ELEMENT,
Keywords
.XDRNS) ||
157
FEqualIdentity(n,
Keywords
.XDR_ATTRIBUTE,
Keywords
.XDRNS))
161
if (FEqualIdentity(node,
Keywords
.XDR_ELEMENT,
Keywords
.XDRNS)) {
173
Debug.Assert(FEqualIdentity(node,
Keywords
.XDR_ELEMENTTYPE,
Keywords
.XDRNS) ||
174
FEqualIdentity(node,
Keywords
.XDR_ELEMENT,
Keywords
.XDRNS), "Invalid node type");
180
string occurs = node.GetAttribute(
Keywords
.MINOCCURS);
187
occurs = node.GetAttribute(
Keywords
.MAXOCCURS);
290
throw ExceptionBuilder.MissingAttribute("type",
Keywords
.DT_VALUES);
297
if (FEqualIdentity(node,
Keywords
.XDR_ELEMENTTYPE,
Keywords
.XDRNS) ||
298
FEqualIdentity(node,
Keywords
.XDR_ATTRIBUTETYPE,
Keywords
.XDRNS)) {
299
instanceName = node.GetAttribute(
Keywords
.NAME);
301
throw ExceptionBuilder.MissingAttribute("Element",
Keywords
.NAME);
305
instanceName = node.GetAttribute(
Keywords
.TYPE);
307
throw ExceptionBuilder.MissingAttribute("Element",
Keywords
.TYPE);
314
Debug.Assert(FEqualIdentity(node,
Keywords
.XDR_ELEMENT,
Keywords
.XDRNS) ||
315
FEqualIdentity(node,
Keywords
.XDR_ATTRIBUTE,
Keywords
.XDRNS), "Illegal node type");
327
string strUse = node.GetAttribute(
Keywords
.USE);
333
string strRef = node.GetAttribute(
Keywords
.REF);
342
if (FEqualIdentity(node,
Keywords
.XDR_ATTRIBUTE,
Keywords
.XDRNS))
346
if (FEqualIdentity(node,
Keywords
.XDR_ELEMENT,
Keywords
.XDRNS)) {
364
strType = node.GetAttribute(
Keywords
.TYPE);
368
strType = typeNode.GetAttribute(
Keywords
.DT_TYPE,
Keywords
.DTNS);
369
strValues = typeNode.GetAttribute(
Keywords
.DT_VALUES,
Keywords
.DTNS);
404
bool isAttribute = FEqualIdentity(node,
Keywords
.XDR_ATTRIBUTE,
Keywords
.XDRNS);
411
strDefault = node.GetAttribute(
Keywords
.DEFAULT);
428
if (node.Attributes[i].NamespaceURI ==
Keywords
.MSDNS) {
437
String targetNamespace = node.GetAttribute(
Keywords
.TARGETNAMESPACE);
460
string occurs = elNode.GetAttribute(
Keywords
.MINOCCURS);
473
occurs = elNode.GetAttribute(
Keywords
.MAXOCCURS);
476
int bZeroOrMore = string.Compare(occurs,
Keywords
.STAR , StringComparison.Ordinal);
489
throw ExceptionBuilder.AttributeValues("maxOccurs", "1",
Keywords
.STAR);
492
throw ExceptionBuilder.AttributeValues("maxOccurs", "1",
Keywords
.STAR);
509
if (FEqualIdentity(n,
Keywords
.XDR_ELEMENT,
Keywords
.XDRNS)) {
519
if (FEqualIdentity(n,
Keywords
.XDR_ATTRIBUTE,
Keywords
.XDRNS) ||
520
FEqualIdentity(n,
Keywords
.XDR_ELEMENT,
Keywords
.XDRNS)) {
fx\src\data\System\Data\XmlDataLoader.cs (36)
217
if (ns.Equals(
Keywords
.XSD_XMLNS_NS))
358
if (XMLSchema.GetBooleanAttribute(rowElement,
Keywords
.XSI_NIL,
Keywords
.XSINS, false) && Common.ADP.IsEmpty(text) )
386
if (XMLSchema.GetBooleanAttribute(e,
Keywords
.XSI_NIL,
Keywords
.XSINS, false) && Common.ADP.IsEmpty(text) )
455
if (parentElement.LocalName ==
Keywords
.XSD_SCHEMA && parentElement.NamespaceURI ==
Keywords
.XSDNS ||
456
parentElement.LocalName ==
Keywords
.SQL_SYNC && parentElement.NamespaceURI ==
Keywords
.UPDGNS ||
457
parentElement.LocalName ==
Keywords
.XDR_SCHEMA && parentElement.NamespaceURI ==
Keywords
.XDRNS)
548
XSD_XMLNS_NS = nameTable.Add(
Keywords
.XSD_XMLNS_NS);
549
XDR_SCHEMA = nameTable.Add(
Keywords
.XDR_SCHEMA);
550
XDRNS = nameTable.Add(
Keywords
.XDRNS);
551
SQL_SYNC = nameTable.Add(
Keywords
.SQL_SYNC);
552
UPDGNS = nameTable.Add(
Keywords
.UPDGNS);
553
XSD_SCHEMA = nameTable.Add(
Keywords
.XSD_SCHEMA);
554
XSDNS = nameTable.Add(
Keywords
.XSDNS);
556
DFFNS = nameTable.Add(
Keywords
.DFFNS);
557
MSDNS = nameTable.Add(
Keywords
.MSDNS);
558
DIFFID = nameTable.Add(
Keywords
.DIFFID);
559
HASCHANGES = nameTable.Add(
Keywords
.HASCHANGES);
560
ROWORDER = nameTable.Add(
Keywords
.ROWORDER);
877
if ( dataReader.NamespaceURI ==
Keywords
.DFFNS ) {
879
case
Keywords
.DIFFID: // Is it a diffgeam ID ?
882
case
Keywords
.HASCHANGES: // Has chages attribute ?
885
case
Keywords
.HASERRORS: // Has errors attribute ?
891
else if ( dataReader.NamespaceURI ==
Keywords
.MSDNS ) {
892
if ( dataReader.LocalName ==
Keywords
.ROWORDER ) {
1023
if ((hasChanges ==
Keywords
.MODIFIED) || hasErrors) {
1087
xsiNilString = dataReader.GetAttribute(
Keywords
.XSI_NIL,
Keywords
.XSINS);
1099
xsiTypeString = dataReader.GetAttribute(
Keywords
.TYPE,
Keywords
.XSINS);
1100
typeName = dataReader.GetAttribute(
Keywords
.MSD_INSTANCETYPE,
Keywords
.MSDNS);
fx\src\data\System\Data\XMLDiffLoader.cs (41)
32
while (reader.LocalName ==
Keywords
.SQL_BEFORE && reader.NamespaceURI==
Keywords
.DFFNS) {
37
while (reader.LocalName ==
Keywords
.MSD_ERRORS && reader.NamespaceURI==
Keywords
.DFFNS) {
39
Debug.Assert(reader.LocalName ==
Keywords
.MSD_ERRORS && reader.NamespaceURI==
Keywords
.DFFNS, "something fishy");
61
while (reader.LocalName ==
Keywords
.SQL_BEFORE && reader.NamespaceURI==
Keywords
.DFFNS) {
66
while (reader.LocalName ==
Keywords
.MSD_ERRORS && reader.NamespaceURI==
Keywords
.DFFNS) {
68
Debug.Assert(reader.LocalName ==
Keywords
.MSD_ERRORS && reader.NamespaceURI==
Keywords
.DFFNS, "something fishy");
95
diffId = ssync.GetAttribute(
Keywords
.DIFFID,
Keywords
.DFFNS);
96
bool hasErrors = (bool) (ssync.GetAttribute(
Keywords
.HASERRORS,
Keywords
.DFFNS) ==
Keywords
.TRUE);
143
diffId = ssync.GetAttribute(
Keywords
.DIFFID,
Keywords
.DFFNS);
144
bool hasErrors = (bool) (ssync.GetAttribute(
Keywords
.HASERRORS,
Keywords
.DFFNS) ==
Keywords
.TRUE);
184
string diffId = ssync.GetAttribute(
Keywords
.DIFFID,
Keywords
.DFFNS);
186
string rowError = ssync.GetAttribute(
Keywords
.MSD_ERROR,
Keywords
.DFFNS);
196
string colError = ssync.GetAttribute(
Keywords
.MSD_ERROR,
Keywords
.DFFNS);
221
string diffId = ssync.GetAttribute(
Keywords
.DIFFID,
Keywords
.DFFNS);
233
string rowError = ssync.GetAttribute(
Keywords
.MSD_ERROR,
Keywords
.DFFNS);
244
string colError = ssync.GetAttribute(
Keywords
.MSD_ERROR,
Keywords
.DFFNS);
293
value = row.GetAttribute(
Keywords
.ROWORDER,
Keywords
.MSDNS);
309
value = row.GetAttribute("hidden"+col.EncodedColumnName,
Keywords
.MSDNS);
357
bool isPolymorphism = (column.DataType == typeof(Object)|| (row.GetAttribute(
Keywords
.MSD_INSTANCETYPE,
Keywords
.MSDNS) != null) ||
358
(row.GetAttribute(
Keywords
.TYPE,
Keywords
.XSINS) != null)) ;
fx\src\data\System\Data\xmlsaver.cs (449)
92
s =
Keywords
.MSD_REL_PREFIX + s;
95
s =
Keywords
.MSD_FK_PREFIX + s;
97
node.SetAttribute(XmlConvert.EncodeLocalName(s),
Keywords
.MSPROPNS, v);
179
root.SetAttribute(
Keywords
.MSD_DATATYPE,
Keywords
.MSDNS, col.DataType.FullName);
181
else if ((dt.Length == 0) || bImplementsInullable || ((dt ==
Keywords
.XSD_ANYTYPE) && (col.XmlDataType !=
Keywords
.XSD_ANYTYPE))|| (col.DataType == typeof(DateTimeOffset))) {
197
root.SetAttribute(pd.Name,
Keywords
.MSDNS, textValue);
239
return
Keywords
.XSD_ANYTYPE; //"integer";
247
return
Keywords
.XSD_ANYTYPE;
339
rootSchema.SetAttribute(
Keywords
.TARGETNAMESPACE, targetNamespace );
340
rootSchema.SetAttribute(
Keywords
.XMLNS_MSTNS, targetNamespace );
344
rootSchema.SetAttribute(
Keywords
.XMLNS, targetNamespace);
345
rootSchema.SetAttribute(
Keywords
.XMLNS_XSD,
Keywords
.XSDNS);
346
rootSchema.SetAttribute(
Keywords
.XMLNS_MSDATA,
Keywords
.MSDNS);
348
rootSchema.SetAttribute(
Keywords
.XMLNS_MSPROP,
Keywords
.MSPROPNS);
352
rootSchema.SetAttribute(
Keywords
.XSD_ATTRIBUTEFORMDEFAULT,
Keywords
.QUALIFIED);
353
rootSchema.SetAttribute(
Keywords
.XSD_ELEMENTFORMDEFAULT,
Keywords
.QUALIFIED);
472
dsElement = xd.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_ELEMENT,
Keywords
.XSDNS);
502
XmlElement rootSchema = xd.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_SCHEMA,
Keywords
.XSDNS);
508
rootSchema.SetAttribute(
Keywords
.XSDID, XmlConvert.EncodeLocalName(_ds.DataSetName));
511
rootSchema.SetAttribute(
Keywords
.XSDID, XmlConvert.EncodeLocalName("NewDataSet"));
537
rootSchema.SetAttribute(
Keywords
.XMLNS_MSTNS, _ds.Namespace );
588
constraintSeparator = xd.CreateElement(
Keywords
.XSD_PREFIX, "SHOULDNOTBEHERE",
Keywords
.XSDNS);
617
el.SetAttribute(
Keywords
.MINOCCURS, top[i].MinOccurs.ToString(CultureInfo.InvariantCulture));
620
el.SetAttribute(
Keywords
.MAXOCCURS,
Keywords
.ZERO_OR_MORE);
623
el.SetAttribute(
Keywords
.MAXOCCURS, top[i].MaxOccurs.ToString(CultureInfo.InvariantCulture));
629
XmlElement node = xd.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_ELEMENT,
Keywords
.XSDNS);
631
node.SetAttribute(
Keywords
.REF, top[i].EncodedTableName);
633
node.SetAttribute(
Keywords
.REF, ((string)prefixes[top[i].Namespace])+':'+top[i].EncodedTableName);
641
AppendChildWithoutRef(rootSchema, top[i].Namespace, el,
Keywords
.XSD_ELEMENT);
642
XmlElement node = xd.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_ELEMENT,
Keywords
.XSDNS);
643
node.SetAttribute(
Keywords
.REF, ((string)prefixes[top[i].Namespace])+':'+top[i].EncodedTableName);
676
nodeAnn = xd.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_ANNOTATION,
Keywords
.XSDNS);
679
nodeApp = xd.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_APPINFO,
Keywords
.XSDNS);
698
XmlElement _import = xd.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_IMPORT,
Keywords
.XSDNS);
699
_import.SetAttribute(
Keywords
.XSD_NAMESPACE, ns);
701
_import.SetAttribute(
Keywords
.XSD_SCHEMALOCATION, fileName + "_" + prefixes[ns] + ".xsd");
706
rootSchema.SetAttribute(
Keywords
.MSD_FRAGMENTCOUNT,
Keywords
.MSDNS, namespaces.Count.ToString(CultureInfo.InvariantCulture));
755
XmlElement _import2 = _dc.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_IMPORT,
Keywords
.XSDNS);
756
_import2.SetAttribute(
Keywords
.XSD_NAMESPACE, imp_ns);
761
_import2.SetAttribute(
Keywords
.XSD_SCHEMALOCATION, fileName + fileExt); // for the dataset namespace don't append anything
763
_import2.SetAttribute(
Keywords
.XSD_SCHEMALOCATION, fileName + "_" + prefix +".xsd");
802
dsElement = xd.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_ELEMENT,
Keywords
.XSDNS);
814
XmlElement rootSchema = xd.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_SCHEMA,
Keywords
.XSDNS);
820
constraintSeparator = xd.CreateElement(
Keywords
.XSD_PREFIX, "SHOULDNOTBEHERE",
Keywords
.XSDNS);
832
rootSchema.SetAttribute(
Keywords
.XMLNS_MSTNS, _ds.Namespace );
843
rootSchema.SetAttribute(
Keywords
.XMLNS_MSTNS, dt.Namespace );
868
dsElement.SetAttribute(
Keywords
.NAME, XmlConvert.EncodeLocalName(dataSet.DataSetName));
869
dsElement.SetAttribute(
Keywords
.MSD_ISDATASET,
Keywords
.MSDNS,
Keywords
.TRUE);
871
dsElement.SetAttribute(
Keywords
.MSD_MAINDATATABLE,
Keywords
.MSDNS, XmlConvert.EncodeLocalName(((dt.Namespace.Length == 0)?dt.TableName : (dt.Namespace + ":" + dt.TableName))));
875
dsElement.SetAttribute(
Keywords
.MSD_CASESENSITIVE,
Keywords
.MSDNS,
Keywords
.TRUE);
878
dsElement.SetAttribute(
Keywords
.MSD_LOCALE,
Keywords
.MSDNS, dataSet.Locale.ToString());
881
dsElement.SetAttribute(
Keywords
.MSD_USECURRENTLOCALE,
Keywords
.MSDNS,
Keywords
.TRUE);
886
dsElement.SetAttribute(
Keywords
.NAME, XmlConvert.EncodeLocalName("NewDataSet"));
887
dsElement.SetAttribute(
Keywords
.MSD_ISDATASET,
Keywords
.MSDNS,
Keywords
.TRUE);
888
dsElement.SetAttribute(
Keywords
.MSD_MAINDATATABLE,
Keywords
.MSDNS, XmlConvert.EncodeLocalName(((dt.Namespace.Length == 0)?dt.TableName : (dt.Namespace + ":" + dt.TableName))));
891
dsElement.SetAttribute(
Keywords
.MSD_CASESENSITIVE,
Keywords
.MSDNS,
Keywords
.TRUE);
894
dsElement.SetAttribute(
Keywords
.MSD_LOCALE,
Keywords
.MSDNS, dt.Locale.ToString());
897
dsElement.SetAttribute(
Keywords
.MSD_USECURRENTLOCALE,
Keywords
.MSDNS,
Keywords
.TRUE);
902
XmlElement type = xd.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_COMPLEXTYPE,
Keywords
.XSDNS);
904
XmlElement compositor = xd.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_CHOICE,
Keywords
.XSDNS);
905
compositor.SetAttribute(
Keywords
.MINOCCURS,
Keywords
.ZERO_DIGIT);
906
compositor.SetAttribute(
Keywords
.MAXOCCURS,
Keywords
.ZERO_OR_MORE);
965
xw.WriteAttributeString(
Keywords
.MSD,
Keywords
.MSD_SCHEMASERIALIZATIONMODE,
Keywords
.MSDNS,
Keywords
.MSD_EXCLUDESCHEMA);
972
XmlElement root = dc.CreateElement(
Keywords
.MSD,
Keywords
.MSD_RELATION,
Keywords
.MSDNS);
975
root.SetAttribute(
Keywords
.NAME, XmlConvert.EncodeLocalName( rel.RelationName ));
977
root.SetAttribute(
Keywords
.MSD_PARENT,
Keywords
.MSDNS, rel.ParentKey.Table.EncodedTableName);
978
root.SetAttribute(
Keywords
.MSD_CHILD,
Keywords
.MSDNS, rel.ChildKey.Table.EncodedTableName);
981
root.SetAttribute(
Keywords
.MSD_PARENTTABLENS,
Keywords
.MSDNS, rel.ParentKey.Table.Namespace);
984
root.SetAttribute(
Keywords
.MSD_CHILDTABLENS,
Keywords
.MSDNS, rel.ChildKey.Table.Namespace);
994
builder.Append(
Keywords
.MSD_KEYFIELDSEP).Append(key[i].EncodedColumnName);
998
root.SetAttribute(
Keywords
.MSD_PARENTKEY,
Keywords
.MSDNS, text);
1011
builder.Append(
Keywords
.MSD_KEYFIELDSEP).Append(key[i].EncodedColumnName);
1015
root.SetAttribute(
Keywords
.MSD_CHILDKEY,
Keywords
.MSDNS, text);
1024
if(e.GetAttribute(
Keywords
.NAME) == name) {
1035
schemaEl = _dc.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_SCHEMA,
Keywords
.XSDNS);
1038
string prefix =
Keywords
.APP+Convert.ToString(++prefixCount, CultureInfo.InvariantCulture);
1049
string keyword =
Keywords
.TYPE;
1051
keyword =
Keywords
.BASE;
1125
typeName =
Keywords
.XSD_ANYTYPE;
1138
root.SetAttribute(
Keywords
.MSD_DATATYPE,
Keywords
.MSDNS, col.DataType.FullName);
1140
else if ((dt.Length == 0) || col.ImplementsINullable || ((dt ==
Keywords
.XSD_ANYTYPE) && (col.XmlDataType !=
Keywords
.XSD_ANYTYPE))) {
1151
root.SetAttribute("ReadOnly",
Keywords
.MSDNS,
Keywords
.TRUE);
1154
root.SetAttribute("Expression",
Keywords
.MSDNS, col.Expression);
1157
root.SetAttribute("AutoIncrement",
Keywords
.MSDNS,
Keywords
.TRUE);
1161
root.SetAttribute("AutoIncrementSeed",
Keywords
.MSDNS, col.AutoIncrementSeed.ToString(CultureInfo.InvariantCulture));
1164
root.SetAttribute("AutoIncrementStep",
Keywords
.MSDNS, col.AutoIncrementStep.ToString(CultureInfo.InvariantCulture));
1167
root.SetAttribute("Caption",
Keywords
.MSDNS, col.Caption);
1170
root.SetAttribute("Prefix",
Keywords
.MSDNS, col.Prefix);
1173
root.SetAttribute("DateTimeMode",
Keywords
.MSDNS, col.DateTimeMode.ToString());
1206
String refString = (col.ColumnMapping != MappingType.Element) ?
Keywords
.XSD_ATTRIBUTE :
Keywords
.XSD_ELEMENT;
1207
root = dc.CreateElement(
Keywords
.XSD_PREFIX, refString,
Keywords
.XSDNS);
1210
root.SetAttribute(
Keywords
.NAME, col.EncodedColumnName);
1217
root.SetAttribute(
Keywords
.FORM,
Keywords
.UNQUALIFIED);
1231
root.SetAttribute(
Keywords
.MSD_ALLOWDBNULL,
Keywords
.MSDNS,
Keywords
.FALSE);
1235
root.SetAttribute(
Keywords
.MSD_DEFAULTVALUE,
Keywords
.MSDNS, (bool)(col.DefaultValue)?
Keywords
.TRUE :
Keywords
.FALSE);
1239
root.SetAttribute(
Keywords
.MSD_DEFAULTVALUE,
Keywords
.MSDNS, col.ConvertObjectToXml(col.DefaultValue));
1248
root.SetAttribute(
Keywords
.MSD_DEFAULTVALUE,
Keywords
.MSDNS, (bool)(col.DefaultValue)?
Keywords
.TRUE :
Keywords
.FALSE);
1251
root.SetAttribute(
Keywords
.MSD_DEFAULTVALUE,
Keywords
.MSDNS, col.ConvertObjectToXml(col.DefaultValue));
1256
root.SetAttribute(
Keywords
.DEFAULT, (bool)(col.DefaultValue)?
Keywords
.TRUE :
Keywords
.FALSE);
1260
root.SetAttribute(
Keywords
.DEFAULT, col.ConvertObjectToXml(col.DefaultValue));
1269
root.SetAttribute(
Keywords
.TARGETNAMESPACE,
Keywords
.MSDNS, col.Namespace);
1278
root = _dc.CreateElement(
Keywords
.XSD_PREFIX, refString,
Keywords
.XSDNS);
1279
root.SetAttribute(
Keywords
.REF, prefixes[ col.Namespace]+":"+ col.EncodedColumnName);
1293
root.SetAttribute(
Keywords
.USE,
Keywords
.REQUIRED);
1297
root.SetAttribute(
Keywords
.USE,
Keywords
.PROHIBITED);
1301
root.SetAttribute(
Keywords
.MINOCCURS, minOccurs.ToString(CultureInfo.InvariantCulture));
1304
root.SetAttribute(
Keywords
.MSD_ORDINAL,
Keywords
.MSDNS, col.Ordinal.ToString(CultureInfo.InvariantCulture));
1330
if (FindTypeNode(schNode, el.GetAttribute(
Keywords
.NAME)) == null)
1344
if (XSDSchema.FEqualIdentity(child,
Keywords
.XSD_ELEMENT,
Keywords
.XSDNS) ||
1345
XSDSchema.FEqualIdentity(child,
Keywords
.XSD_ATTRIBUTE,
Keywords
.XSDNS) ||
1346
XSDSchema.FEqualIdentity(child,
Keywords
.XSD_COMPLEXTYPE,
Keywords
.XSDNS) ||
1347
XSDSchema.FEqualIdentity(child,
Keywords
.XSD_SIMPLETYPE,
Keywords
.XSDNS)) {
1348
if (child.GetAttribute(
Keywords
.NAME) == strType)
1474
XmlElement root = dc.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_ELEMENT,
Keywords
.XSDNS);
1479
root.SetAttribute(
Keywords
.TARGETNAMESPACE,
Keywords
.MSDNS, table.Namespace);
1482
root.SetAttribute(
Keywords
.NAME, table.EncodedTableName );
1510
root.SetAttribute(
Keywords
.FORM,
Keywords
.UNQUALIFIED);
1518
root.SetAttribute(
Keywords
.MSD_CASESENSITIVE,
Keywords
.MSDNS, table.CaseSensitive.ToString(CultureInfo.InvariantCulture));
1521
root.SetAttribute(
Keywords
.MSD_LOCALE,
Keywords
.MSDNS, table.Locale.ToString());
1554
_typeName =
Keywords
.XSD_ANYTYPE;
1557
root.SetAttribute(
Keywords
.TYPE, XSDSchema.QualifiedName(_typeName));
1562
XmlElement type = dc.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_COMPLEXTYPE,
Keywords
.XSDNS);
1576
type.SetAttribute(
Keywords
.NAME, table.TypeName.Name);
1584
root.SetAttribute(
Keywords
.TYPE, NewDiffgramGen.QualifiedName((string)prefixes[table.TypeName.Namespace], table.TypeName.Name) );
1594
XmlElement sc = dc.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_SIMPLECONTENT ,
Keywords
.XSDNS);
1603
root.SetAttribute(
Keywords
.XSD_NILLABLE, String.Empty,
Keywords
.TRUE);
1607
sc.SetAttribute(
Keywords
.MSD_DEFAULTVALUE,
Keywords
.MSDNS, colTxt.ConvertObjectToXml(colTxt.DefaultValue));
1610
sc.SetAttribute(
Keywords
.MSD_COLUMNNAME,
Keywords
.MSDNS, colTxt.ColumnName);
1611
sc.SetAttribute(
Keywords
.MSD_ORDINAL,
Keywords
.MSDNS, colTxt.Ordinal.ToString(CultureInfo.InvariantCulture));
1614
XmlElement ext = dc.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_EXTENSION,
Keywords
.XSDNS);
1620
compositor = dc.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_SEQUENCE,
Keywords
.XSDNS);
1656
NestedTable = dc.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_ELEMENT,
Keywords
.XSDNS);
1658
NestedTable.SetAttribute(
Keywords
.REF, table.EncodedTableName );
1661
NestedTable = dc.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_ELEMENT,
Keywords
.XSDNS);
1662
NestedTable.SetAttribute(
Keywords
.REF, childTable.EncodedTableName);
1668
NestedTable.SetAttribute(
Keywords
.MINOCCURS , "0");
1669
NestedTable.SetAttribute(
Keywords
.MAXOCCURS ,
Keywords
.ZERO_OR_MORE);
1678
NestedTable = dc.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_ELEMENT,
Keywords
.XSDNS);
1679
NestedTable.SetAttribute(
Keywords
.REF, ((string)prefixes[childTable.Namespace])+':'+childTable.EncodedTableName);
1686
XmlElement nodeAnn = _dc.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_ANNOTATION,
Keywords
.XSDNS);
1689
XmlElement nodeApp = _dc.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_APPINFO,
Keywords
.XSDNS);
1707
String xpathprefix = (_ds != null)? (_ds.Namespace.Length != 0 ?
Keywords
.MSTNS_PREFIX : String.Empty) : String.Empty;
1728
constraint = dc.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_UNIQUE,
Keywords
.XSDNS);
1731
constraint.SetAttribute(
Keywords
.MSD_TABLENS,
Keywords
.MSDNS, table.Namespace);
1733
constraint.SetAttribute(
Keywords
.NAME, XmlConvert.EncodeLocalName( unique.SchemaName ));
1736
constraint.SetAttribute(
Keywords
.MSD_CONSTRAINTNAME,
Keywords
.MSDNS, unique.ConstraintName);
1741
selector = dc.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_SELECTOR,
Keywords
.XSDNS);
1742
selector.SetAttribute(
Keywords
.XSD_XPATH, ".//"+xpathprefix+table.EncodedTableName);
1748
constraint.SetAttribute(
Keywords
.MSD_PRIMARYKEY,
Keywords
.MSDNS,
Keywords
.TRUE);
1769
field = dc.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_FIELD,
Keywords
.XSDNS);
1770
field.SetAttribute(
Keywords
.XSD_XPATH, encodedName.ToString());
1799
constraint = dc.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_KEY,
Keywords
.XSDNS);
1800
constraint.SetAttribute(
Keywords
.NAME, XmlConvert.EncodeLocalName( foreign.SchemaName ));
1803
constraint.SetAttribute(
Keywords
.MSD_TABLENS,
Keywords
.MSDNS, table.Namespace);
1805
selector = dc.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_SELECTOR,
Keywords
.XSDNS);
1806
selector.SetAttribute(
Keywords
.XSD_XPATH, ".//"+xpathprefix+ foreign.RelatedTable.EncodedTableName);
1828
field = dc.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_FIELD,
Keywords
.XSDNS);
1829
field.SetAttribute(
Keywords
.XSD_XPATH, encodedName.ToString());
1838
constraint = dc.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_KEYREF,
Keywords
.XSDNS);
1840
constraint.SetAttribute(
Keywords
.NAME,XmlConvert.EncodeLocalName( foreign.SchemaName ));
1843
constraint.SetAttribute (
Keywords
.MSD_TABLENS,
Keywords
.MSDNS, foreign.Table.Namespace);
1846
constraint.SetAttribute(
Keywords
.REFER, XmlConvert.EncodeLocalName( foreign.SchemaName ));
1848
constraint.SetAttribute(
Keywords
.REFER, XmlConvert.EncodeLocalName( _constraint.SchemaName ));
1853
constraint.SetAttribute(
Keywords
.MSD_CONSTRAINTNAME,
Keywords
.MSDNS, foreign.ConstraintName);
1856
constraint.SetAttribute(
Keywords
.MSD_CONSTRAINTONLY ,
Keywords
.MSDNS,
Keywords
.TRUE );
1859
constraint.SetAttribute(
Keywords
.MSD_ISNESTED,
Keywords
.MSDNS,
Keywords
.TRUE);
1863
constraint.SetAttribute(
Keywords
.MSD_RELATIONNAME ,
Keywords
.MSDNS, XmlConvert.EncodeLocalName( rel.RelationName ));
1867
selector = dc.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_SELECTOR,
Keywords
.XSDNS);
1868
selector.SetAttribute(
Keywords
.XSD_XPATH, ".//"+xpathprefix+table.EncodedTableName);
1873
constraint.SetAttribute(
Keywords
.MSD_ACCEPTREJECTRULE,
Keywords
.MSDNS,
1877
constraint.SetAttribute(
Keywords
.MSD_UPDATERULE,
Keywords
.MSDNS, TranslateRule(foreign.UpdateRule) );
1880
constraint.SetAttribute(
Keywords
.MSD_DELETERULE,
Keywords
.MSDNS, TranslateRule(foreign.DeleteRule) );
1902
field = dc.CreateElement(
Keywords
.XSD_PREFIX,
Keywords
.XSD_FIELD,
Keywords
.XSDNS);
1903
field.SetAttribute(
Keywords
.XSD_XPATH, encodedName.ToString());
1938
root.SetAttribute(
Keywords
.MSD_DATATYPE,
Keywords
.MSDNS, result);
2039
_xmlw.WriteStartElement(
Keywords
.DFF,
Keywords
.DIFFGRAM,
Keywords
.DFFNS);
2040
_xmlw.WriteAttributeString(
Keywords
.XMLNS,
Keywords
.MSD, null,
Keywords
.MSDNS);
2110
_xmlw.WriteStartElement(
Keywords
.DFF,
Keywords
.MSD_ERRORS,
Keywords
.DFFNS );
2114
_xmlw.WriteAttributeString(
Keywords
.DFF,
Keywords
.DIFFID,
Keywords
.DFFNS, row.Table.TableName+row.rowID.ToString(CultureInfo.InvariantCulture));
2115
_xmlw.WriteAttributeString(
Keywords
.DFF,
Keywords
.MSD_ERROR,
Keywords
.DFFNS, row.RowError);
2130
_xmlw.WriteStartElement(
Keywords
.DFF,
Keywords
.MSD_ERRORS,
Keywords
.DFFNS );
2135
_xmlw.WriteAttributeString(
Keywords
.DFF,
Keywords
.DIFFID,
Keywords
.DFFNS, row.Table.TableName+row.rowID.ToString(CultureInfo.InvariantCulture));
2142
_xmlw.WriteAttributeString(
Keywords
.DFF,
Keywords
.MSD_ERROR,
Keywords
.DFFNS, error);
2160
_xmlw.WriteStartElement(
Keywords
.DFF,
Keywords
.SQL_BEFORE,
Keywords
.DFFNS);
2184
_xmlw.WriteAttributeString(
Keywords
.DFF,
Keywords
.DIFFID,
Keywords
.DFFNS, rowIDString);
2187
_xmlw.WriteAttributeString(
Keywords
.DFF,
Keywords
.HASERRORS,
Keywords
.DFFNS,
Keywords
.TRUE);
2190
_xmlw.WriteAttributeString(
Keywords
.DFF,
Keywords
.DIFFPID,
Keywords
.DFFNS, parentId);
2192
_xmlw.WriteAttributeString(
Keywords
.MSD,
Keywords
.ROWORDER,
Keywords
.MSDNS, rowsOrder[row].ToString());
2212
_xmlw.WriteAttributeString(
Keywords
.XSI,
Keywords
.XSI_NIL,
Keywords
.XSINS,
Keywords
.TRUE);
2224
_xmlw.WriteAttributeString(
Keywords
.MSD, "hidden"+col.EncodedColumnName,
Keywords
.MSDNS, value);
2244
_xmlw.WriteAttributeString(
Keywords
.XML,
Keywords
.SPACE,
Keywords
.XML_XMLNS,
Keywords
.PRESERVE);
2254
_xmlw.WriteAttributeString(
Keywords
.MSD,
Keywords
.MSD_INSTANCETYPE,
Keywords
.MSDNS, DataStorage.GetQualifiedName(valuesType));
2275
_xmlw.WriteAttributeString(
Keywords
.MSD,
Keywords
.MSD_INSTANCETYPE,
Keywords
.MSDNS, valuesType.FullName);
2278
_xmlw.WriteAttributeString(
Keywords
.MSD,
Keywords
.MSD_INSTANCETYPE,
Keywords
.MSDNS,
Keywords
.TYPEINSTANCE);
2281
string xsdTypeName =
Keywords
.XSD_PREFIXCOLON+ XmlTreeGen.XmlDataTypeName(valuesType);
2282
_xmlw.WriteAttributeString(
Keywords
.XSI,
Keywords
.TYPE,
Keywords
.XSINS, xsdTypeName);
2283
_xmlw.WriteAttributeString (
Keywords
.XMLNS_XSD,
Keywords
.XSDNS);
2433
_xmlw.WriteStartElement(prefix,
Keywords
.DOCUMENTELEMENT, ( _dt.Namespace == null) ? "":_dt.Namespace);
2478
_xmlw.WriteStartElement(prefix,
Keywords
.DOCUMENTELEMENT, _dt.Namespace);
2482
_xmlw.WriteStartElement(prefix,
Keywords
.DOCUMENTELEMENT, _ds.Namespace);
2489
_xmlw.WriteAttributeString(
Keywords
.XMLNS,
Keywords
.XSI,
Keywords
.XSD_XMLNS_NS,
Keywords
.XSINS);
2545
_xmlw.WriteAttributeString(
Keywords
.DFF,
Keywords
.DIFFID,
Keywords
.DFFNS, row.Table.TableName+row.rowID.ToString(CultureInfo.InvariantCulture));
2547
_xmlw.WriteAttributeString(
Keywords
.MSD,
Keywords
.ROWORDER,
Keywords
.MSDNS, rowsOrder[row].ToString());
2550
_xmlw.WriteAttributeString(
Keywords
.DFF,
Keywords
.HASCHANGES,
Keywords
.DFFNS,
Keywords
.INSERTED);
2553
_xmlw.WriteAttributeString(
Keywords
.DFF,
Keywords
.HASCHANGES,
Keywords
.DFFNS,
Keywords
.MODIFIED);
2557
_xmlw.WriteAttributeString(
Keywords
.DFF,
Keywords
.HASERRORS,
Keywords
.DFFNS,
Keywords
.TRUE);
2587
_xmlw.WriteAttributeString(
Keywords
.MSD, "hidden"+col.EncodedColumnName,
Keywords
.MSDNS, col.ConvertObjectToXml(value));
2601
_xmlw.WriteAttributeString(
Keywords
.XSI,
Keywords
.XSI_NIL,
Keywords
.XSINS,
Keywords
.TRUE);
2617
_xmlw.WriteAttributeString(
Keywords
.XML,
Keywords
.SPACE,
Keywords
.XML_XMLNS,
Keywords
.PRESERVE);
2627
_xmlw.WriteAttributeString(
Keywords
.MSD,
Keywords
.MSD_INSTANCETYPE,
Keywords
.MSDNS, DataStorage.GetQualifiedName(valuesType));
2646
_xmlw.WriteAttributeString(
Keywords
.MSD,
Keywords
.MSD_INSTANCETYPE,
Keywords
.MSDNS, valuesType.FullName);
2649
_xmlw.WriteAttributeString(
Keywords
.MSD,
Keywords
.MSD_INSTANCETYPE,
Keywords
.MSDNS,
Keywords
.TYPEINSTANCE);
2652
string xsdTypeName =
Keywords
.XSD_PREFIXCOLON+ XmlTreeGen.XmlDataTypeName(valuesType);
2653
_xmlw.WriteAttributeString(
Keywords
.XSI,
Keywords
.TYPE,
Keywords
.XSINS, xsdTypeName);
2654
_xmlw.WriteAttributeString (
Keywords
.XMLNS_XSD,
Keywords
.XSDNS);
fx\src\data\System\Data\XMLSchema.cs (101)
42
if (attrs[i].NamespaceURI ==
Keywords
.MSDNS) {
86
if ((value ==
Keywords
.TRUE) || (value ==
Keywords
.ONE_DIGIT)){
89
if ((value ==
Keywords
.FALSE) || (value ==
Keywords
.ZERO_DIGIT)){
188
MSDATATargetNamespace = XSDSchema.GetMsdataAttribute((XmlSchemaType)item,
Keywords
.TARGETNAMESPACE);
230
return
Keywords
.XSD_PREFIXCOLON + name;
241
if (attrs[i].NamespaceURI ==
Keywords
.MSDNS) {
287
if (attrs[i].NamespaceURI ==
Keywords
.MSPROPNS) {
296
if (propName.StartsWith(
Keywords
.MSD_FK_PREFIX, StringComparison.Ordinal))
301
if ((instance is DataRelation) && (propName.StartsWith(
Keywords
.MSD_REL_PREFIX, StringComparison.Ordinal))) {
304
else if ((instance is DataRelation) && (propName.StartsWith(
Keywords
.MSD_FK_PREFIX, StringComparison.Ordinal))) {
320
if (attrs[i].NamespaceURI ==
Keywords
.MSDNS) {
337
if (nodeAttributes[i].LocalName == ln && nodeAttributes[i].NamespaceURI ==
Keywords
.MSDNS)
345
if (attrs[i].NamespaceURI ==
Keywords
.MSPROPNS) {
383
strName = XmlConvert.DecodeName(node.GetAttribute(
Keywords
.NAME));
389
parentName = node.GetAttribute(
Keywords
.MSD_PARENT,
Keywords
.MSDNS);
394
childName = node.GetAttribute(
Keywords
.MSD_CHILD,
Keywords
.MSDNS);
399
value = node.GetAttribute(
Keywords
.MSD_PARENTKEY,
Keywords
.MSDNS);
403
parentNames = value.TrimEnd(null).Split(new char[] {
Keywords
.MSD_KEYFIELDSEP,
Keywords
.MSD_KEYFIELDOLDSEP});
404
value = node.GetAttribute(
Keywords
.MSD_CHILDKEY,
Keywords
.MSDNS);
408
childNames = value.TrimEnd(null).Split(new char[] {
Keywords
.MSD_KEYFIELDSEP,
Keywords
.MSD_KEYFIELDOLDSEP});
417
string parentNs = node.GetAttribute(
Keywords
.MSD_PARENTTABLENS,
Keywords
.MSDNS);
418
string childNs = node.GetAttribute(
Keywords
.MSD_CHILDTABLENS,
Keywords
.MSDNS);
502
if (GetBooleanAttribute(XmlElement,
Keywords
.MSD_ISDATASET, /*default:*/ false)) {
511
if (GetBooleanAttribute(XmlElement,
Keywords
.MSD_ISDATASET, /*default:*/ false))
517
if (!GetBooleanAttribute(node,
Keywords
.MSD_ISDATASET, /*default:*/ true))
620
string mainName = GetStringAttribute (dsElement,
Keywords
.MSD_MAINDATATABLE, "");
742
if (FEqualIdentity(relations[i],
Keywords
.MSD_RELATION,
Keywords
.MSDNS))
905
if (ccExtension.BaseTypeName.Namespace !=
Keywords
.XSDNS){
1031
if ((value ==
Keywords
.TRUE) || (value ==
Keywords
.ONE_DIGIT)){
1034
if ((value ==
Keywords
.FALSE) || (value ==
Keywords
.ZERO_DIGIT)){
1091
string tableNs = GetMsdataAttribute(keyref,
Keywords
.MSD_TABLENS);
1112
if (GetBooleanAttribute(keyref,
Keywords
.MSD_CONSTRAINTONLY, /*default:*/ false)) {
1125
string relName = XmlConvert.DecodeName(GetStringAttribute( keyref,
Keywords
.MSD_RELATIONNAME, keyref.Name));
1153
if (GetBooleanAttribute(keyref,
Keywords
.MSD_ISNESTED, /*default:*/ false)) {
1159
string acceptRejectRule = GetMsdataAttribute(keyref,
Keywords
.MSD_ACCEPTREJECTRULE);
1160
string updateRule = GetMsdataAttribute(keyref,
Keywords
.MSD_UPDATERULE);
1161
string deleteRule = GetMsdataAttribute(keyref,
Keywords
.MSD_DELETERULE);
1183
throw ExceptionBuilder.MissingAttribute(
Keywords
.NAME);
1190
string tableNs = GetMsdataAttribute(keyNode,
Keywords
.MSD_TABLENS);
1199
bool fPrimaryKey = GetBooleanAttribute(keyNode,
Keywords
.MSD_PRIMARYKEY, /*default:*/ false);
1369
String value= GetStringAttribute(typeNode,
Keywords
.MSD_CASESENSITIVE, "") ;
1372
value= GetStringAttribute(node,
Keywords
.MSD_CASESENSITIVE, "") ;
1375
if ((value ==
Keywords
.TRUE) || (value == "True"))
1377
if ((value ==
Keywords
.FALSE) || (value == "False"))
1381
value = GetMsdataAttribute(node,
Keywords
.MSD_LOCALE);
1458
bool isNested = GetBooleanAttribute(keyref,
Keywords
.MSD_ISNESTED, /*default:*/ false);
1675
if (_typeNs ==
Keywords
.XSDNS)
1701
if (typeNode.QualifiedName.Name != null && typeNode.QualifiedName.Name.Length != 0 && typeNode.QualifiedName.Namespace !=
Keywords
.XSDNS) { // this means UDSimpleType
1708
if ((ancestor != null) && (ancestor.QualifiedName.Namespace !=
Keywords
.XSDNS)) {
1758
if ( attrs[i].LocalName ==
Keywords
.MSD_ALLOWDBNULL && attrs[i].NamespaceURI ==
Keywords
.MSDNS)
1759
if ( attrs[i].Value ==
Keywords
.FALSE)
1761
if ( attrs[i].LocalName ==
Keywords
.MSD_ORDINAL && attrs[i].NamespaceURI ==
Keywords
.MSDNS)
1763
if ( attrs[i].LocalName ==
Keywords
.MSD_DEFAULTVALUE && attrs[i].NamespaceURI ==
Keywords
.MSDNS)
1777
if (XSDSchema.GetMsdataAttribute(typeNode,
Keywords
.TARGETNAMESPACE)!= null) {
1857
if ( attrs[i].LocalName ==
Keywords
.MSD_ALLOWDBNULL && attrs[i].NamespaceURI ==
Keywords
.MSDNS)
1858
if ( attrs[i].Value ==
Keywords
.FALSE)
1860
if ( attrs[i].LocalName ==
Keywords
.MSD_ORDINAL && attrs[i].NamespaceURI ==
Keywords
.MSDNS)
1862
if ( attrs[i].LocalName ==
Keywords
.MSD_DEFAULTVALUE && attrs[i].NamespaceURI ==
Keywords
.MSDNS)
1916
if (attr.SchemaTypeName.Namespace !=
Keywords
.XSDNS) // it is UD Simple Type, can it be?
1927
if (node.QualifiedName.Name != null && node.QualifiedName.Name.Length != 0 && node.QualifiedName.Namespace !=
Keywords
.XSDNS) { // this means UDSimpleType
1989
if (XSDSchema.GetMsdataAttribute(typeNode,
Keywords
.TARGETNAMESPACE)!= null) {
2014
column.AllowDBNull = GetBooleanAttribute(attr,
Keywords
.MSD_ALLOWDBNULL, true) ;
2015
String defValue = GetMsdataAttribute(attr,
Keywords
.MSD_DEFAULTVALUE);
2027
string strDefault = (attrib.Use == XmlSchemaUse.Required) ? GetMsdataAttribute(attr,
Keywords
.MSD_DEFAULTVALUE) : attr.DefaultValue;
2067
if (((XmlSchemaSimpleType)typeNode).Name != null && ((XmlSchemaSimpleType)typeNode).Name.Length != 0 && ((XmlSchemaSimpleType)typeNode).QualifiedName.Namespace !=
Keywords
.XSDNS) {
2069
string targetNamespace = XSDSchema.GetMsdataAttribute(typeNode,
Keywords
.TARGETNAMESPACE);
2074
simpleTypeNode = (xsdType.XmlBaseType!= null && xsdType.XmlBaseType.Namespace !=
Keywords
.XSDNS) ?
2079
simpleTypeNode = (xsdType.XmlBaseType!= null && xsdType.XmlBaseType.Namespace !=
Keywords
.XSDNS) ?
2097
if (ADP.IsEmpty(XSDSchema.GetMsdataAttribute(elem,
Keywords
.MSD_DATATYPE))) {
2149
if (XSDSchema.GetMsdataAttribute(typeNode,
Keywords
.TARGETNAMESPACE)!= null) {
2185
String tmp = GetStringAttribute(elem,
Keywords
.MSD_ORDINAL, (-1).ToString(CultureInfo.CurrentCulture));
2220
String value = GetMsdataAttribute(node,
Keywords
.MSD_LOCALE);
2233
if (GetBooleanAttribute(node,
Keywords
.MSD_USECURRENTLOCALE, false)) {
2243
value = GetMsdataAttribute(node,
Keywords
.MSD_DATASETNAME);
2248
value = GetMsdataAttribute(node,
Keywords
.MSD_DATASETNAMESPACE);
2336
bool isNested = GetBooleanAttribute(keyref,
Keywords
.MSD_ISNESTED, /*default:*/ false);
2401
return GetMsdataAttribute(key,
Keywords
.MSD_TABLENS);
2428
if (attrib.LocalName ==
Keywords
.MSD_DATATYPE &&
2429
attrib.Prefix ==
Keywords
.MSD &&
2430
attrib.NamespaceURI ==
Keywords
.MSDNS)
2493
(this.NamespaceURI ==
Keywords
.XML_XMLNS && this.LocalName != "lang")) { //try next one
2512
(this.NamespaceURI ==
Keywords
.XML_XMLNS && this.LocalName != "lang")) {
fx\src\data\System\NewXml\XmlBoundElement.cs (1)
242
w.WriteAttributeString( "xmlns", "xsi", "http://www.w3.org/2000/xmlns/",
Keywords
.XSINS );
fx\src\data\System\NewXml\XmlDataDocument.cs (9)
651
XmlAttribute attr = CreateAttribute( XSI,
Keywords
.XSI_NIL,
Keywords
.XSINS );
652
attr.Value =
Keywords
.TRUE;
1310
attr = CreateAttribute( XSI,
Keywords
.XSI_NIL,
Keywords
.XSINS );
1311
attr.Value =
Keywords
.TRUE;
1316
attr.Value =
Keywords
.TRUE;
1322
attr.Value =
Keywords
.FALSE;
1379
attr.Value =
Keywords
.FALSE;