11 writes to Namespace
System.Data (11)
fx\src\data\System\Data\DataTable.cs (4)
206
this.
Namespace
= tableNamespace;
304
this.
Namespace
= table.Namespace;
1873
this.
Namespace
= null;
5794
this.
Namespace
= currentTable.Namespace;
fx\src\data\System\Data\DataView.cs (1)
1690
dt.
Namespace
= this.table.Namespace;
fx\src\data\System\Data\XDRSchema.cs (2)
554
table.
Namespace
= _schemaUri;
632
table.
Namespace
= _schemaUri;
fx\src\data\System\Data\XMLSchema.cs (4)
1249
table.
Namespace
= _TableUri;
1251
table.
Namespace
= GetStringAttribute(node, "targetNamespace", _TableUri);
1365
table.
Namespace
= _TableUri;
1366
table.
Namespace
= GetStringAttribute(node, "targetNamespace", _TableUri);
152 references to Namespace
System.Data (152)
fx\src\data\System\Data\CodeGen\datacache.cs (1)
687
tableInitClass.Statements.Add(Assign(Property(This(), "Namespace"), Str(table.
Namespace
)));
fx\src\data\System\Data\DataColumn.cs (1)
981
return Table.
Namespace
;
fx\src\data\System\Data\DataRelation.cs (7)
407
if (rel.ParentTable.
Namespace
!= ns) {
480
CheckNamespaceValidityForNestedRelations(ParentTable.
Namespace
);
525
if (ADP.IsEmpty(ChildTable.
Namespace
) && ((ChildTable.NestedParentsCount > 1) ||
531
parentNs = rel.ParentTable.
Namespace
;
534
if (String.Compare(parentNs, rel.ParentTable.
Namespace
, StringComparison.Ordinal) != 0) {
698
DataTable parent = destination.Tables[ParentTable.TableName, ParentTable.
Namespace
];
699
DataTable child = destination.Tables[ChildTable.TableName, ChildTable.
Namespace
];
fx\src\data\System\Data\DataRelationCollection.cs (1)
201
relation.CheckNamespaceValidityForNestedRelations(relation.ParentTable.
Namespace
);
fx\src\data\System\Data\DataSet.cs (4)
1126
dt.tableNamespace = tbls[i].
Namespace
; // hardcode the namespace for a second to not mess up
1163
ds.Tables[table.TableName, table.
Namespace
].Columns[col.ColumnName].Expression = col.Expression;
1191
DataTable destTable = dsNew.Tables[table.TableName, table.
Namespace
];
1285
DataTable destTable = dsNew.Tables[table.TableName, table.
Namespace
];
fx\src\data\System\Data\DataTable.cs (24)
262
ds.namespaceURI = this.
Namespace
;
268
this.DataSet.namespaceURI = this.
Namespace
; //this.DataSet.Namespace = this.Namespace; ??
304
this.Namespace = table.
Namespace
;
320
info.AddValue("DataTable.Namespace",
Namespace
);
1677
dataSet.Tables.RegisterName(value, this.
Namespace
);
1686
dataSet.Tables.RegisterName(value, this.
Namespace
);
1781
if (realNamespace !=
Namespace
) {
1835
if (rel.ParentTable != parentTable && rel.ParentTable.
Namespace
!= ns) {
1860
/// Indicates whether the <see cref='System.Data.DataTable.
Namespace
'/> property should be persisted.
1869
/// Resets the <see cref='System.Data.DataTable.
Namespace
'/> property to its default state.
2180
DataTable destinationTable = ds.Tables[sourceTable.TableName, sourceTable.
Namespace
];
4856
ds.Namespace = this.
Namespace
;
5001
ds.Namespace = this.
Namespace
;
5107
if ((this.
Namespace
== reader.Value) &&
5738
if (!Common.ADP.IsEmpty(this.
Namespace
)) {
5739
currentTable = ds.Tables[this.tableName, this.
Namespace
];
5762
qTableName = (this.
Namespace
.Length > 0)? (this.
Namespace
+ ":" + this.tableName):this.tableName;
5785
this.tableNamespace = tempTable.
Namespace
;
5793
if (!Common.ADP.IsEmpty(currentTable.
Namespace
)) {
5794
this.Namespace = currentTable.
Namespace
;
5819
DataTable destinationTable = this.DataSet.Tables[tempTable.tableName, tempTable.
Namespace
];
5820
DataTable sourceTable = ds.Tables[tempTable.tableName, tempTable.
Namespace
];
5854
this.DataSet.Tables[tempTable.TableName, tempTable.
Namespace
].Columns[dc.ColumnName].Expression = dc.Expression;
fx\src\data\System\Data\DataTableClearEvent.cs (1)
35
return dataTable.
Namespace
;
fx\src\data\System\Data\DataTableCollection.cs (7)
115
if (table.TableName == name && table.
Namespace
== ns)
129
if (table.
Namespace
== ns)
290
RegisterName(table.TableName, table.
Namespace
);
481
string ns = checkProperty ? table.
Namespace
: table.tableNamespace ;
607
if ((result == 1) && (table.
Namespace
== tableNamespace))
610
if ((result == -1) && (table.
Namespace
== tableNamespace))
674
if (NamesEqual(name, table.TableName, true, locale) != 0 && (tbNamespace == table.
Namespace
)) {
fx\src\data\System\Data\DataTableReader.cs (1)
640
BaseTableNamespace.DefaultValue = table.
Namespace
;
fx\src\data\System\Data\DataView.cs (1)
1690
dt.Namespace = this.table.
Namespace
;
fx\src\data\System\Data\ForeignKeyConstraint.cs (2)
620
iDest = destination.Tables.IndexOf(Table.TableName, Table.
Namespace
, false); // pass false for last param
631
iDest = destination.Tables.IndexOf(RelatedTable.TableName, RelatedTable.
Namespace
, false);// pass false for last param
fx\src\data\System\Data\Merger.cs (5)
91
targetTable = dataSet.Tables[sourceTable.TableName, sourceTable.
Namespace
];// we know that target table wont be null since MissingSchemaAction is Add , we have already added it!
145
dt = dataSet.Tables[src.TableName, src.
Namespace
];
279
targetTable = dataSet.Tables[table.TableName, table.
Namespace
];
486
parent = dataSet.Tables[relation.ParentTable.TableName, relation.ParentTable.
Namespace
];
495
child = dataSet.Tables[relation.ChildTable.TableName,relation.ChildTable.
Namespace
];
fx\src\data\System\Data\RelationshipConverter.cs (4)
54
if (System.Data.Common.ADP.IsEmpty(parentTable.
Namespace
) && System.Data.Common.ADP.IsEmpty(childTable.
Namespace
)) {
65
values = new object[] { rel.RelationName, rel.ParentKey.Table.TableName, rel.ParentKey.Table.
Namespace
, rel.ChildKey.Table.TableName,
66
rel.ChildKey.Table.
Namespace
, rel.ParentColumnNames, rel.ChildColumnNames, rel.Nested };
fx\src\data\System\Data\UniqueConstraint.cs (1)
263
iDest = destination.Tables.IndexOf(Table.TableName, Table.
Namespace
, false);// pass false for last param to be backward compatable
fx\src\data\System\Data\XMLDiffLoader.cs (1)
266
&& (string.Compare(dt.
Namespace
, ns, StringComparison.Ordinal) == 0))
fx\src\data\System\Data\xmlsaver.cs (67)
517
WriteSchemaRoot(xd, rootSchema, _dt.
Namespace
);
526
namespaces[_dt.
Namespace
] = rootSchema;
599
if (((_ds != null )&& (_ds.Namespace == top[i].
Namespace
)) || Common.ADP.IsEmpty(top[i].
Namespace
) || (schFormat == SchemaFormat.Remoting)) {
602
if (((_ds != null )&& (_ds.Namespace.Length != 0)) && Common.ADP.IsEmpty(top[i].
Namespace
)) {
630
if ((_ds != null && _ds.Namespace == top[i].
Namespace
) || Common.ADP.IsEmpty(top[i].
Namespace
) || (schFormat == SchemaFormat.Remoting))
633
node.SetAttribute(Keywords.REF, ((string)prefixes[top[i].
Namespace
])+':'+top[i].EncodedTableName);
641
AppendChildWithoutRef(rootSchema, top[i].
Namespace
, el, Keywords.XSD_ELEMENT);
643
node.SetAttribute(Keywords.REF, ((string)prefixes[top[i].
Namespace
])+':'+top[i].EncodedTableName);
695
if (ns == ((_ds != null) ? _ds.Namespace : _dt.
Namespace
) || Common.ADP.IsEmpty(ns)) {
721
if (ns == ((_ds != null)?_ds.Namespace:_dt.
Namespace
) || Common.ADP.IsEmpty(ns)) {
760
if (imp_ns == ((_ds != null)?_ds.Namespace:_dt.
Namespace
))
816
WriteSchemaRoot(xd, rootSchema, dt.
Namespace
);
837
namespaces[dt.
Namespace
] = rootSchema;
838
if (dt.
Namespace
.Length == 0) {
839
prefixes[dt.
Namespace
] = null;
843
rootSchema.SetAttribute(Keywords.XMLNS_MSTNS, dt.
Namespace
);
844
prefixes[dt.
Namespace
] = "mstns";
871
dsElement.SetAttribute(Keywords.MSD_MAINDATATABLE, Keywords.MSDNS, XmlConvert.EncodeLocalName(((dt.
Namespace
.Length == 0)?dt.TableName : (dt.
Namespace
+ ":" + dt.TableName))));
888
dsElement.SetAttribute(Keywords.MSD_MAINDATATABLE, Keywords.MSDNS, XmlConvert.EncodeLocalName(((dt.
Namespace
.Length == 0)?dt.TableName : (dt.
Namespace
+ ":" + dt.TableName))));
981
root.SetAttribute( Keywords.MSD_PARENTTABLENS, Keywords.MSDNS, rel.ParentKey.Table.
Namespace
);
984
root.SetAttribute( Keywords.MSD_CHILDTABLENS, Keywords.MSDNS, rel.ChildKey.Table.
Namespace
);
1065
(col.Table.DataSet != null ? col.Table.DataSet.Namespace : col.Table.
Namespace
);
1179
string tgNamespace = table.TypeName.IsEmpty ? table.
Namespace
: table.TypeName.Namespace;
1273
if ((col.Namespace != (col.Table.TypeName.IsEmpty ? col.Table.
Namespace
: col.Table.TypeName.Namespace)) && (col.Namespace.Length != 0))
1280
if (col.Table.
Namespace
!=_ds.Namespace) {
1282
XmlElement tNode = GetSchema(col.Table.
Namespace
);
1478
if (((table.DataSet == null) || (_ds!= null && table.
Namespace
!= _ds.Namespace)) && (schFormat == SchemaFormat.Remoting))
1479
root.SetAttribute( Keywords.TARGETNAMESPACE, Keywords.MSDNS, table.
Namespace
);
1484
if (table.
Namespace
.Length == 0) {
1486
string tgNamespace = _table.
Namespace
;
1506
tgNamespace = _table.
Namespace
;
1509
if (table.
Namespace
!= tgNamespace) {
1568
typeSchema = GetSchema(table.
Namespace
);
1570
typeSchema = fUnqualified ? GetSchema(_ds.Namespace): GetSchema(table.
Namespace
);
1667
if (childTable.
Namespace
== table.
Namespace
) {
1672
if ((childTable.
Namespace
== table.
Namespace
) || (childTable.
Namespace
.Length == 0) || schFormat == SchemaFormat.Remoting) {
1677
GetSchema(childTable.
Namespace
).AppendChild(NestedTable);
1679
NestedTable.SetAttribute( Keywords.REF, ((string)prefixes[childTable.
Namespace
])+':'+childTable.EncodedTableName);
1709
GetSchema(table.
Namespace
); // to ensure prefix handling
1710
xpathprefix = table.
Namespace
.Length != 0 ? (string) prefixes[table.
Namespace
] +':' : String.Empty;
1731
constraint.SetAttribute( Keywords.MSD_TABLENS, Keywords.MSDNS, table.
Namespace
);
1803
constraint.SetAttribute( Keywords.MSD_TABLENS, Keywords.MSDNS, table.
Namespace
);
1843
constraint.SetAttribute (Keywords.MSD_TABLENS, Keywords.MSDNS, foreign.Table.
Namespace
);
2107
string prefix = (table.
Namespace
.Length != 0) ? table.Prefix : String.Empty;
2113
_xmlw.WriteStartElement( prefix, row.Table.EncodedTableName, row.Table.
Namespace
);
2134
_xmlw.WriteStartElement( prefix, row.Table.EncodedTableName, row.Table.
Namespace
);
2176
string tablePrefix = (table.
Namespace
.Length != 0) ? table.Prefix : String.Empty;
2182
_xmlw.WriteStartElement( tablePrefix, row.Table.EncodedTableName, row.Table.
Namespace
);
2430
string prefix = (_ds!= null)?(( _ds.Namespace.Length == 0 )? "" : _ds.Prefix):(( _dt.
Namespace
.Length == 0 )? "" : _dt.Prefix);
2433
_xmlw.WriteStartElement(prefix, Keywords.DOCUMENTELEMENT, ( _dt.
Namespace
== null) ? "":_dt.
Namespace
);
2450
throw ExceptionBuilder.MultipleParentRows(tempTable.
Namespace
.Length == 0 ? tempTable.TableName:tempTable.
Namespace
+ tempTable.TableName);
2468
string prefix = (_ds!= null)?(( _ds.Namespace.Length == 0 )? "" : _ds.Prefix):(( _dt.
Namespace
.Length == 0 )? "" : _dt.Prefix);
2478
_xmlw.WriteStartElement(prefix, Keywords.DOCUMENTELEMENT, _dt.
Namespace
);
2514
throw ExceptionBuilder.MultipleParentRows(dt.
Namespace
.Length == 0 ? dt.TableName : (dt.
Namespace
+ dt.TableName));
2540
string prefix = (row.Table.
Namespace
.Length == 0) ? "" : row.Table.Prefix;
2542
_xmlw.WriteStartElement(prefix, encodedTableName, row.Table.
Namespace
);
fx\src\data\System\Data\XMLSchema.cs (12)
698
if (dt.NestedParentRelations.Length == 0 && dt.
Namespace
== ds.Namespace) {
701
if (childRelations[j].Nested && dt.
Namespace
== childRelations[j].ChildTable.
Namespace
) { // take NS from Parent table
725
ds.Namespace = ds.Tables[0].
Namespace
;
785
if (((el.Name == null) && (el.RefName.Name == table.EncodedTableName && el.RefName.Namespace == table.
Namespace
)) ||
1434
if( GetTableNamespace(key) == table.
Namespace
|| GetTableNamespace(key) == null)
1449
if (_tableChild != table && table.
Namespace
== _tableChild.
Namespace
)
1463
if (GetTableNamespace(keyref) == _tableChild.
Namespace
) {
1789
column.Prefix = GetPrefix(table.
Namespace
);
2161
if (!elem.RefName.IsEmpty || elem.QualifiedName.Namespace != table.
Namespace
)
2195
if (column.Namespace == table.
Namespace
)
fx\src\data\System\Data\XmlToDatasetMap.cs (8)
66
id.NamespaceURI = table.
Namespace
;
139
string tableNamespace = nameTable.Get(table.
Namespace
);
169
string tableNamespace = nameTable.Get(table.
Namespace
); // Look ip table namespace
172
tableNamespace = nameTable.Add(table.
Namespace
); // Add it
302
string tableNamespace = nameTable.Get(r.ChildTable.
Namespace
);
305
tableNamespace = nameTable.Add(r.ChildTable.
Namespace
);
371
string tableNamespace = nameTable.Get(r.ChildTable.
Namespace
);
374
tableNamespace = nameTable.Add(r.ChildTable.
Namespace
);
fx\src\data\System\NewXml\DataSetMappper.cs (2)
317
object idTable = GetIdentity( table.EncodedTableName, table.
Namespace
);
322
object idTable = GetIdentity( table.EncodedTableName, table.
Namespace
);
fx\src\data\System\NewXml\XmlDataDocument.cs (2)
1225
XmlBoundElement rowElement = new XmlBoundElement( string.Empty, table.EncodedTableName, table.
Namespace
, this );
2820
if (dt.
Namespace
!= ds.Namespace) {