No announcements
Found 3033831 threads
-
2 Votes
EF 4.1 Code First - what is the equivalent of [NotMapped] in fluent API?
I have this code (generated by EF power tools, by the way): protected override void OnModelCreating(DbModelBuilder modelBuilder) { ...Answered | 4 Replies | 22391 Views | Created by Stan B - Monday, August 1, 2011 3:42 PM | Last reply by Joel Weiss - Tuesday, May 8, 2012 9:23 PM -
1 Votes
Map complex type per entity with EF 4.1 fluent API
Hi Ladislav, You can also customize the complex type columns names at the entity level with fluent API in EF 4.1.Answered | 1 Replies | 5589 Views | Created by Ladislav Mrnka - Thursday, March 24, 2011 10:08 AM | Last reply by Morteza Manavi - Thursday, March 24, 2011 2:58 PM -
0 Votes
Code First Fluent API Ignore() does not wrork
We will fix this before the first release of Code First.Answered | 2 Replies | 5799 Views | Created by NNZZ - Thursday, December 30, 2010 5:18 PM | Last reply by NNZZ - Tuesday, January 4, 2011 9:56 AM -
6 Votes
EF 4.1 Code First and TPC Inheritance Mapping
Hi Morteza and Miguel, What you are describing seems to match a an issue we found very late in EF 4.1 RTW cycle and we decided to postpone ...Answered | 3 Replies | 8530 Views | Created by Morteza Manavi - Tuesday, April 19, 2011 9:10 PM | Last reply by Morteza Manavi - Thursday, April 21, 2011 2:05 AM -
0 Votes
EF 4.0 vs EF 4.1(ObjectContext vs DbContext) what are advantage and disadvantage?
Hi Mr.Weera PongPruchya; From the ADO.NET team blog :Answered | 1 Replies | 3337 Views | Created by Mr.Weera PongPruchya - Tuesday, December 27, 2011 3:51 PM | Last reply by Fernando Soto - MCSD - Tuesday, December 27, 2011 4:30 PM -
0 Votes
EF 4.1 Code first collection loading problem when using abstract class
For cases in which you are using the Code First API to map to an existing database it shouldn't have an impact either, since no queries generated by EF ...Answered | 2 Replies | 4065 Views | Created by Passion_ - Monday, May 30, 2011 6:45 PM | Last reply by Jackie-Sun - Thursday, June 2, 2011 9:36 AM -
0 Votes
4.1 Code First property holding Xml document?
EF doesnt support this yet.Answered | 1 Replies | 4704 Views | Created by Henrik Dahl - Tuesday, June 7, 2011 11:46 PM | Last reply by Holger Kreissl - Wednesday, June 8, 2011 7:19 AM -
0 Votes
EF 4.1 Code First - don't like mapping attributes
Fluent API does the job nicely.Answered | 5 Replies | 4413 Views | Created by Stan B - Friday, May 20, 2011 5:37 PM | Last reply by Stan B - Thursday, June 2, 2011 5:15 PM -
8 Votes
Where can I find NotMapped attribute
As of EF 5, you'll need this: using System.ComponentModel.DataAnnotations.Schema; http://www.mattslay.comAnswered | 3 Replies | 22197 Views | Created by Mirek.M - Friday, March 18, 2011 8:37 AM | Last reply by Matt Slay - Saturday, December 8, 2012 5:48 AM -
0 Votes
Bug in EF 4.1 DatabaseGeneratedOption.Computed?
Hi Alan, I am facing a similar problem in my Code First Project.Answered | 8 Replies | 18253 Views | Created by Ladislav Mrnka - Saturday, March 26, 2011 11:00 PM | Last reply by Vasim - Sunday, August 12, 2012 6:13 AM -
0 Votes
Entity Framework 4.1 Attriute to fluent API
EF team has released a power tool, it could generate Fluent API easily.Answered | 3 Replies | 6365 Views | Created by Fausto Scardovi - Tuesday, May 17, 2011 4:44 PM | Last reply by Alan_chen - Tuesday, May 31, 2011 2:59 AM -
0 Votes
EF 4.1 Code First Question
So when you specify the relationship in code first and then map the FK to a particular table column we know that that FK being mapped must belong to CountryTranslation and ...Answered | 6 Replies | 5492 Views | Created by Guy Dillen - Monday, March 21, 2011 6:44 PM | Last reply by Andriy Svyryd - Thursday, March 24, 2011 6:34 PM -
0 Votes
Conditional mapping in Fluent API
We will look at adding support in the future but it won't be available in the first RC/RTM.Answered | 3 Replies | 6363 Views | Created by Ladislav Mrnka - Tuesday, March 1, 2011 12:11 PM | Last reply by Rowan Miller - Wednesday, March 9, 2011 11:15 PM -
0 Votes
EF 4.1 Validation Question
To determine if EF will provide extra validation can you describe what validation is currently performed in your POCO-classes?Answered | 4 Replies | 4652 Views | Created by Guy Dillen - Monday, March 21, 2011 11:21 AM | Last reply by Andriy Svyryd - Wednesday, March 23, 2011 6:12 PM -
0 Votes
EF 4.1 RC1: How to Define Attribute Conventions?
In the meantime, I adapted the DbContext subclass published at the link below to accomplish what I wanted to ...Answered | 2 Replies | 7741 Views | Created by Chris Thoman - Monday, April 4, 2011 3:38 AM | Last reply by Chris Thoman - Friday, April 22, 2011 1:33 AM -
0 Votes
mapping collections of components with code first and the fluent API
Primary key is necessary - there is no way to avoid this with code-first.Answered | 2 Replies | 3621 Views | Created by Luis Miguel Abreu - Tuesday, May 10, 2011 10:20 AM | Last reply by Luis Miguel Abreu - Wednesday, May 11, 2011 8:33 AM -
0 Votes
EF Code First Custom Schema Mapping
Alan Chen[MSFT] MSDN Community Support | Feedback to us Get or Request Code Sample from Microsoft Please remember to mark ...Answered | 3 Replies | 4734 Views | Created by pretzelb - Friday, October 7, 2011 5:25 PM | Last reply by Alan_chen - Friday, October 14, 2011 1:36 AM -
0 Votes
EF 4.1 Code First with Oracle Database
Code First will work, I done some simple testing.Answered | 4 Replies | 17291 Views | Created by rsknowles - Tuesday, April 5, 2011 3:52 PM | Last reply by Paul Ramsperger - Monday, April 25, 2011 8:27 PM -
3 Votes
possible bug with Inheritance and NotMapped
What's wrong with this?Answered | 15 Replies | 12292 Views | Created by BenK3 - Wednesday, March 14, 2012 11:53 AM | Last reply by Shane Hancock - Friday, October 12, 2012 2:37 AM -
1 Votes
Problems with EF 4.1 Installer
I still cannot install EF 4.1 on this machine, it keeps telling me that This application requires .NET Framework 4.0 Client Profile RTM...Answered | 7 Replies | 9425 Views | Created by LanceLinq - Wednesday, April 20, 2011 3:41 PM | Last reply by LanceLinq - Saturday, April 23, 2011 10:25 PM - Items 1 to 20 of 3033831 Next ›
No announcements