I'm using Entity Framework 6 with VB.NET.
The problem is that when I add a new 'user' object to the context, an additional user is added.
This is the code:
Dim Db As New DbModel
' Create a new user
Dim NewUser = New User With {
.UserName = txtUserName.Text.Trim,
.Password =...
I am an absolute beginner. But I searched the net. There are not many example shown in VB anywhere.
I have created a test project which holds the win form. Then added another project which holds the Entity Model, after building the Model I added a reference of this to the Win form project...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.