Ejemplo n.º 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;
 }
Ejemplo n.º 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);
        }
Ejemplo n.º 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)
 {
 }
Ejemplo n.º 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();
 }
Ejemplo n.º 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)
 {
 }
Ejemplo n.º 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)
 {
 }
Ejemplo n.º 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)
 {
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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();
 }
Ejemplo n.º 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)
 {
 }
Ejemplo n.º 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)
 {
 }