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