Quantcast
Channel: entityframework Discussions Rss Feed
Browsing all 1793 articles
Browse latest View live

New Post: Code First TVF in 6.1.0-alpha1-30113

So I've been able to successfully map TVFs that return an IQueryable of a scalar type like int as well as TVFs that returns an IQueryable of an entity type where the table schema of the TVF matches...

View Article


New Post: There currently is no way to determine the type of the object...

How do I get around this in an efficient manner so that I do not have to return 10000 fields that I do not care about when all i want is: db.Set<BunchOfFields>().Selelct(x=> new { Name =...

View Article


New Post: There currently is no way to determine the type of the object...

I'm not sure if you explicitly want the discriminator value or if you just want to filter by the discriminator. Assuming the latter, then have you tried something...

View Article

New Post: Code First TVF in 6.1.0-alpha1-30113

@Halo_Four: due to time constraints related to 6.1 schedule I was only able to verify (and fix) code that does simple mapping. I am pretty much sure that for stored procs nothing else (like more...

View Article

New Post: There currently is no way to determine the type of the object...

I probably should have used better Types and a use case. Use Case: Given the below I want the name of every vehicle and I want to know what type it is so I can display an Icon so something like:...

View Article


New Post: Working with Xml Sql Data Type

I have stored procedures that return the Xml Data Type into an ObjectSet<String> and when the Xml exceeds an unknown specific size, it's split up into smaller 'chunks.' I am looking for any...

View Article

New Post: Code First TVF in 6.1.0-alpha1-30113

This looks great! Is there potential for this feature making it into EF 6.1, or will this fore sure be in a post-6.1 release?

View Article

New Post: Code First TVF in 6.1.0-alpha1-30113

@drmcclelland: As explained above this convention is not part of EF (or any other Microsoft) project. I cannot promise anything but the changes that made creating this convention possible are currently...

View Article


New Post: MigrateDatabaseToLatestVersion not using the context parameter

I have already implemented a fix in the following pull request:https://entityframework.codeplex.com/SourceControl/network/forks/BrandonDahler/EntityFramework/contribution/6163 I personally was able to...

View Article


New Post: Code First TVF in 6.1.0-alpha1-30113

No problems. I'm quite grateful for the capabilities exposed thus far and they would serve probably all of my needs. If you managed to get the underlying metadata code to support complex mapping that...

View Article

New Post: Code First TVF in 6.1.0-alpha1-30113

I was poking around in the code last night and found the reason why the mappings weren't working. The MslXmlSchemaWriter class is simply not emitting any ResultMapping and EntityTypeMapping elements. I...

View Article

New Post: Non-generic class derived from a one generic one

Hello, I have a problem with Entity Framework which I don't know how to fix. I've got a generic base class that multiple other classes derive from: public abstract class...

View Article

New Post: Code First TVF in 6.1.0-alpha1-30113

I have not looked into it yet but you are most likely right - the MslXmlSchemaWriter class typically does not write elements that are either not supported in CodeFirst or are not used by the EF...

View Article


New Post: Code First TVF in 6.1.0-alpha1-30113

D'oh, if only I had an extra week. Currently waiting on the bureaucracy to approve the Contribution License Agreement otherwise I could've submitted the pull request already, but I imagine that by the...

View Article

New Post: Code First TVF in 6.1.0-alpha1-30113

You are correct. The changes to support FunctionImports in its current form was one of the last changes we took for EF 6.1 runtime. I would still encourage you to submit this pull request though - once...

View Article


New Post: Code First TVF in 6.1.0-alpha1-30113

It's my side. I hadn't looked into what would be required to submit to CodePlex up until I found this code change and then noticed the whole CLA requirement so that's going through review at my...

View Article

New Post: How to delete many-to-many relationship without loading more...

I want to know an answer to this question in "disconnected mode" (lazy loading turned off). How my C# would look like so that EF would generate similar sql to this:"exec sp_executesql N'delete...

View Article


New Post: Can AddOrUpdate in Seed method disable database Id generation

Hi, I'm currently working on an application where all my entities Id are Guid and with DatabaseGeneratedOption.Identity set. Is there a way to disable this in the AddOrUpdate method when we insert...

View Article

New Post: Poor Performance on Query Generation When Entity Has a Large Number...

We are building an application that allows users to define custom lists. Items in these lists are versionable. To support this, we have an ItemVersions entity that contains a large amount of predefined...

View Article

New Post: Where to get lex.exe and yacc.exe for ESQL grammar changes

@doublek The lex.exe and yacc.exe originally used are a customized version which we unfortunately can't make available due to licensing issues. The plan for if we ever needed to recompile the grammar...

View Article
Browsing all 1793 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>