I have following EF code first code. I am getting the following exception:
\'GiftCouponPayment\' does not contain an identity column.
On your PaymentComponent class decorate the ID with KeyAttribute
[Key] public int PaymentComponentID { get; set; }