1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89
|
public class FeatureType : BusinessBase
{
#region Private Properties
private int _featureTypeId;
private string _featureTypeName;
private int _featureTypePosition;
private bool _featureTypeHasFeatures;
#endregion
#region Constructors
public FeatureType() :
base()
{
Initialize();
}
public FeatureType(FeatureType featureType) :
base()
{
Initialize(featureType);
}
public FeatureType(DataRow row) :
base()
{
Initialize(row);
}
public FeatureType(int featureTypeId) :
base()
{
Load(featureTypeId);
}
#endregion
...
#region Methods
protected override void Initialize()
{
...
}
protected override void Initialize(FeatureType featureType)
{
this._featureTypeId = 0;
this.FeatureTypeName = featureType.FeatureTypeName;
this.FeatureTypePosition = featureType.FeatureTypePosition;
this.FeatureTypeHasFeatures = featureType.FeatureTypeHasFeatures;
}
protected override void Initialize(DataRow row)
{
...
}
public override string ToString()
{
return String.Format("FeatureType : [{0}, {1}, {2}, {3}]",
this.FeatureTypeId,
this.FeatureTypeName,
this.FeatureTypePosition,
this.FeatureTypeHasFeatures);
}
public override object Clone()
{
return new FeatureType(this);
}
#endregion
#region SQL Methods
protected override void Load(int airpotId)
{
...
}
protected override void Save()
{
...
}
protected override void Delete()
{
...
}
#endregion
} |
Partager