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