These methods are generated in your entities model class which inherits from the base class OpenAccessContext
and implements the methods of the IUnitOfWork interface at the same time. Since these two have the same method signatures, like SaveChanges, Add, Delete, etc...Visual Basic.NET does not allow to have a method with the same name in the inheritor, unless the base method is marked as virtual or abstract (Overridable or MustInherit in Visual Basic.NET)
Since most of the methods in the base OpenAccessContext
are not virtual or abstract by design, we need to generate similar wrapping methods with the 'Reroute'
prefix, implementing the corresponding interface member and invoke the base class implementation inside. Basically it doesn't matter which of the two methods you use (e.g. Add() or Reroute_Add()) - they do the same thing.
You can look at this
StackOverflow thread to see a similar discussion regarding this Visual Basic.NET limitation.
I hope this information is helpful.
Check out the latest announcement
about Telerik Data Access vNext as a powerful framework
able to solve core development problems.