0

I'm trying to inherit a dbset from my dbcontext to codify new methods in it. I wouldn't like to create an extension, I prefer an inherited class to preserve original dbset to other tasks. I've seen this link:

Inherits from DbSet<T> with the purposes to add property

but I need it in VB, this is in C# and I don't know how to translate it. Is this a good way? Any new suggestion? Can you help me translate previous post? Thanks in advance!

Community
  • 1
  • 1
lake274
  • 11
  • 2
  • [c# to vb.net convertion tool](http://converter.telerik.com/) – Eminem Feb 15 '16 at 11:58
  • Thanks Eminem, I tried it but things like IDerivedDbSet interface declaration are not, escape me and I don't know how to code. – lake274 Feb 15 '16 at 12:09
  • I dont see any code in that answer that you can not convert using the conversion tool. The c# code in the answer is very similer to its fellow VB.Net code. Just remove some brackets etc... – Eminem Feb 15 '16 at 12:12
  • My problem is with IDerivedDbSet interface. I do not know how to declare. The rest of the code is perfectly translated. – lake274 Feb 15 '16 at 12:16
  • [Interfaces](https://msdn.microsoft.com/en-us/library/28e2e18x.aspx) – Eminem Feb 15 '16 at 12:17
  • Thanks again. My problem is with this in particular. – lake274 Feb 15 '16 at 12:19

0 Answers0