2 writes to FromInference
System.Data.Common (2)
System\Data\DataSet.cs (2)
2378schema.FromInference = true; 2386schema.FromInference = false; // this is always false if you are not calling fron inference
51 references to FromInference
System.Data.Common (51)
System\Data\XMLSchema.cs (51)
503if (FromInference && relation.Nested) 536bool isChoice = FromInference && (pt is XmlSchemaChoice); // currently we add this support for choice, just for inference 549if (!FromInference || (((XmlSchemaElement)el).MaxOccurs != decimal.One && !(((XmlSchemaElement)el).SchemaType is XmlSchemaComplexType))) 590if ((elements.Count == 1) || (FromInference && elements.Count > 0)) 721if (FromInference) 832if (FromInference && ds.Tables.Count == 0 && string.Equals(ds.DataSetName, "NewDataSet", StringComparison.Ordinal)) 907if (FromInference && pt is XmlSchemaChoice && pt.MaxOccurs > decimal.One && (el.SchemaType is XmlSchemaComplexType)) 917if (FromInference) 930if (child == null && FromInference && el.Name == table.TableName) 938if (!FromInference || el.Name != table.TableName) 962if (FromInference && table.UKColumnPositionForInference == -1) 1057if (!(ct.BaseXmlSchemaType is XmlSchemaComplexType && FromInference)) 1079if (ct.BaseXmlSchemaType is XmlSchemaComplexType && FromInference) 1086if (!FromInference) 1090if (FromInference) 1122if (!FromInference) 1126if (FromInference) 1340if (FromInference && relation.Nested) 1444if (!FromInference && table != null) 1456if (!FromInference) 1478if (!FromInference || (isSimpleContent && table.Columns.Count == 0)) 1483if (FromInference) 1499if (!FromInference || _ds.Tables.GetTable(typeName, _TableUri) == null) 1502if (FromInference) 1564if (!FromInference || (FromInference && table == null)) 1613if (!FromInference) 1626if (FromInference) 1719if (FromInference) 1742if (FromInference) 1751if (FromInference && relation.Nested) 1950if (FromInference && table.XmlText != null) 1990if (FromInference) 2061if (FromInference) 2089if (FromInference && table.XmlText != null) // backward compatibility for inference 2102if (FromInference) 2161if (FromInference) 2165if (FromInference) // move this setting to SetProperties 2248if ((!isBase || FromInference) && (table.Columns.Contains(columnName, true))) 2253if (FromInference) 2305if (FromInference) 2434if (((!isBase) || FromInference) && (table.Columns.Contains(columnName, true))) 2439if (FromInference) 2484column.AllowDBNull = FromInference || (elem.MinOccurs == 0) || elem.IsNillable; 2531if (FromInference) 2606if (FromInference) 2625if (!FromInference) 2654if (FromInference) 2670if ((((XmlSchemaElement)choiceEl).RefName.Name.Length != 0) && (!FromInference && ((XmlSchemaElement)choiceEl).MaxOccurs != decimal.One && !(((XmlSchemaElement)choiceEl).SchemaType is XmlSchemaComplexType))) 2674if (FromInference) 2704if (FromInference && isNewDataSet)