+2004-06-04 Gert Driesen <drieseng@users.sourceforge.net>
+
+ * Constraint.cs: marked methods internal to fix public API
+ * ConstraintCollection.cs: to fix public API, use
+ DataTable.fInitInProgress to check whether initialization
+ of DataTable is in progress
+ * DataColumn.cs: added stubs for missing methods
+ * DataRowBuilder.cs: marked Table property internal to
+ fix public API
+ * DataSet.cs: removed extra empty destructor, marked
+ OnMergeFailed internal to fix public API
+ * DataTable.cs: use fInitInProgress field to hold init
+ status, to match MS.NET
+ * DataView.cs: added missing attributes on IsOpen
+
2004-06-03 Atsushi Enomoto <atsushi@ximian.com>
* DataSet.cs : Use NameTable.Get() before calling LookupNamespace()
}
}
- protected internal void UpdateIndex (DataRow row)
+ internal void UpdateIndex (DataRow row)
{
if (row.RowState == DataRowState.Detached || row.RowState == DataRowState.Unchanged)
Index.Insert (new Node (row), DataRowVersion.Default);
}
}
- protected internal void RollbackIndex (DataRow row)
+ internal void RollbackIndex (DataRow row)
{
Node n = Index.Find(row, DataRowVersion.Default);
if ( n == null)
//When AddRange() occurs after BeginInit,
//it does not add any elements to the collection until EndInit is called.
- if (this.table.InitStatus == DataTable.initStatus.BeginInit){
- // Keep reference so that they can be added when EndInit() is called.
+ if (this.table.fInitInProgress) {
+ // Keep reference so that they can be added when EndInit() is called.
_mostRecentConstraints = constraints;
return;
}
unique = true;
}
-
[MonoTODO]
internal void AssertCanAddToCollection()
{
//Check if Default Value is set and AutoInc is set
}
-
+
+ [MonoTODO]
+ protected internal void CheckNotAllowNull ()
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ protected void CheckUnique ()
+ {
+ throw new NotImplementedException ();
+ }
+
[MonoTODO]
protected internal virtual void
OnPropertyChanging (PropertyChangedEventArgs pcevent) {
#region Properties
- protected internal DataTable Table {
+ internal DataTable Table {
get { return table; }
}
#endregion // Public Events
- #region Destructors
-
- ~DataSet ()
- {
- }
-
- #endregion Destructors
-
#region IListSource methods
IList IListSource.GetList ()
{
WriteXml (writer, XmlWriteMode.DiffGram);
}
- XmlSchema IXmlSerializable.GetSchema ()\r
- {\r
- return BuildSchema ();\r
- }\r
+ XmlSchema IXmlSerializable.GetSchema ()
+ {
+ return BuildSchema ();
+ }
protected virtual bool ShouldSerializeRelations ()
{
{
}
- protected internal virtual void OnMergeFailed (MergeFailedEventArgs e)
+ internal virtual void OnMergeFailed (MergeFailedEventArgs e)
{
if (MergeFailed != null)
MergeFailed (this, e);
private DataRowBuilder _rowBuilder;
private ArrayList _indexes;
private RecordCache _recordCache;
+ protected internal bool fInitInProgress;
-
// If CaseSensitive property is changed once it does not anymore follow owner DataSet's
// CaseSensitive property. So when you lost you virginity it's gone for ever
private bool _virginCaseSensitive = true;
- /// <summary>
- /// An enum variable indicating whether BeginInit() or EndInit() is called.
- /// Delegate to call a function which performs cleanup after EndInit() is called
- /// </summary>
- internal enum initStatus { NotInitialized, BeginInit, EndInit };
- private initStatus _initStatus;
-
#endregion //Fields
private delegate void PostEndInit();
-
- internal initStatus InitStatus {
- get{ return( _initStatus ); }
- }
-
/// <summary>
/// Initializes a new instance of the DataTable class with no arguments.
/// </summary>
public virtual void BeginInit ()
{
- _initStatus = initStatus.BeginInit;
+ fInitInProgress = true;
}
/// <summary>
[MonoTODO]
public virtual void EndInit ()
{
- _initStatus = initStatus.EndInit;
- // Add the constraints
- PostEndInit _postEndInit = new PostEndInit (_constraintCollection.PostEndInit);
- _postEndInit();
-
-
+ fInitInProgress = false;
+ // Add the constraints
+ PostEndInit _postEndInit = new PostEndInit (_constraintCollection.PostEndInit);
+ _postEndInit();
}
/// <summary>
[DataSysDescription ("Indicates the data returned by this DataView has somehow changed.")]
public event ListChangedEventHandler ListChanged;
+ [Browsable (false)]
+ [DataSysDescription ("DataViewIsOpenDescr")]
protected bool IsOpen {
[MonoTODO]
get {