public override CustomerEntity Entity { get { if (this._entity == null) { this._entity = this.CreateEntityObject(); } this._entity.SetDataRow(this.DataRow); return this._entity; } set { this._entity = value; } } private CustomerEntity _entity;There is no need to duplicate code in each class since Entity is generic type.