public ClientTransaction BuildEntity(System.Data.IDataReader reader) { byte[] objectData = DataHelper.GetByteArrayValue(reader[FieldNames.ObjectData]); ContractBase contract = Serializer.Deserialize(objectData) as ContractBase; IEntity entity = Converter.ToEntity(contract); return(new ClientTransaction(reader[FieldNames.ClientTransactionId], (TransactionType)DataHelper.GetInteger(reader[FieldNames.TransactionType]), entity)); }