Click here to Skip to main content
15,891,607 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Screen size and Form size Pin
Dave Kreskowiak30-Oct-16 11:05
mveDave Kreskowiak30-Oct-16 11:05 
GeneralRe: Screen size and Form size Pin
desanti30-Oct-16 13:45
desanti30-Oct-16 13:45 
GeneralRe: Screen size and Form size Pin
NotPolitcallyCorrect30-Oct-16 14:34
NotPolitcallyCorrect30-Oct-16 14:34 
GeneralRe: Screen size and Form size Pin
Dave Kreskowiak30-Oct-16 17:53
mveDave Kreskowiak30-Oct-16 17:53 
AnswerRe: Screen size and Form size Pin
Mycroft Holmes30-Oct-16 17:31
professionalMycroft Holmes30-Oct-16 17:31 
QuestionAn easy way of implementing INotifyPropertyChanged on entity Framework Pin
desanti27-Oct-16 14:58
desanti27-Oct-16 14:58 
AnswerRe: An easy way of implementing INotifyPropertyChanged on entity Framework Pin
Brisingr Aerowing27-Oct-16 16:11
professionalBrisingr Aerowing27-Oct-16 16:11 
QuestionEntity Framework : Save new object and new childs Pin
desanti27-Oct-16 7:22
desanti27-Oct-16 7:22 
Hello !
I'm using vb.net 2013 and entity Framework 6.
I'm trying to save a new object and a child object like this :

MyObject ---- id , nm , value
ChildObject ---- id , name , vl , MyObjectID ( Foreign key related with id on MyObject )

Dim obj1 as Myobject
Dim child1 as ChildObject
obj1=new MyObject
obj1.nm="123"
obj1.value=25
obj1.ChildObjects=New List(of ChildObject)
child1=new ChildObject
child1.name="abc"
child1.vl="efd"
obj1.ChildObjects.Add(child1)
context.MyObjects.add(obj1)
Context.SaveChanges


After this code , the obj1 is saved on database , but the child1 is not saved. No error messages.
What can I do ?
AnswerRe: Entity Framework : Save new object and new childs Pin
Dave Kreskowiak27-Oct-16 11:04
mveDave Kreskowiak27-Oct-16 11:04 
GeneralRe: Entity Framework : Save new object and new childs Pin
desanti27-Oct-16 14:53
desanti27-Oct-16 14:53 
GeneralRe: Entity Framework : Save new object and new childs Pin
Dave Kreskowiak28-Oct-16 9:44
mveDave Kreskowiak28-Oct-16 9:44 
GeneralRe: Entity Framework : Save new object and new childs Pin
desanti28-Oct-16 10:14
desanti28-Oct-16 10:14 
GeneralRe: Entity Framework : Save new object and new childs Pin
Dave Kreskowiak28-Oct-16 11:00
mveDave Kreskowiak28-Oct-16 11:00 
GeneralRe: Entity Framework : Save new object and new childs Pin
desanti28-Oct-16 11:47
desanti28-Oct-16 11:47 
GeneralRe: Entity Framework : Save new object and new childs Pin
Dave Kreskowiak28-Oct-16 12:14
mveDave Kreskowiak28-Oct-16 12:14 
QuestionHow to Get a Folder(shell32) icon into a listview in visual basic 6 - Cannot get this right Pin
4SAI26-Oct-16 6:46
4SAI26-Oct-16 6:46 
QuestionUnderstanding Interface From Previous Developer Pin
hilli_micha26-Oct-16 6:44
hilli_micha26-Oct-16 6:44 
AnswerRe: Understanding Interface From Previous Developer Pin
Richard Deeming26-Oct-16 9:22
mveRichard Deeming26-Oct-16 9:22 
AnswerRe: Understanding Interface From Previous Developer Pin
Ralf Meier30-Oct-16 4:47
mveRalf Meier30-Oct-16 4:47 
GeneralRe: Understanding Interface From Previous Developer Pin
hilli_micha31-Oct-16 1:54
hilli_micha31-Oct-16 1:54 
QuestionCheck if record exists Pin
Member 1281653926-Oct-16 2:55
Member 1281653926-Oct-16 2:55 
AnswerRe: Check if record exists Pin
Richard MacCutchan26-Oct-16 3:20
mveRichard MacCutchan26-Oct-16 3:20 
GeneralRe: Check if record exists Pin
Member 1281653926-Oct-16 3:22
Member 1281653926-Oct-16 3:22 
GeneralRe: Check if record exists Pin
Richard MacCutchan26-Oct-16 3:29
mveRichard MacCutchan26-Oct-16 3:29 
QuestionTreview prevent drag/drop according to destination node Pin
desanti24-Oct-16 9:38
desanti24-Oct-16 9:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.