Пример #1
0
 /// <summary>
 /// Initializes a new instance of the RecordBase class. This constructor
 /// is used for a record which already exists in the table.
 /// </summary>
 /// <param name="table">The table containing the record.</param>
 /// <param name="bookmark">The bookmark of the record.</param>
 protected RecordBase(TableBase table, Bookmark bookmark)
     : this()
 {
     this.table = table;
     this.Bookmark = bookmark;
 }
Пример #2
0
        /// <summary>
        /// Called when a table is being closed. This removes the table from
        /// the list of open tables.
        /// </summary>
        /// <param name="table">The table being closed.</param>
        private void OnTableClose(TableBase table)
        {
            this.CheckNotDisposed();

            this.openedTables.Remove(table);
            this.Tracer.TraceVerbose("table '{0}' was closed", table.TableName);
        }
Пример #3
0
 /// <summary>
 /// Initializes a new instance of the ReadWriteRecord class. This constructor
 /// is used for a record which already exists in the table.
 /// </summary>
 /// <param name="table">The table containing the record.</param>
 /// <param name="bookmark">The bookmark of the record.</param>
 public ReadWriteRecord(TableBase table, Bookmark bookmark) :
     base(table, bookmark)
 {
 }
Пример #4
0
 /// <summary>
 /// Initializes a new instance of the RecordBase class. This constructor
 /// is used when a new record is being created and will automatically
 /// prepare an insert.
 /// </summary>
 /// <param name="table">The table containing the record.</param>
 protected RecordBase(TableBase table)
     : this()
 {
     this.table = table;
     this.PrepareInsert();
 }
Пример #5
0
 /// <summary>
 /// Initializes a new instance of the ReadWriteRecord class. This constructor
 /// is used when a new record is being created and will automatically
 /// prepare an insert.
 /// </summary>
 /// <param name="table">The table containing the record.</param>
 public ReadWriteRecord(TableBase table) : base(table)
 {
 }
Пример #6
0
 /// <summary>
 /// Initializes a new instance of the ReadWriteRecord class. This constructor
 /// is used when a new record is being created and will automatically
 /// prepare an insert.
 /// </summary>
 /// <param name="table">The table containing the record.</param>
 public ReadWriteRecord(TableBase table) : base(table)
 {
 }
Пример #7
0
 /// <summary>
 /// Initializes a new instance of the ReadOnlyRecord class. This constructor
 /// is used for a record which already exists in the table.
 /// </summary>
 /// <param name="table">The table containing the record.</param>
 /// <param name="bookmark">The bookmark of the record.</param>
 public ReadOnlyRecord(TableBase table, Bookmark bookmark)
     : base(table, bookmark)
 {
 }
Пример #8
0
 /// <summary>
 /// Initializes a new instance of the RecordBase class. This constructor
 /// is used for a record which already exists in the table.
 /// </summary>
 /// <param name="table">The table containing the record.</param>
 /// <param name="bookmark">The bookmark of the record.</param>
 protected RecordBase(TableBase table, Bookmark bookmark) :
     this()
 {
     this.table    = table;
     this.Bookmark = bookmark;
 }
Пример #9
0
 /// <summary>
 /// Initializes a new instance of the RecordBase class. This constructor
 /// is used when a new record is being created and will automatically
 /// prepare an insert.
 /// </summary>
 /// <param name="table">The table containing the record.</param>
 protected RecordBase(TableBase table) : this()
 {
     this.table = table;
     this.PrepareInsert();
 }
Пример #10
0
 /// <summary>
 /// Initializes a new instance of the ReadWriteRecord class. This constructor
 /// is used for a record which already exists in the table.
 /// </summary>
 /// <param name="table">The table containing the record.</param>
 /// <param name="bookmark">The bookmark of the record.</param>
 public ReadWriteRecord(TableBase table, Bookmark bookmark) :
     base(table, bookmark)
 {
 }
Пример #11
0
 /// <summary>
 /// Initializes a new instance of the ReadOnlyRecord class. This constructor
 /// is used for a record which already exists in the table.
 /// </summary>
 /// <param name="table">The table containing the record.</param>
 /// <param name="bookmark">The bookmark of the record.</param>
 public ReadOnlyRecord(TableBase table, Bookmark bookmark) :
     base(table, bookmark)
 {
 }