No announcements
Found 750959 threads
-
0 Votes
Entity Framework: nullable keys and interfaces
I missed that you had relationships defined in terms of your entity interfaces.Answered | 5 Replies | 9147 Views | Created by Saeed.Taheri - Tuesday, May 4, 2010 4:00 AM | Last reply by Morten Overgaard - Monday, February 7, 2011 7:26 PM -
0 Votes
EF Entity Foreign Key Fields- Nullable vs Non-Nullable
Welcome to the All-In-One Code Framework!Answered | 4 Replies | 4214 Views | Created by mikasten - Wednesday, July 28, 2010 1:32 PM | Last reply by Michael Sun [MSFT] - Tuesday, August 3, 2010 12:53 AM -
0 Votes
Working with table with no primary key in Entity Framework
Hi Raza; Doing what Bob suggest is about the only way to CRUD operations in Entity Framework.Answered | 4 Replies | 6102 Views | Created by Raza Haider - Friday, November 11, 2011 7:39 AM | Last reply by Fernando Soto - MCSD - Thursday, November 17, 2011 3:49 PM -
1 Votes
Composite Keys and the Entity Framework
Do I understand from this thread that I will face troubles with the Entity Framework because I will have a CompositePrimaryKey?Answered | 19 Replies | 25498 Views | Created by Cory the Code Warrior - Monday, November 30, 2009 8:16 PM | Last reply by The Eagle - Thursday, February 3, 2011 8:29 PM -
3 Votes
Entity Framework
But ingeneral use IList<> instead of List<> as Returning an interface type is need to bew more general.Answered | 4 Replies | 2109 Views | Created by Nadim2522 - Thursday, September 6, 2012 7:20 AM | Last reply by Lingaraj Mishra - Friday, September 7, 2012 11:23 AM -
0 Votes
Entity Framework - Primary Key and Foreign Key Namess
However EF doesn't support foreign keys that refer to unique indexes, and not the primary key.Answered | 1 Replies | 1610 Views | Created by Natron61 - Monday, December 30, 2013 3:35 PM | Last reply by davidbaxterbrowne - Monday, December 30, 2013 3:53 PM -
1 Votes
Entity Framework issues with views (and possibly tables as well)
I wanted to the view to return them as non nullable, so that I could use them as primary keys in the entity framework.Answered | 16 Replies | 28582 Views | Created by Jürgen Bayer - Tuesday, October 7, 2008 11:10 PM | Last reply by Michael B. Erickson - Tuesday, December 27, 2011 1:43 AM -
0 Votes
HiLo key generator for the Entity Framework
Unfortunately, I never saw such a implementation of HiLo key generator in EF.Answered | 3 Replies | 7596 Views | Created by mhnyborg - Friday, July 2, 2010 8:17 AM | Last reply by Michael Sun [MSFT] - Monday, March 21, 2011 3:41 PM -
4 Votes
Non-nullable columns in DB becomes "nullable: (none)"
There may be a 2nd step you have to do if you manually change your Column from Nullable to Not Nullable.Answered | 6 Replies | 29595 Views | Created by JH_1984 - Friday, March 19, 2010 9:46 AM | Last reply by Naren.net - Monday, November 14, 2011 7:58 AM -
0 Votes
Entity Framework: Conditional foreign key
* BillingType (BillingTypeId tinyint, Name varchar(50)) ReferencingType and ReferencedType is a foreign key of BillingTypes.Answered | 1 Replies | 4467 Views | Created by TNEmp - Monday, March 2, 2009 10:11 AM | Last reply by Ivan.cnw - Tuesday, March 3, 2009 11:44 PM -
0 Votes
Detecting Violation of PRIMARY KEY constraint in Entity Framework
We will also continue to monitor the Entity Framework forum.Answered | 8 Replies | 7362 Views | Created by Andrew Pierro - Friday, August 3, 2012 2:59 PM | Last reply by Andrew Pierro - Thursday, August 9, 2012 12:36 PM -
0 Votes
Entity Framework 6
public partial class Order { public Order() { this.OrderLines = new HashSet<OrderLine>(); } ...Answered | 2 Replies | 777 Views | Created by VishalKPandey - Monday, August 31, 2015 6:14 PM | Last reply by DA924 - Monday, August 31, 2015 7:08 PM -
0 Votes
Entity Framework 4: is there way that Entity framework can catch error such as duplicated primary key?
http://rogeralsing.com/2009/05/21/entity-framework-4-where-entity-id-in-array/ Lars-Erik MCPD ASP.NET 2.0Answered | 6 Replies | 5963 Views | Created by JJChen - Wednesday, May 4, 2011 9:39 PM | Last reply by Lars-Erik Aabech - Friday, May 6, 2011 7:36 AM -
1 Votes
Map nullable int column to non-nullable int?
Well, you can certainly lie to the entity framework by editing the SSDL directly in the XML editor and setting that column to appear to be nullable to the entity ...Answered | 2 Replies | 8370 Views | Created by joni ba - Monday, August 9, 2010 11:20 AM | Last reply by Noam Ben-Ami - MSFT1 - Tuesday, August 10, 2010 4:25 PM -
0 Votes
One-To-Many relationship and nullable foreign key
In the model the FK is nullable but it has already been set so when you try to delete the BusinessUnit you get an FK violation.Answered | 1 Replies | 1857 Views | Created by Marin Glibic - Sunday, February 2, 2014 1:17 PM | Last reply by JayChase - Sunday, February 2, 2014 2:10 PM -
2 Votes
Entity Key Inference
This supports TPH mapping to views as well as excluding arbitrary columns from the entity mapped to the view.Answered | 7 Replies | 5391 Views | Created by Kevin Dahl - Wednesday, October 28, 2009 10:09 PM | Last reply by BobStretch - Tuesday, January 12, 2010 7:13 PM -
3 Votes
Creating primary key on nullable column
All columns in a primary key must be non-nullable, so, you will have to change thecolumn to be non-nullableAnswered | 3 Replies | 24217 Views | Created by kci - Friday, February 29, 2008 6:23 PM | Last reply by Joe Webb - Saturday, March 1, 2008 2:03 PM -
0 Votes
separated interface Entities and Models
Welcome to the All-In-One Code Framework!Answered | 5 Replies | 3785 Views | Created by TonyKindschuh - Thursday, August 5, 2010 7:32 PM | Last reply by Michael Sun [MSFT] - Monday, August 16, 2010 1:43 AM -
3 Votes
entity framework
The use of db.AddToEmps(Em); is still valid in Entity Framework but the new recommended way to add an object to the Emps table is to use db.Emps.AddObject(Em); as stated in the post.Answered | 4 Replies | 2466 Views | Created by bobbyangara - Friday, December 16, 2011 4:28 AM | Last reply by Fernando Soto - MCSD - Saturday, December 17, 2011 2:27 AM -
0 Votes
Entity Framework , Persistence Ignorance
Please open you Model.tt file, look for this line: foreach (var entity in ItemCollection.GetItems<EntityType>().OrderBy(e => ...Answered | 3 Replies | 3228 Views | Created by XXX_K - Monday, June 11, 2012 7:44 AM | Last reply by Allen_MSDN - Thursday, June 14, 2012 5:47 AM - Items 1 to 20 of 750959 Next ›
No announcements