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 ArticleNew 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 ArticleNew Post: Issue migrating from VS2010 to VS2013
i just got hit error as well. restarting VS fixed it. weird.
View ArticleNew 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 ArticleNew 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 ArticleNew 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 ArticleNew 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 ArticleNew 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 ArticleNew 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 ArticleNew 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 ArticleNew 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 ArticleNew 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 ArticleNew 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 ArticleNew 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 ArticleNew 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 ArticleNew 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 ArticleNew 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 ArticleNew 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 ArticleNew 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