entityframework

  1. R

    'Add' function adds two objects instead of one. Is this a bug?

    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 =...
  2. A

    Cannot save record using Entity Framework in winform

    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...
Back
Top