No announcements
Found 3266687 threads
-
0 Votes
How to annotate EF model class for the equivalent of HasMany, WithOptional and HasForeignKey
User-821857111 posted There are no annotation equivalents for the HasMany or WithOptional methods.Answered | 3 Replies | 86 Views | Created by Anonymous - Tuesday, December 12, 2017 11:53 AM | Last reply by Anonymous - Monday, December 18, 2017 8:12 AM -
1 Votes
Mapping exclusive-or relationship with EF code-first
Rowan, Herer are the updated TPC mappings for the Account - Contact XOR relationships using CT5: public class ...Answered | 5 Replies | 6223 Views | Created by dfoukas - Thursday, December 2, 2010 4:09 PM | Last reply by dfoukas - Monday, December 20, 2010 4:16 PM -
0 Votes
EF 4.1 Foreign Key Problem
EF mustn't create separate FK for it.Answered | 2 Replies | 4560 Views | Created by TimJohnson_1 - Thursday, April 14, 2011 1:32 AM | Last reply by gsogo - Thursday, April 14, 2011 4:18 PM -
0 Votes
Cannot found an functional example for one-to-many relation ship between tables
Ok, I must learn EF a little bit more.Answered | 3 Replies | 583 Views | Created by PaulBiz - Tuesday, September 6, 2016 7:18 PM | Last reply by PaulBiz - Thursday, September 8, 2016 6:30 PM -
2 Votes
EF CTP4: Foreign key relationships not coming out as expected
d.visit) refers to FlaggedDate?Answered | 4 Replies | 6712 Views | Created by cedubose - Monday, September 13, 2010 9:53 PM | Last reply by Rowan Miller - Monday, September 27, 2010 5:14 PM -
3 Votes
How to use EF when the model is evolving
Is there any reccomended way to use EF when the model is evolving and changing?Answered | 6 Replies | 3260 Views | Created by Dean Blakely - Tuesday, September 14, 2010 12:11 AM | Last reply by Michael Sun [MSFT] - Monday, September 20, 2010 1:18 AM -
2 Votes
EF6 CodeFirst - Property in Class (Table) with Navigation to itself
This is caused by the fact that this algorithm was originally created for the Database First/Model First version of EF.Answered | 4 Replies | 773 Views | Created by NoFear23m - Saturday, December 20, 2014 4:35 PM | Last reply by NoFear23m - Sunday, December 21, 2014 7:46 PM -
1 Votes
How do I setup my TableEntity class to use Data Annotations model validation with PK & RK
I have run into some kind of model validation exception on the delete of DetailsView and GridView rows that are hooked up to DeleteMethod with data annotations model ...Answered | 9 Replies | 6932 Views | Created by Luke Latham - Monday, September 22, 2014 3:10 PM | Last reply by Luke Latham - Sunday, October 5, 2014 9:04 PM -
2 Votes
EF 4.1 Code First - what is the equivalent of [NotMapped] in fluent API?
You can add it in the EntityTypeConfiguration<StockItem> Like this public class StockItemMap : EntityTypeConfiguration<StockItem> { public ...Answered | 4 Replies | 22442 Views | Created by Stan B - Monday, August 1, 2011 3:42 PM | Last reply by Joel Weiss - Tuesday, May 8, 2012 9:23 PM -
0 Votes
in model first, how do I get my EF classes to be based on the existing domain classes I have?
The entity designer creates an EF model (.EDMX file).Answered | 13 Replies | 5697 Views | Created by callagga - Monday, May 17, 2010 12:21 AM | Last reply by callagga - Friday, May 21, 2010 1:59 AM -
0 Votes
Data annotations without EF / EF Code First does not like multiple FKs to same table
Hi, If you are mapping to an existing database then give the "Reverse Engineer Code First" functionality from the EF Power Tools a ...Answered | 4 Replies | 6847 Views | Created by jme1234 - Wednesday, May 18, 2011 4:23 PM | Last reply by Rowan Miller - Thursday, May 19, 2011 8:57 PM -
0 Votes
HasIndependentKey() in documentation EF CodeFirst but not in implementation?
Hi Jan, Yes, Map is used to configure keys that are not exposed in the model.Answered | 1 Replies | 6592 Views | Created by Jan C. de Graaf --working at New Limit-- - Monday, March 21, 2011 1:49 PM | Last reply by Rowan Miller - Thursday, March 24, 2011 8:55 PM -
0 Votes
CF EF CTP5 enums in model how to?
Ef didn´t support Enums This is the principal request for next version:Answered | 1 Replies | 4845 Views | Created by Kuvalda.Spb.Ru - Thursday, January 6, 2011 8:18 PM | Last reply by Felipe Fujiy Pessoto - Thursday, January 6, 2011 10:06 PM -
1 Votes
Abstract Base Types with Entity Framework
If I create base classes, and inherit from them, it is ignorant of the base classes and performs mapping on the inherited classes.Answered | 3 Replies | 9204 Views | Created by Stacey Cielia - Thursday, October 14, 2010 7:23 PM | Last reply by Rowan Miller - Wednesday, November 17, 2010 7:32 PM -
0 Votes
ForeignKet Annotation in EF4.1 problem
Thanks a lot MCAD/MCTAnswered | 3 Replies | 2715 Views | Created by Antonio Castro Jr - Wednesday, June 22, 2011 5:14 PM | Last reply by Antonio Castro Jr - Thursday, June 23, 2011 12:54 PM -
0 Votes
Modeling and Mapping question/probplem with album thumbnail
I agree my design was bad, just not sure how to make it better...?Answered | 7 Replies | 6565 Views | Created by Valmont33 - Wednesday, December 8, 2010 4:14 AM | Last reply by NSGaga - Sunday, December 12, 2010 12:07 PM -
0 Votes
EF 4 question - model different from database schema
Let's leave the question of how validation is actually implemented aside for a moment, and just talk about the model: What I'm hearing is that you created a second model ...Answered | 4 Replies | 3888 Views | Created by RScullard - Sunday, November 14, 2010 5:39 PM | Last reply by liurong luo - Thursday, November 25, 2010 7:41 AM -
0 Votes
EF code first for existing db and model class
> When we work with EF code first with existing db then we have to write c# class which represent db table.Answered | 1 Replies | 362 Views | Created by Sudip_inn - Sunday, December 10, 2017 4:28 PM | Last reply by Bob Ding - Monday, December 11, 2017 11:54 AM -
0 Votes
How to add a EF Model Designer in a Custome Application ?
Hi all, I really liked the features 'SQL schema generation' and 'Entity classes generation' against a defined Model provided by Entity Framework.Answered | 2 Replies | 2943 Views | Created by SWSF - Thursday, September 30, 2010 11:11 AM | Last reply by Gil Fink - Monday, October 4, 2010 6:04 AM -
0 Votes
Code First Data Annotations Generation bug report
I believe what cole wu means is like public class Blog { [Key] public int PrimaryTrackingKey { get; set; } public string Title { get; set; ...Answered | 2 Replies | 479 Views | Created by jzrobot - Tuesday, April 12, 2016 3:56 PM | Last reply by chanmm - Tuesday, April 19, 2016 8:41 AM - Items 1 to 20 of 3266687 Next ›
No announcements