Click here to Skip to main content
15,911,711 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Entity Framework : Clone an object and only its childs Pin
dilkonika13-Apr-15 5:04
dilkonika13-Apr-15 5:04 
GeneralRe: Entity Framework : Clone an object and only its childs Pin
Sascha Lefèvre13-Apr-15 5:30
professionalSascha Lefèvre13-Apr-15 5:30 
QuestionEntity Framework : Why this extension is not usable ? Pin
dilkonika10-Apr-15 18:25
dilkonika10-Apr-15 18:25 
AnswerRe: Entity Framework : Why this extension is not usable ? Pin
Dave Kreskowiak10-Apr-15 19:56
mveDave Kreskowiak10-Apr-15 19:56 
GeneralRe: Entity Framework : Why this extension is not usable ? Pin
dilkonika10-Apr-15 20:03
dilkonika10-Apr-15 20:03 
GeneralRe: Entity Framework : Why this extension is not usable ? Pin
Dave Kreskowiak10-Apr-15 20:34
mveDave Kreskowiak10-Apr-15 20:34 
GeneralRe: Entity Framework : Why this extension is not usable ? Pin
dilkonika11-Apr-15 5:33
dilkonika11-Apr-15 5:33 
GeneralRe: Entity Framework : Why this extension is not usable ? Pin
Dave Kreskowiak11-Apr-15 7:00
mveDave Kreskowiak11-Apr-15 7:00 
It doesn't work because Database First entity objects inherit from Object, not EntityObject. Your current Close method would work just fine for a Code First EF model.

The only way to get the Clone() to work is to remove the "As EntityObject" restriction in the function header. Of course, this is going to make your Clone() method available for every type in the application.
A guide to posting questions on CodeProject

Click this: Asking questions is a skill.
Seriously, do it.

Dave Kreskowiak

GeneralRe: Entity Framework : Why this extension is not usable ? Pin
dilkonika11-Apr-15 7:34
dilkonika11-Apr-15 7:34 
GeneralRe: Entity Framework : Why this extension is not usable ? Pin
Dave Kreskowiak11-Apr-15 8:32
mveDave Kreskowiak11-Apr-15 8:32 
GeneralRe: Entity Framework : Why this extension is not usable ? Pin
dilkonika11-Apr-15 8:37
dilkonika11-Apr-15 8:37 
GeneralRe: Entity Framework : Why this extension is not usable ? Pin
Dave Kreskowiak12-Apr-15 5:04
mveDave Kreskowiak12-Apr-15 5:04 
GeneralRe: Entity Framework : Why this extension is not usable ? Pin
dilkonika12-Apr-15 17:58
dilkonika12-Apr-15 17:58 
GeneralRe: Entity Framework : Why this extension is not usable ? Pin
Dave Kreskowiak12-Apr-15 18:36
mveDave Kreskowiak12-Apr-15 18:36 
GeneralRe: Entity Framework : Why this extension is not usable ? Pin
dilkonika12-Apr-15 18:39
dilkonika12-Apr-15 18:39 
GeneralRe: Entity Framework : Why this extension is not usable ? Pin
Dave Kreskowiak13-Apr-15 2:57
mveDave Kreskowiak13-Apr-15 2:57 
GeneralRe: Entity Framework : Why this extension is not usable ? Pin
dilkonika13-Apr-15 5:08
dilkonika13-Apr-15 5:08 
GeneralRe: Entity Framework : Why this extension is not usable ? Pin
Dave Kreskowiak13-Apr-15 6:06
mveDave Kreskowiak13-Apr-15 6:06 
GeneralRe: Entity Framework : Why this extension is not usable ? Pin
Sascha Lefèvre13-Apr-15 6:18
professionalSascha Lefèvre13-Apr-15 6:18 
GeneralRe: Entity Framework : Why this extension is not usable ? Pin
dilkonika13-Apr-15 6:26
dilkonika13-Apr-15 6:26 
QuestionChange URL current in Google Chrome Pin
James Carlo Valdeavilla10-Apr-15 16:26
James Carlo Valdeavilla10-Apr-15 16:26 
QuestionCompare the structure for 2 sql server databases Pin
dilkonika9-Apr-15 17:32
dilkonika9-Apr-15 17:32 
AnswerRe: Compare the structure for 2 sql server databases Pin
Wendelius9-Apr-15 18:08
mentorWendelius9-Apr-15 18:08 
GeneralRe: Compare the structure for 2 sql server databases Pin
dilkonika9-Apr-15 18:45
dilkonika9-Apr-15 18:45 
GeneralRe: Compare the structure for 2 sql server databases Pin
Tim Carmichael10-Apr-15 0:09
Tim Carmichael10-Apr-15 0:09 

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.