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