2 writes to FromInference
System.Data.Common (2)
System\Data\DataSet.cs (2)
2417schema.FromInference = true; 2425schema.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)
500if (FromInference && relation.Nested) 533bool isChoice = FromInference && (pt is XmlSchemaChoice); // currently we add this support for choice, just for inference 546if (!FromInference || (((XmlSchemaElement)el).MaxOccurs != decimal.One && !(((XmlSchemaElement)el).SchemaType is XmlSchemaComplexType))) 587if ((elements.Count == 1) || (FromInference && elements.Count > 0)) 720if (FromInference) 830if (FromInference && ds.Tables.Count == 0 && string.Equals(ds.DataSetName, "NewDataSet", StringComparison.Ordinal)) 906if (FromInference && pt is XmlSchemaChoice && pt.MaxOccurs > decimal.One && (el.SchemaType is XmlSchemaComplexType)) 916if (FromInference) 929if (child == null && FromInference && el.Name == table.TableName) 937if (!FromInference || el.Name != table.TableName) 961if (FromInference && table.UKColumnPositionForInference == -1) 1059if (!(ct.BaseXmlSchemaType is XmlSchemaComplexType && FromInference)) 1081if (ct.BaseXmlSchemaType is XmlSchemaComplexType && FromInference) 1088if (!FromInference) 1092if (FromInference) 1124if (!FromInference) 1128if (FromInference) 1342if (FromInference && relation.Nested) 1447if (!FromInference && table != null) 1459if (!FromInference) 1481if (!FromInference || (isSimpleContent && table.Columns.Count == 0)) 1486if (FromInference) 1502if (!FromInference || _ds.Tables.GetTable(typeName, _TableUri) == null) 1505if (FromInference) 1568if (!FromInference || (FromInference && table == null)) 1617if (!FromInference) 1630if (FromInference) 1723if (FromInference) 1746if (FromInference) 1755if (FromInference && relation.Nested) 1955if (FromInference && table.XmlText != null) 1995if (FromInference) 2066if (FromInference) 2095if (FromInference && table.XmlText != null) // backward compatibility for inference 2108if (FromInference) 2167if (FromInference) 2171if (FromInference) // move this setting to SetProperties 2255if ((!isBase || FromInference) && (table.Columns.Contains(columnName, true))) 2260if (FromInference) 2312if (FromInference) 2442if (((!isBase) || FromInference) && (table.Columns.Contains(columnName, true))) 2447if (FromInference) 2492column.AllowDBNull = FromInference || (elem.MinOccurs == 0) || elem.IsNillable; 2539if (FromInference) 2615if (FromInference) 2634if (!FromInference) 2660if (FromInference) 2676if ((((XmlSchemaElement)choiceEl).RefName.Name.Length != 0) && (!FromInference && ((XmlSchemaElement)choiceEl).MaxOccurs != decimal.One && !(((XmlSchemaElement)choiceEl).SchemaType is XmlSchemaComplexType))) 2680if (FromInference) 2707if (FromInference && isNewDataSet)