No announcements
Found 2917691 threads
-
0 Votes
How to override DbContext ValidateEntity for parent entity
I am looking for ideas on how to override DbContext ValidateEntity to work with a parent / child entity situation. ...Answered | 3 Replies | 3374 Views | Created by pretzelb - Tuesday, November 8, 2011 1:09 AM | Last reply by pretzelb - Wednesday, November 9, 2011 11:30 PM -
0 Votes
How to get the DbContext of an Entity
Hello, If I understand correctly, you want to get the dbcontext object from an entity object. Unfortunately, for ...Answered | 1 Replies | 846 Views | Created by Amin-Mashayekhi - Tuesday, January 28, 2014 12:28 PM | Last reply by Fred Bao - Wednesday, January 29, 2014 4:20 AM -
1 Votes
InvalidOperationException on DbContext Add Entity
I just changed my Entity Framework code generation to POCO using DbContext. I use 2 ways to add a new entity: 1: ...Answered | 1 Replies | 3864 Views | Created by TvRaak - Friday, October 5, 2012 8:31 AM | Last reply by Miguel Fernández Corral - Friday, October 5, 2012 8:41 AM -
0 Votes
MVC3 - Parent \ Child model binding and Entity Framework 4.1 DbContext
which has access to the underlying DbContext to perform the save\update operations. If it's a new parent object, I can just add to the ...Answered | 1 Replies | 5921 Views | Created by Dylan Morley - Tuesday, December 13, 2011 1:39 PM | Last reply by Fly_fish - Monday, December 19, 2011 9:00 AM -
1 Votes
Complex entity validation and dbContext change tracking issue
it raises another issue in that dbContext will call ValidateEntity for each changed child entity (which could be quite a few). It would be wasteful ...Answered | 4 Replies | 2359 Views | Created by pretzelb - Thursday, November 3, 2011 4:23 PM | Last reply by pretzelb - Friday, November 4, 2011 4:51 PM -
0 Votes
Override parent visual
Is it possible to override the visual of a parent? Of course you can always draw on top of a parent object, but can you somehow draw transparency that clears ...Discussion | 2 Replies | 4328 Views | Created by Negativë - Wednesday, June 17, 2009 8:32 PM | Last reply by Jim Zhou - MSFT - Tuesday, June 30, 2009 6:45 AM -
0 Votes
Finding "Parent" tables in DbContext
project. I have worked out that I want to import data to any EF "Parent" tables first in order that I don't try to create a Child ...Unanswered | 5 Replies | 2102 Views | Created by ChangedDaily - Sunday, December 16, 2012 10:41 PM | Last reply by Glenn Condron - Thursday, January 3, 2013 7:14 PM -
0 Votes
Entity Framework / DBContext Objects
call Dispose, but in most common scenarios you don’t need to. For example, the DbContext will be released off the database connection after the ...Unanswered | 2 Replies | 438 Views | Created by James 8.1 - Tuesday, December 20, 2016 7:50 PM | Last reply by James 8.1 - Thursday, December 29, 2016 12:29 AM -
0 Votes
Entity framework DBContext - SQL Azure.
Hello, If I understand correctly, you want to specify the connection while creating the instance for the DbContext. From my opinion, it ...Answered | 2 Replies | 2434 Views | Created by Ramesh Bolla - Friday, September 20, 2013 8:31 AM | Last reply by Fred Bao - Monday, September 23, 2013 6:44 AM -
0 Votes
Adding entity to DbContext not possible
and OriginalValues throw an InvalidOperationException saying that the entity is not attached to the current DbContext. Please show the detail information ...Answered | 1 Replies | 618 Views | Created by Mythos33 - Wednesday, November 19, 2014 7:26 AM | Last reply by Fred Bao - Thursday, November 20, 2014 5:05 AM -
0 Votes
Guidelines for using DBContext
How many DBContexts can be used in an application. Are there any guidelines defined for how Context classes inherited from DBContext should be ofganized in ... -
1 Votes
How to override parent class property in child class ?
Hi i've created class which inherited from a class. now, i want to change Text property to update UI with my own code. but i don't override this, because ...Answered | 1 Replies | 3578 Views | Created by Hamed_1983 - Wednesday, February 10, 2010 11:21 AM | Last reply by Oleksandr Klymenko - Wednesday, February 10, 2010 11:44 AM -
0 Votes
How to fix a parent for an entity..??
basically, when I put a text box, using Blend or Drag and Drop option of visual studios, the text box makes it margin with respect of some other entity already present in the view, so I want ...Unanswered | 4 Replies | 1544 Views | Created by Developer3092 - Sunday, February 5, 2012 12:05 AM | Last reply by WinPhoneDevs - Sunday, February 5, 2012 8:54 PM -
0 Votes
1 Entity 2 Tables with DbContext Generator?
mapping for all key properties (Usuarios.UsuarioID) of the EntitySet Usuarios. i tried everithing but still i cant figure out how to map 2 tables (1 ...Proposed | 3 Replies | 5195 Views | Created by George Domingos - Monday, March 14, 2011 5:42 AM | Last reply by Rowan Miller - Thursday, March 17, 2011 7:01 PM -
0 Votes
Entity Frame work use for child parent
child change. How i could reach to child from parent in entity frame work to manage this idea. Thanks for ...Answered | 1 Replies | 1004 Views | Created by Aliprofessional - Saturday, June 22, 2013 9:41 AM | Last reply by Chester Hong - Tuesday, June 25, 2013 8:41 PM -
1 Votes
EF implicit creation of a DBContext for entity queries?
>how does that work? Is there some implicit creation of a context under the covers? it retrieves the data form database and adds to memory. ...Answered | 1 Replies | 281 Views | Created by RKendal - Tuesday, May 10, 2016 2:11 AM | Last reply by Zhanglong Wu - Tuesday, May 10, 2016 6:13 AM -
0 Votes
Getting value from parent entity
DateCreated is not a member of the WorkQueueItems, the only thing that shows up in the intellisense are things like SUM and AGGREGATE. I need to get the parent ...Unanswered | 1 Replies | 3911 Views | Created by Fresno Bob - Saturday, September 27, 2008 2:37 PM | Last reply by WilliamStacey - Sunday, September 28, 2008 3:01 AM -
0 Votes
Parent Child entity
Hi michaelgr123; Line to Entity Framework does not have support for the TSQL keyword LIKE which is what you are looking for. ...Unanswered | 3 Replies | 1643 Views | Created by michaelgr123 - Tuesday, August 21, 2012 9:06 AM | Last reply by Fernando Soto - MCSD - Wednesday, August 22, 2012 2:34 PM -
0 Votes
Should logical parent / child entity be split into separate DbSet properties of DbContext?
The other main difference is that in the context they used a separate DbSet for each entity instead of just the parent. I begin to ...Answered | 2 Replies | 1934 Views | Created by pretzelb - Monday, November 14, 2011 6:12 PM | Last reply by pretzelb - Tuesday, November 15, 2011 5:05 PM -
0 Votes
Entity Framework 4.3.1 DBContext and dynamic ConnectionString
about the constructor. To be clear, I would like to be able to create in code this: <configSections>Unanswered | 3 Replies | 7932 Views | Created by BernardG7801460 - Thursday, April 12, 2012 10:19 AM | Last reply by Mohammad Mashayekh - Monday, March 4, 2013 5:49 AM - Items 1 to 20 of 2917691 Next ›
No announcements