{
SqlDataAdapter da = new SqlDataAdapter ();
Assert.IsTrue (da.AcceptChangesDuringFill, "#1");
-#if NET_2_0
Assert.IsTrue (da.AcceptChangesDuringUpdate, "#2");
-#endif
Assert.IsNull (da.Container, "#3");
Assert.IsFalse (da.ContinueUpdateOnError, "#4");
Assert.IsNull (da.DeleteCommand, "#5");
-#if NET_2_0
Assert.AreEqual (LoadOption.OverwriteChanges, da.FillLoadOption, "#6");
-#endif
Assert.IsNull (da.InsertCommand, "#7");
Assert.AreEqual (MissingMappingAction.Passthrough, da.MissingMappingAction, "#8");
Assert.AreEqual (MissingSchemaAction.Add, da.MissingSchemaAction, "#9");
-#if NET_2_0
Assert.IsFalse (da.ReturnProviderSpecificTypes, "#10");
-#endif
Assert.IsNull (da.SelectCommand, "#11");
Assert.IsNull (da.Site, "#12");
Assert.IsNotNull (da.TableMappings, "#13");
Assert.AreEqual (0, da.TableMappings.Count, "#14");
-#if NET_2_0
Assert.AreEqual (1, da.UpdateBatchSize, "#15");
-#endif
Assert.IsNull (da.UpdateCommand, "#16");
}
SqlCommand cmd = new SqlCommand ();
SqlDataAdapter da = new SqlDataAdapter (cmd);
Assert.IsTrue (da.AcceptChangesDuringFill, "#1");
-#if NET_2_0
Assert.IsTrue (da.AcceptChangesDuringUpdate, "#2");
-#endif
Assert.IsNull (da.Container, "#3");
Assert.IsFalse (da.ContinueUpdateOnError, "#4");
Assert.IsNull (da.DeleteCommand, "#5");
-#if NET_2_0
Assert.AreEqual (LoadOption.OverwriteChanges, da.FillLoadOption, "#6");
-#endif
Assert.IsNull (da.InsertCommand, "#7");
Assert.AreEqual (MissingMappingAction.Passthrough, da.MissingMappingAction, "#8");
Assert.AreEqual (MissingSchemaAction.Add, da.MissingSchemaAction, "#9");
-#if NET_2_0
Assert.IsFalse (da.ReturnProviderSpecificTypes, "#10");
-#endif
Assert.IsNotNull (da.SelectCommand, "#11");
Assert.AreSame (cmd, da.SelectCommand, "#12");
Assert.IsNull (da.Site, "#13");
Assert.IsNotNull (da.TableMappings, "#14");
Assert.AreEqual (0, da.TableMappings.Count, "#15");
-#if NET_2_0
Assert.AreEqual (1, da.UpdateBatchSize, "#16");
-#endif
Assert.IsNull (da.UpdateCommand, "#17");
}
{
SqlDataAdapter da = new SqlDataAdapter ((SqlCommand) null);
Assert.IsTrue (da.AcceptChangesDuringFill, "#1");
-#if NET_2_0
Assert.IsTrue (da.AcceptChangesDuringUpdate, "#2");
-#endif
Assert.IsNull (da.Container, "#3");
Assert.IsFalse (da.ContinueUpdateOnError, "#4");
Assert.IsNull (da.DeleteCommand, "#5");
-#if NET_2_0
Assert.AreEqual (LoadOption.OverwriteChanges, da.FillLoadOption, "#6");
-#endif
Assert.IsNull (da.InsertCommand, "#7");
Assert.AreEqual (MissingMappingAction.Passthrough, da.MissingMappingAction, "#8");
Assert.AreEqual (MissingSchemaAction.Add, da.MissingSchemaAction, "#9");
-#if NET_2_0
Assert.IsFalse (da.ReturnProviderSpecificTypes, "#10");
-#endif
Assert.IsNull (da.SelectCommand, "#11");
Assert.IsNull (da.Site, "#12");
Assert.IsNotNull (da.TableMappings, "#13");
Assert.AreEqual (0, da.TableMappings.Count, "#14");
-#if NET_2_0
Assert.AreEqual (1, da.UpdateBatchSize, "#15");
-#endif
Assert.IsNull (da.UpdateCommand, "#16");
}
SqlDataAdapter da = new SqlDataAdapter (selectCommandText,
selectConnection);
Assert.IsTrue (da.AcceptChangesDuringFill, "#1");
-#if NET_2_0
Assert.IsTrue (da.AcceptChangesDuringUpdate, "#2");
-#endif
Assert.IsNull (da.Container, "#3");
Assert.IsFalse (da.ContinueUpdateOnError, "#4");
Assert.IsNull (da.DeleteCommand, "#5");
-#if NET_2_0
Assert.AreEqual (LoadOption.OverwriteChanges, da.FillLoadOption, "#6");
-#endif
Assert.IsNull (da.InsertCommand, "#7");
Assert.AreEqual (MissingMappingAction.Passthrough, da.MissingMappingAction, "#8");
Assert.AreEqual (MissingSchemaAction.Add, da.MissingSchemaAction, "#9");
-#if NET_2_0
Assert.IsFalse (da.ReturnProviderSpecificTypes, "#10");
-#endif
Assert.IsNotNull (da.SelectCommand, "#11");
Assert.AreSame (selectCommandText, da.SelectCommand.CommandText, "#12");
Assert.AreSame (selectConnection, da.SelectCommand.Connection, "#13");
Assert.IsNull (da.Site, "#14");
Assert.IsNotNull (da.TableMappings, "#15");
Assert.AreEqual (0, da.TableMappings.Count, "#16");
-#if NET_2_0
Assert.AreEqual (1, da.UpdateBatchSize, "#17");
-#endif
Assert.IsNull (da.UpdateCommand, "#18");
}
SqlDataAdapter da = new SqlDataAdapter ((string) null,
selectConnection);
Assert.IsTrue (da.AcceptChangesDuringFill, "#1");
-#if NET_2_0
Assert.IsTrue (da.AcceptChangesDuringUpdate, "#2");
-#endif
Assert.IsNull (da.Container, "#3");
Assert.IsFalse (da.ContinueUpdateOnError, "#4");
Assert.IsNull (da.DeleteCommand, "#5");
-#if NET_2_0
Assert.AreEqual (LoadOption.OverwriteChanges, da.FillLoadOption, "#6");
-#endif
Assert.IsNull (da.InsertCommand, "#7");
Assert.AreEqual (MissingMappingAction.Passthrough, da.MissingMappingAction, "#8");
Assert.AreEqual (MissingSchemaAction.Add, da.MissingSchemaAction, "#9");
-#if NET_2_0
Assert.IsFalse (da.ReturnProviderSpecificTypes, "#10");
-#endif
Assert.IsNotNull (da.SelectCommand, "#11");
Assert.IsNotNull (da.SelectCommand.CommandText, "#12");
Assert.AreEqual (string.Empty, da.SelectCommand.CommandText, "#13");
Assert.IsNull (da.Site, "#15");
Assert.IsNotNull (da.TableMappings, "#16");
Assert.AreEqual (0, da.TableMappings.Count, "#17");
-#if NET_2_0
Assert.AreEqual (1, da.UpdateBatchSize, "#18");
-#endif
Assert.IsNull (da.UpdateCommand, "#19");
}
SqlDataAdapter da = new SqlDataAdapter (selectCommandText,
(SqlConnection) null);
Assert.IsTrue (da.AcceptChangesDuringFill, "#1");
-#if NET_2_0
Assert.IsTrue (da.AcceptChangesDuringUpdate, "#2");
-#endif
Assert.IsNull (da.Container, "#3");
Assert.IsFalse (da.ContinueUpdateOnError, "#4");
Assert.IsNull (da.DeleteCommand, "#5");
-#if NET_2_0
Assert.AreEqual (LoadOption.OverwriteChanges, da.FillLoadOption, "#6");
-#endif
Assert.IsNull (da.InsertCommand, "#7");
Assert.AreEqual (MissingMappingAction.Passthrough, da.MissingMappingAction, "#8");
Assert.AreEqual (MissingSchemaAction.Add, da.MissingSchemaAction, "#9");
-#if NET_2_0
Assert.IsFalse (da.ReturnProviderSpecificTypes, "#10");
-#endif
Assert.IsNotNull (da.SelectCommand, "#11");
Assert.AreSame (selectCommandText, da.SelectCommand.CommandText, "#12");
Assert.IsNull (da.SelectCommand.Connection, "#13");
Assert.IsNull (da.Site, "#14");
Assert.IsNotNull (da.TableMappings, "#15");
Assert.AreEqual (0, da.TableMappings.Count, "#16");
-#if NET_2_0
Assert.AreEqual (1, da.UpdateBatchSize, "#17");
-#endif
Assert.IsNull (da.UpdateCommand, "#18");
}
SqlDataAdapter da = new SqlDataAdapter (selectCommandText,
selectConnectionString);
Assert.IsTrue (da.AcceptChangesDuringFill, "#1");
-#if NET_2_0
Assert.IsTrue (da.AcceptChangesDuringUpdate, "#2");
-#endif
Assert.IsNull (da.Container, "#3");
Assert.IsFalse (da.ContinueUpdateOnError, "#4");
Assert.IsNull (da.DeleteCommand, "#5");
-#if NET_2_0
Assert.AreEqual (LoadOption.OverwriteChanges, da.FillLoadOption, "#6");
-#endif
Assert.IsNull (da.InsertCommand, "#7");
Assert.AreEqual (MissingMappingAction.Passthrough, da.MissingMappingAction, "#8");
Assert.AreEqual (MissingSchemaAction.Add, da.MissingSchemaAction, "#9");
-#if NET_2_0
Assert.IsFalse (da.ReturnProviderSpecificTypes, "#10");
-#endif
Assert.IsNotNull (da.SelectCommand, "#11");
Assert.AreSame (selectCommandText, da.SelectCommand.CommandText, "#12");
Assert.IsNotNull (da.SelectCommand.Connection, "#13");
Assert.IsNull (da.Site, "#15");
Assert.IsNotNull (da.TableMappings, "#16");
Assert.AreEqual (0, da.TableMappings.Count, "#17");
-#if NET_2_0
Assert.AreEqual (1, da.UpdateBatchSize, "#18");
-#endif
Assert.IsNull (da.UpdateCommand, "#19");
}
SqlDataAdapter da = new SqlDataAdapter ((string) null,
selectConnectionString);
Assert.IsTrue (da.AcceptChangesDuringFill, "#1");
-#if NET_2_0
Assert.IsTrue (da.AcceptChangesDuringUpdate, "#2");
-#endif
Assert.IsNull (da.Container, "#3");
Assert.IsFalse (da.ContinueUpdateOnError, "#4");
Assert.IsNull (da.DeleteCommand, "#5");
-#if NET_2_0
Assert.AreEqual (LoadOption.OverwriteChanges, da.FillLoadOption, "#6");
-#endif
Assert.IsNull (da.InsertCommand, "#7");
Assert.AreEqual (MissingMappingAction.Passthrough, da.MissingMappingAction, "#8");
Assert.AreEqual (MissingSchemaAction.Add, da.MissingSchemaAction, "#9");
-#if NET_2_0
Assert.IsFalse (da.ReturnProviderSpecificTypes, "#10");
-#endif
Assert.IsNotNull (da.SelectCommand, "#11");
Assert.IsNotNull (da.SelectCommand.CommandText, "#12");
Assert.AreEqual (string.Empty, da.SelectCommand.CommandText, "#13");
Assert.IsNull (da.Site, "#16");
Assert.IsNotNull (da.TableMappings, "#17");
Assert.AreEqual (0, da.TableMappings.Count, "#18");
-#if NET_2_0
Assert.AreEqual (1, da.UpdateBatchSize, "#19");
-#endif
Assert.IsNull (da.UpdateCommand, "#20");
}
SqlDataAdapter da = new SqlDataAdapter (selectCommandText,
(string) null);
Assert.IsTrue (da.AcceptChangesDuringFill, "#1");
-#if NET_2_0
Assert.IsTrue (da.AcceptChangesDuringUpdate, "#2");
-#endif
Assert.IsNull (da.Container, "#3");
Assert.IsFalse (da.ContinueUpdateOnError, "#4");
Assert.IsNull (da.DeleteCommand, "#5");
-#if NET_2_0
Assert.AreEqual (LoadOption.OverwriteChanges, da.FillLoadOption, "#6");
-#endif
Assert.IsNull (da.InsertCommand, "#7");
Assert.AreEqual (MissingMappingAction.Passthrough, da.MissingMappingAction, "#8");
Assert.AreEqual (MissingSchemaAction.Add, da.MissingSchemaAction, "#9");
-#if NET_2_0
Assert.IsFalse (da.ReturnProviderSpecificTypes, "#10");
-#endif
Assert.IsNotNull (da.SelectCommand, "#11");
Assert.AreSame (selectCommandText, da.SelectCommand.CommandText, "#12");
Assert.IsNotNull (da.SelectCommand.Connection, "#14");
Assert.IsNull (da.Site, "#16");
Assert.IsNotNull (da.TableMappings, "#17");
Assert.AreEqual (0, da.TableMappings.Count, "#18");
-#if NET_2_0
Assert.AreEqual (1, da.UpdateBatchSize, "#19");
-#endif
Assert.IsNull (da.UpdateCommand, "#20");
}