You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Consider removing the 'EFCore.Design.Tests.Shared' project completely #24
EFCore.Design.Tests.Shared is a C# project containing a test implementation of IRelationalTypeMappingSourcePlugin (TestTypeMappingPlugin.cs) and a class derived from RelationalTypeMappingSource (TestRelationalTypeMappingSource.cs).
They are used in unit tests.
I had put them there because the IRelationalTypeMappingSourcePlugin interface cannot be implemented in VB. It requires to implement a method containing an in parameter modifier. in is similar to the ByRef keyword, except that the in arguments cannot be changed by the called method. There is no equivalent in VB.
TestRelationalTypeMappingSource has not been translated because it also contains a method with an in keyword.
Activity
lorcQc commentedon May 24, 2021
Information
EFCore.Design.Tests.Shared is a C# project containing a test implementation of IRelationalTypeMappingSourcePlugin (TestTypeMappingPlugin.cs) and a class derived from RelationalTypeMappingSource (TestRelationalTypeMappingSource.cs).
They are used in unit tests.
I had put them there because the IRelationalTypeMappingSourcePlugin interface cannot be implemented in VB. It requires to implement a method containing an
inparameter modifier.inis similar to theByRefkeyword, except that theinarguments cannot be changed by the called method. There is no equivalent in VB.TestRelationalTypeMappingSource has not been translated because it also contains a method with an
inkeyword.lorcQc commentedon May 24, 2021
TestTypeMappingPlugin.cs
Is only used in VisualBasicHelperTests.vb to test that method VisualBasicHelper.UnknownLiteral is capable of generating literals from expressions provided by a mapping source.
I believe it is possible to test this without having to implement IRelationalTypeMappingSourcePlugin.
We only need an IRelationalTypeMappingSource which implements this method
Public Function FindMapping(type As Type) As RelationalTypeMappinglorcQc commentedon May 24, 2021
TestRelationalTypeMappingSource.cs
....