2 writes to FromInference
System.Data.Common (2)
System\Data\DataSet.cs (2)
2420schema.FromInference = true; 2428schema.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)) 723if (FromInference) 834if (FromInference && ds.Tables.Count == 0 && string.Equals(ds.DataSetName, "NewDataSet", StringComparison.Ordinal)) 910if (FromInference && pt is XmlSchemaChoice && pt.MaxOccurs > decimal.One && (el.SchemaType is XmlSchemaComplexType)) 920if (FromInference) 933if (child == null && FromInference && el.Name == table.TableName) 941if (!FromInference || el.Name != table.TableName) 965if (FromInference && table.UKColumnPositionForInference == -1) 1063if (!(ct.BaseXmlSchemaType is XmlSchemaComplexType && FromInference)) 1085if (ct.BaseXmlSchemaType is XmlSchemaComplexType && FromInference) 1092if (!FromInference) 1096if (FromInference) 1128if (!FromInference) 1132if (FromInference) 1346if (FromInference && relation.Nested) 1451if (!FromInference && table != null) 1463if (!FromInference) 1485if (!FromInference || (isSimpleContent && table.Columns.Count == 0)) 1490if (FromInference) 1506if (!FromInference || _ds.Tables.GetTable(typeName, _TableUri) == null) 1509if (FromInference) 1572if (!FromInference || (FromInference && table == null)) 1621if (!FromInference) 1634if (FromInference) 1727if (FromInference) 1750if (FromInference) 1759if (FromInference && relation.Nested) 1959if (FromInference && table.XmlText != null) 1999if (FromInference) 2070if (FromInference) 2099if (FromInference && table.XmlText != null) // backward compatibility for inference 2112if (FromInference) 2171if (FromInference) 2175if (FromInference) // move this setting to SetProperties 2259if ((!isBase || FromInference) && (table.Columns.Contains(columnName, true))) 2264if (FromInference) 2316if (FromInference) 2446if (((!isBase) || FromInference) && (table.Columns.Contains(columnName, true))) 2451if (FromInference) 2496column.AllowDBNull = FromInference || (elem.MinOccurs == 0) || elem.IsNillable; 2543if (FromInference) 2619if (FromInference) 2638if (!FromInference) 2667if (FromInference) 2683if ((((XmlSchemaElement)choiceEl).RefName.Name.Length != 0) && (!FromInference && ((XmlSchemaElement)choiceEl).MaxOccurs != decimal.One && !(((XmlSchemaElement)choiceEl).SchemaType is XmlSchemaComplexType))) 2687if (FromInference) 2717if (FromInference && isNewDataSet)