Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/12/13 13:32:34 (11 years ago)
Author:
mkommend
Message:

#1734: Added StorableConstructor to all storable DataImporter classes.

Location:
branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.DbExplorer.Interfaces
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.DbExplorer.Interfaces/DbColumn.cs

    r7267 r9614  
    2020#endregion
    2121
    22 using System;
    23 using System.Collections.Generic;
    24 using System.Linq;
    25 using System.Text;
    26 using System.Xml;
    2722using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    2823
     
    3025  [StorableClass]
    3126  public class DbColumn {
    32     private DbColumn()
    33       : base() {
    34     }
     27    [StorableConstructor]
     28    protected DbColumn(bool deserializing) : base() { }
    3529
    3630    public DbColumn(string columnName, string sqlDataType) {
  • branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.DbExplorer.Interfaces/DbTable.cs

    r7267 r9614  
    2323using System.Collections.Generic;
    2424using System.Linq;
    25 using System.Text;
    26 using System.Xml;
    2725using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    2826
     
    3028  [StorableClass]
    3129  public class DbTable {
    32     private DbTable()
     30    [StorableConstructor]
     31    protected DbTable(bool deserializing)
    3332      : base() {
    34       this.columns = new List<DbColumn>();
    3533      this.informationLoaded = new DateTime(1990, 1, 1);
    3634    }
    3735
    3836    public DbTable(string ownerName, string tableName)
    39       : this() {
     37      : base() {
     38      this.informationLoaded = new DateTime(1990, 1, 1);
     39      this.columns = new List<DbColumn>();
    4040      this.ownerName = ownerName;
    4141      this.tableName = tableName;
Note: See TracChangeset for help on using the changeset viewer.