No announcements
Found 3760631 threads
-
1 Votes
EF: Associations with child entities
It seems that the workable options are: (a) Do not split the table, (b) Use a database view to handle the inheritance and a proc for updatesAnswered | 3 Replies | 3831 Views | Created by Alastair Grant - Tuesday, July 27, 2010 2:18 PM | Last reply by Michael Sun [MSFT] - Monday, August 2, 2010 6:16 AM -
0 Votes
Using EF Core entity if child view also exists throws error
I want to use product view and product entities.Unanswered | 7 Replies | 1128 Views | Created by Anonymous - Tuesday, March 23, 2021 6:24 PM | Last reply by Anonymous - Wednesday, March 24, 2021 10:52 AM -
0 Votes
EF add child to existing parent throws DbUpdateConcurrencyException
EF is not going to save anything if it doesn't think the object has been "marked dirt", which means that object changed while it was in context, or you set the object dirty ...Answered | 1 Replies | 1555 Views | Created by persian developer - Monday, November 23, 2015 9:08 AM | Last reply by DA924 - Monday, November 23, 2015 2:41 PM -
0 Votes
Add child to existing parent record in entity framework.
Try the following code to add the entity: static void SaveEntity(Entity entity) { if (entity == null) throw new ...Answered | 1 Replies | 7912 Views | Created by Shawn Mclean - Thursday, April 15, 2010 2:03 AM | Last reply by Devart team - Thursday, April 15, 2010 2:36 PM -
0 Votes
Dot Net core: Entity framework core for postgresql
Hi Jayakumar Vinayagam, According to your description and related link, it seems that you use OS-X system developing. we know EF can be used on all ...Answered | 1 Replies | 1025 Views | Created by VJK08 - Monday, September 12, 2016 6:29 AM | Last reply by Zhanglong Wu - Tuesday, September 13, 2016 2:59 AM -
0 Votes
Clone entity with child entities and update foreign keys of child entities after insert
If you set the PK of the parent entity to 0 and then run SaveChanges(), it will throw an exception.Answered | 1 Replies | 1445 Views | Created by DapperDev_ - Tuesday, September 20, 2016 8:30 PM | Last reply by Zhanglong Wu - Wednesday, September 21, 2016 6:53 AM -
0 Votes
Anyone using Entity Framework (EF) for data layer?
The object manager is used in the BLL and DAL to work with a Customer object as an example for all CRUD operations with the Customer EF Entity on the ...Answered | 6 Replies | 5749 Views | Created by pretzelb - Tuesday, August 30, 2011 12:20 AM | Last reply by darnold924 - Friday, October 28, 2011 11:28 PM -
0 Votes
Not supported exception throws while using entities
It also doesn't support things like LastOrDefault.Answered | 12 Replies | 639 Views | Created by Akila_R - Wednesday, October 7, 2015 5:02 AM | Last reply by CoolDadTx - Wednesday, October 7, 2015 2:03 PM -
0 Votes
Sorting Child of Child Entity
If you have any feedback, please tell us.Answered | 4 Replies | 4040 Views | Created by Bob Harrison - Monday, June 21, 2010 2:15 PM | Last reply by Michael Sun [MSFT] - Monday, June 28, 2010 2:16 AM -
0 Votes
EF Code first: Mapping of entities to existing database with relationship table
I got almost the same answer here, ...Answered | 3 Replies | 8632 Views | Created by Per Dahl - Sunday, April 17, 2011 9:41 PM | Last reply by Per Dahl - Monday, April 18, 2011 8:24 PM -
0 Votes
.Net Core Framework with Entity Framework for Oracle
I developed a Web API using .NET CORE and using the ORACLE database.Answered | 3 Replies | 2329 Views | Created by DeveloperAM - Monday, August 8, 2016 1:24 PM | Last reply by Solitto - Friday, February 16, 2018 1:01 AM -
0 Votes
Using EF, inserting child table records for existing parent records
If you have any feedback, please tell us.Answered | 1 Replies | 4408 Views | Created by jeffreystrauss - Thursday, August 26, 2010 7:28 PM | Last reply by liurong luo - Friday, September 3, 2010 12:43 PM -
0 Votes
EF Views With Left Joins Not Displaying database data returned
Using views sure is a easy way to introduce hard to detect bugs.Answered | 2 Replies | 2005 Views | Created by chuck02323 - Wednesday, November 14, 2012 7:22 PM | Last reply by chuck02323 - Monday, November 19, 2012 5:38 PM -
0 Votes
Selecting different views using the Entity Framework
In your scenario, I don't recommand you use EF, each View will mapping an entity in EF.Answered | 4 Replies | 3766 Views | Created by MrTouya - Sunday, January 9, 2011 3:00 PM | Last reply by Alan_chen - Monday, January 17, 2011 3:41 AM -
0 Votes
Lazy Loading and Retrieving child entities
If you want to deliver an entity graph through a service you should use eager loading (using the Include method) and load the child or the ...Answered | 1 Replies | 3594 Views | Created by Saeed.Taheri - Thursday, November 18, 2010 8:51 AM | Last reply by Gil Fink - Thursday, November 18, 2010 9:53 AM -
0 Votes
Issue with WCF and Entity Framework and child nested classes
And yes I use DTO(s) and send them between the tiers in n-tier or between the WCF client and service using EF or not using EF.Answered | 6 Replies | 2082 Views | Created by spark29er - Monday, September 21, 2015 11:28 PM | Last reply by DA924 - Tuesday, September 22, 2015 4:44 PM -
0 Votes
Entity Framework : How to use SQL Server View by EF
In your case, you could let the View return the sub-query of the last query in following code.Answered | 3 Replies | 751 Views | Created by Sudip_inn - Monday, September 26, 2016 7:03 PM | Last reply by Naomi N - Tuesday, September 27, 2016 10:20 AM -
0 Votes
Highlight changes in DataGrid bount to Entity EF
I also use partial classes to create special properties that combine data from two tables (based on an entity's navigation properties).Answered | 14 Replies | 3580 Views | Created by whiteheadw - Tuesday, October 9, 2012 8:57 PM | Last reply by whiteheadw - Thursday, October 11, 2012 4:41 PM -
0 Votes
Use EF with DDD principles is possible ???
https://www.entityframeworktutorial.net/code-first/what-is-code-first.aspx https://www.entityframeworktutorial.net/efcore/entity-framework-core ...Answered | 10 Replies | 835 Views | Created by AngeloNew - Friday, April 5, 2019 4:53 PM | Last reply by AngeloNew - Friday, April 12, 2019 4:07 PM -
0 Votes
Delete child entity from detached parent
Unfortunately, there is no easy way to achieve what you are trying to do in EF 3.5.Answered | 9 Replies | 6023 Views | Created by John W C - Monday, August 16, 2010 3:25 AM | Last reply by Julia Kornich - Wednesday, August 25, 2010 12:21 AM - Items 1 to 20 of 3760631 Next ›
No announcements