New Post: Performance issues
Hi Arthur,Thanks for your reply. We are inserting one row at a time in a loop, the loop is in a function which is called from many threads. This is the NHibernate code while (!_isDone) {...
View ArticleNew Post: Performance issues
axceler,One thing to try is disabling DetectChanges on the context using: entities.Configuration.AutoDetectChangesEnabled = false;Beyond that, I'm not sure what else to suggest but I'll let some...
View ArticleNew Post: Entity's state isn't updated
Hi, Arthur! Thank you for thorough explanation!!With regards,Eugene
View ArticleNew Post: Bug: Update-Database –TargetMigration: $InitialDatabase Roll forward!
Try "-TargetMigration:0"
View ArticleNew Post: Create MigrationSqlGenerator for PostgreSQL
Darionato,Apologies for the delay, I just returned from vacation.I will get back to you early this week.Cheers,Andrew.
View ArticleNew Post: Adding indexed fields from the designer
Can you clarify what the "indexed field" is?Thanks, Pawel
View ArticleNew Post: Adding indexed fields from the designer
Another ORM tool that I've used allows me to set a boolean property for fields in the object model. This boolean property indicates whether or not a database index should be created for this...
View ArticleNew Post: Performance issues
Thanks Arthur, we had already tried that, it did not make any difference.
View ArticleNew Post: Bug: Update-Database –TargetMigration: $InitialDatabase Roll forward!
$InitialDatabase (and 0) does not necessarily mean an empty database; it is merely the state of the database before you started using Migrations. Do you have any additional information that might help...
View ArticleNew Post: Create MigrationSqlGenerator for PostgreSQL
Darionato,I took a look at the EDMX and it looks like that one was generated using the SQLCE provider. Can you re-attach the EDMX generated by targeting Postgres?Cheers,Andrew.
View ArticleNew Post: Create MigrationSqlGenerator for PostgreSQL
Hi Andrew,I hope you had a great time in your past vacation!I re-attach the EDMX model: https://dl.dropbox.com/u/6660682/model_postgres.edmxThank you so much.Cheers,Dario.
View ArticleNew Post: Create MigrationSqlGenerator for PostgreSQL
Taking a look into the EDMX file, I saw that in the MaxLength attribute has the value "Max" instead a number! This should be the problem. In the SqlCe EDMX model there is a "4000" value.Where i can fix...
View ArticleNew Post: Create MigrationSqlGenerator for PostgreSQL
I suspected this might be the problem.I will investigate this end. For now, you can try setting the length explicitly via the MaxLengthAttribute or the HasMaxLength fluent API.Cheers,Andrew.
View ArticleNew Post: Is it possible to extend the Migration Scaffolding to generate code...
I'd really like to be able to specify my required indexes like:[Index(Name="idx_column", IsUnique=false, IsClustered=false)]publicstring Column { get; set; }and then have the Add-Migration scaffolding...
View ArticleNew Post: Is it possible to extend the Migration Scaffolding to generate code...
Scott,Not easily currently, but we are working on it and this is one of the core scenarios we want to enable.The problem right now is that, although you can define your own annotation (as of EF6), it...
View ArticleNew Post: Entity View generation
Hi Massimiliano,We looked a bit more into view generation for EF6. Take a look at the design meeting notes from Nov 20, 2012...
View ArticleNew Post: Entity View generation
Hi mozzyk,i'waiting for the view API, maybe should be cool to have a pluggable code generation system so you can decide to generate what you want (generate on classes\resources\ec..)Regards Max
View ArticleNew Post: Create MigrationSqlGenerator for PostgreSQL
I don't understand why the "Companies" table is perfect in the edmx model but the "Users" table has set all the maxlength attribute to "max" value: // Companies table definition. It's ok CreateTable(...
View ArticleNew Post: Create MigrationSqlGenerator for PostgreSQL
Try setting the max length on your model itself. i.e. Use the MaxLengthAttribute on the relevant properties in the User class or do the same thing using the HasMaxLength fluent API from OnModelCreating.
View ArticleNew Post: Additional ObjectContext and EntityConnection constructors
Hi Tamas,We discussed this in the EF design meeting (Notes: http://entityframework.codeplex.com/wikipage?title=Design%20Meeting%20Notes) and decided that we would be happy to accept a contribution for...
View Article