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

New Post: EF6 support for ASP.NET WebForms EntityDataSource

I'have just tested the fresh 6.0.0 version : no SmartTag (the config is manual in source panel), but it seems to be working : Great ! With hope it will continie to be supported in future versions of EF...

View Article


New Post: EF 6 - Can an option be set to store Enums as Strings?

There is much more to using strings to store enums than the ability to look at raw data. If you wish to change the order of enum values or add a value to the list you are stuck when using ints. This...

View Article


New Post: Issue migrating from VS2010 to VS2013

i just got hit error as well. restarting VS fixed it. weird.

View Article

New Post: Unit testing with EFa3

I can get it working with a complex where query, but when I use FirstOrDefaultAsync, it breaks. Any ideas?

View Article

New Post: EF 6 - Can an option be set to store Enums as Strings?

Yes you can do it, but its hackery. I used the same hackery on EF4 to be able to use enums, though i stored as int (somewhat easier).public enum Quantity : int { None = 0, Few = 1 << 0, Some = 1...

View Article


New Post: Ability to determine if the context has any pending changes.

When I refactor code, sometimes I can't keep track of whether or not I made changes to an item in my context. To resolve this, I usually add a dummy migrationadd-migration IsThereAnything and if it...

View Article

New Post: Insert with Select MAX

how can we achieve the following statement using EF LINQ? Insert Into [TableName] (a, b, c) Values (Select Max(a) From [TableName], 1, 2) Regards, Tat Sean

View Article

New Post: Support SQL Server HierarchyId data type

Hi! I have the problem with running HierarchyID support in my MVC5 project. :( This part of code throws System.NotSupportedException exception. (The specified type member 'PathId' is not supported in...

View Article


New Post: EF & Mono under Linux

Hi, I want to modify some of my applications to be cross platform and I tried to see how Entity Framework runs under Linux. Using Monodevelop I start with this code:class MainClass { public static void...

View Article


New Post: DbModel StoreItemCollection and EdmFunction (Code First 6.0.1)

The code snippet above is used within the CreateModel method, right? How can I access the added function after instatiating the Context? Thank you!

View Article

New Post: DbModel StoreItemCollection and EdmFunction (Code First 6.0.1)

Probably the easiest place to stick that snippet would be in the Apply method of an IStoreModelConvention<EntityContainer> which you then add to the DbModelBuilder instance in OnModelCreating....

View Article

New Post: MYSQL Code-First Migrations

I solve this problem with this article:http://www.asp.net/mvc/tutorials/security/aspnet-identity-using-mysql-storage-with-an-entityframework-mysql-provider

View Article

New Post: DbModel StoreItemCollection and EdmFunction (Code First 6.0.1)

Thanks Halo_Four!

View Article


New Post: DbModel StoreItemCollection and EdmFunction (Code First 6.0.1)

I'm sorry, but may I ask for your help again constructing that method? I've searched about adding conventions but I'm stuck on how to add the EdmFunction inside the method apply. Thanks alot again!

View Article

New Post: Support SQL Server HierarchyId data type

Hi, I was not able to reproduce your problem. Please could you send me a whole simplified project? +Database create script zgabi

View Article


New Post: EF & Mono under Linux

Do you have the ADO.NET Provider configured in your config file? I was able to make EF work on Mono a while ago (note I used a prerelease version of EF6 and the bugs I hit should now be fixed) - take a...

View Article

New Post: Support SQL Server HierarchyId data type

Hi zgabi, thank you for fast reply. I have sent you the download link via PM. This is step by step, what i do (VS 2013):New project - ASP.NET Web Application - MVCModels - Add - ADO.NET Entity Data...

View Article


New Post: DbModel StoreItemCollection and EdmFunction (Code First 6.0.1)

I misunderstood what you've said, I was able to recognize and execute a similar function, but I'm having trouble now trying to map functions with parameters.

View Article

New Post: DbModel StoreItemCollection and EdmFunction (Code First 6.0.1)

I don't know if it was migrations that weren't working, but now everything works, just added the parameters to the payload. Thanks alot again, guys!

View Article

New Post: Generated SQL has a cast if decimal places are not specified....

Hi I am wondering if someone can clarify following for me.... I have a table where "Price" is defined as "money" When I specify following LINQ query (I am using EF 6) the generated SQL has a cast...

View Article
Browsing all 1793 articles
Browse latest View live


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