I am currently reading this book and am trying to write it in
VB.NET and I have a question about the IENTBaseEntity Implementation on page 43.
The main idea (what i understand of it) is that the auto generated code from the HRPaidTimeOff.dbml should ideally not be modified by the user, but we want the ENTUserAccount to implement the IENTBaseEntity interface.
The C# code:
Code:
public partial class ENTUserAccount : IENTBaseEntity { }
The
VB code (i think this is correct):
Code:
Partial Public Class ENTUserAccount
Implements IENTBaseEntity
End Class
When i have this code (the
vb version) in the CustomizedEntities.
vb
I get the error of IntelliSense that this class does not implement the interface properties, because the concerning properties do not append the
Code:
Implements Framework.IENTBaseEntity.InsertDate
I dont know if this is a requirement in C# (to append the above code) but how can i fix this error without modifying the HRPaidTimeOff.dbml code?
If I let IntelliSense implement this Interface, it renames the concerning properties to InsertDate1, InsertENTUserAccountID1 and so on, or is this the purpose of the partial class?
Thanks in advance
Haegendoorn