I am using entity framework and I have created an interface for lease transactions:
Public Interface ILeaseTransaction {int ID {get; } Date Date {Receive; } Receive the decimal amount { }}
Then I created a blank partial square to implement the interface on the unit object:
public partial class Type1LeaseTransaction: ILeaseTransaction {}
This works fine, though the transaction can also contain zero or one void which also has unit objects. I tried to apply VoID as follows:
Public Interface ILeaseTransactionVoid {int TransactionID {get; } Date Date {Receive; } Int typed {received; }}
and empty partial squares ...:
public partial class Type1LeaseTransactionVoid: ILeaseTransactionVoid {}
The problem I am running is when I try to add ILeaseTransactionVoid
to the LeaseTransaction
interface as a property:
Public Interface ILeaseTransaction {IIT {Receive; } Date Date {Receive; } Receive the decimal amount { } IiLIT Transaction Vs. Zero {Received; } // throws this error}
When I try and I get the following error:
'DomainModel.mods. Type 1 Los Transaction does not apply to 'Interface Member' DomainModel.Abstractal.Liz Transaction.VOD '' DomainModel.Models.Type1LeaseTransaction.Void 'DomainModel.Abstract.ILeaseTransaction.Void' can not implement because it contains' DomainModel. Abortal.LesT transsecued does not have matching returns type.
I think the error is incorrect because the return type interface is not only, though it implements the interface. I'm new to all of this, so at this point I am completely lost.
Do I have the nested interface properties ILeaseTransactionVoid
on
Thank you!
So it did not seem very popular, although I managed to find the answer so hopefully That someone finds a useful one day:
As the solution was to keep the interface signature above:
Public interface ILeaseTransaction {int id {get; } Date Date {Receive; } Receive the decimal amount { } IiLIT Transaction Vs. Zero {Received; } // It throws an error}
and changes the way of the entity class interface by adding that interface-specific property as follows:
public partial Class Type 1 Lease Transaction Vide: IILTA Transaction Vide {IIILIT Transaction with IELIT Transaction. Weeds {returns (iiylit transaction weed) zero; }}}
Comments
Post a Comment