2 writes to FromInference
System.Data (2)
fx\src\data\System\Data\DataSet.cs (2)
2188
schema.
FromInference
= true;
2194
schema.
FromInference
= false; // this is always false if you are not calling fron inference
51 references to FromInference
System.Data (51)
fx\src\data\System\Data\XMLSchema.cs (51)
442
if (
FromInference
&& relation.Nested) {
468
bool isChoice = this.
FromInference
&& (pt is XmlSchemaChoice);// currently we add this support for choice, just for inference
479
if (!
FromInference
|| (((XmlSchemaElement)el).MaxOccurs != Decimal.One && !(((XmlSchemaElement)el).SchemaType is XmlSchemaComplexType)))
514
if ((elements.Count == 1) || (this.
FromInference
&& elements.Count > 0)) { //let's see if this element looks like a DataSet
626
if (this.
FromInference
) {
715
if (this.
FromInference
&& ds.Tables.Count == 0 && String.Compare(ds.DataSetName, "NewDataSet", StringComparison.Ordinal) == 0)
778
if (this.
FromInference
&& pt is XmlSchemaChoice && pt.MaxOccurs > Decimal.One && (el.SchemaType is XmlSchemaComplexType))
787
if (this.
FromInference
) {
797
if (child == null && this.
FromInference
&& el.Name == table.TableName) {
803
if (!this.
FromInference
|| el.Name != table.TableName) {// check is required to support 1.1 inference behavior
823
if(this.
FromInference
&& table.UKColumnPositionForInference == -1) { // this is done for Inference
897
if (!(ct.BaseXmlSchemaType is XmlSchemaComplexType && this.
FromInference
))
915
if (ct.BaseXmlSchemaType is XmlSchemaComplexType && this.
FromInference
)
920
if (!this.
FromInference
)
924
if (this.
FromInference
)
951
if (!this.
FromInference
)
955
if (this.
FromInference
) {
1141
if (
FromInference
&& relation.Nested) {
1242
if (!
FromInference
&& table!=null) {
1253
if (!this.
FromInference
) {
1273
if (!
FromInference
||(isSimpleContent && table.Columns.Count == 0 )) {// for inference backward compatability
1277
if (this.
FromInference
) {
1291
if (!this.
FromInference
||_ds.Tables.GetTable(typeName, _TableUri) == null) { // for inference; special case: add table if doesnot exists in collection
1293
if (this.
FromInference
) {
1349
if (!
FromInference
|| (
FromInference
&& table == null))
1395
if (!this.
FromInference
)
1408
if (
FromInference
) {
1489
if (this.
FromInference
) {
1509
if (this.
FromInference
)
1518
if (
FromInference
&& relation.Nested) {
1693
if(
FromInference
&& table.XmlText != null) { // backward compatability for inference
1727
if (this.
FromInference
) {
1788
if (this.
FromInference
) {
1813
if(this.
FromInference
&& table.XmlText != null) // backward compatability for inference
1825
if (this.
FromInference
) {
1878
if(this.
FromInference
)
1881
if (this.
FromInference
) // move this setting to SetProperties
1954
if ((!isBase ||
FromInference
) && (table.Columns.Contains(columnName, true))) {
1958
if (
FromInference
) { // for backward compatability with old inference
2004
if (this.
FromInference
) { // move this setting to SetProperties
2115
if (((!isBase) ||
FromInference
) && (table.Columns.Contains(columnName, true))) {
2119
if (
FromInference
) { // for backward compatability with old inference
2158
column.AllowDBNull = this.
FromInference
||(elem.MinOccurs == 0 ) || elem.IsNillable;
2198
if(this.
FromInference
) {// search for prefix after adding to table, so NS has its final value, and
2263
if (this.
FromInference
)
2277
if (!
FromInference
) {
2300
if (
FromInference
) {
2312
if ((((XmlSchemaElement)choiceEl).RefName.Name.Length != 0) && (!
FromInference
&& ((XmlSchemaElement)choiceEl).MaxOccurs != Decimal.One && !(((XmlSchemaElement)choiceEl).SchemaType is XmlSchemaComplexType)))
2316
if (
FromInference
) {
2343
if (
FromInference
&& isNewDataSet) {