This is the code but everything is working fine now. Thanks for your help with this.
using (DataModel1Entities db = new DataModel1Entities())
{
Multimaster mmparent = new Multimaster
{
Id = 3,
Value = "inserted"
};
Multimaster mmchild1 = new Multimaster
{
Id = 4,
Value = "inserted"
};
Multimaster mmchild2 = new Multimaster
{
Id = 5,
Value = "inserted"
};
Multidetail md1 = new Multidetail
{
Id = 3,
Multimaster = mmchild1,
Multimaster1 = mmparent,
Value = "inserted"
};
Multidetail md2 = new Multidetail
{
Id = 4,
Multimaster = mmchild2,
Multimaster1 = mmparent,
Value = "inserted"
};
db.AddToMultimasters(mmparent);
db.SaveChanges();
}
}
Search found 105 matches
- Fri 17 Dec 2010 22:08
- Forum: dotConnect for PostgreSQL
- Topic: A Dependent Role has multiple principals with different valu
- Replies: 2
- Views: 4462
- Thu 18 Nov 2010 16:08
- Forum: dotConnect for PostgreSQL
- Topic: Devart Entity Model Template generate data types incorrectly
- Replies: 12
- Views: 1901
- Wed 17 Nov 2010 22:01
- Forum: dotConnect for PostgreSQL
- Topic: Devart Entity Model Template generate data types incorrectly
- Replies: 12
- Views: 1901
- Wed 17 Nov 2010 19:04
- Forum: dotConnect for PostgreSQL
- Topic: Devart Entity Model Template generate data types incorrectly
- Replies: 12
- Views: 1901
- Sat 13 Nov 2010 02:32
- Forum: dotConnect for PostgreSQL
- Topic: Comments on the table columns in Entity Developer
- Replies: 12
- Views: 1606
- Fri 29 Oct 2010 15:36
- Forum: dotConnect for PostgreSQL
- Topic: Devart Entity Model Template generate data types incorrectly
- Replies: 12
- Views: 1901
- Fri 29 Oct 2010 15:28
- Forum: Entity Framework support
- Topic: dotConnect for MySql, Silverlight 4 and RIA Services
- Replies: 9
- Views: 5008
- Thu 28 Oct 2010 15:16
- Forum: dotConnect for PostgreSQL
- Topic: Devart Entity Model Template generate data types incorrectly
- Replies: 12
- Views: 1901
- Tue 26 Oct 2010 23:03
- Forum: Entity Framework support
- Topic: dotConnect for MySql, Silverlight 4 and RIA Services
- Replies: 9
- Views: 5008
Is Item #1 still not support. Are edml models and RIA Services supported in dotConnect for Postgres 4.95.180.0?
Posted: Mon 29 Mar 2010 13:39 Post subject:
--------------------------------------------------------------------------------
1. There is currently no support for .edml models and RIA Services.
Posted: Mon 29 Mar 2010 13:39 Post subject:
--------------------------------------------------------------------------------
1. There is currently no support for .edml models and RIA Services.
- Tue 26 Oct 2010 15:06
- Forum: dotConnect for PostgreSQL
- Topic: Devart Entity Model Template generate data types incorrectly
- Replies: 12
- Views: 1901
I was having a problem setting it the model as well, because the Store had it as non-nullable and and changing the Model gives a fragmented mapping error because we are mapping nullable field to a non-nullable store.
I don't have an actual script for the tables and view I can send you, but just create some tables with non-nullable and nullable fields and use it in the view. The ADO.NET Entity will infer them correctly in the EDMX, but using the Devart Model will set every field as the Entity Key which have to be non-nullable in the EDML.
Thanks,
Charlie J.
I don't have an actual script for the tables and view I can send you, but just create some tables with non-nullable and nullable fields and use it in the view. The ADO.NET Entity will infer them correctly in the EDMX, but using the Devart Model will set every field as the Entity Key which have to be non-nullable in the EDML.
Thanks,
Charlie J.
- Mon 25 Oct 2010 15:01
- Forum: dotConnect for PostgreSQL
- Topic: Devart Entity Model Template generate data types incorrectly
- Replies: 12
- Views: 1901
Devart Entity Model Template generate data types incorrectly
The VS 2010 Devart Entity Model Template and Entity Developer (EDML) generate the CSDL and the SSDL incorrectly from my Database View. It set all the fields in the view to Entity Keys and make them non-nullable. My Database view join 3 tables that have primarly keys, and some some nullable fields in the table. When I generate an EDMX using the ADO.NET Entity Model and dotConnect for Progres Provider it seem to be generated correctly.
I am using dotConnect for Progres 4.95.180.0
Thanks,
Charlie J.
I am using dotConnect for Progres 4.95.180.0
Thanks,
Charlie J.
- Mon 18 Oct 2010 19:00
- Forum: dotConnect for PostgreSQL
- Topic: Multiple insert statements with protocol 3
- Replies: 53
- Views: 10008
- Mon 18 Oct 2010 14:57
- Forum: Entity Developer
- Topic: Foreign Key referencing Unique Key not show as a Navigation
- Replies: 12
- Views: 7925
- Thu 14 Oct 2010 18:27
- Forum: dotConnect for PostgreSQL
- Topic: Multiple insert statements with protocol 3
- Replies: 53
- Views: 10008
Hey.
I am using the new dotConnect for Postgres 4.95.180.0 build.
[Devart]
We have fixed the problem with Unprepared Execute for connections created using DbProviderFactory. The fix will be available in the nearest build, which we plan to release next week.
This seem to have fixed the Unprepared Execute for connections created using DbProviderFactory when Protocol = Ver20. But the problem still exist for when Protocol=Ver30.
[Devart]
The performance problem is caused by the fact that by default Protocol 3 prepares commands before execution. When this preparation is disabled, the performance of Protocol 3 is approximately the same as the one of Protocol 2.
I need a fix for the performance problem when using DbProviderFactory and Protocol = Ver30.
Please run the sample test program you sent me to recreate the problem I am referring too on the latest dotConnect for Postgres version 4.95.180.0
Thanks,
Charlie J.
[/img]
I am using the new dotConnect for Postgres 4.95.180.0 build.
[Devart]
We have fixed the problem with Unprepared Execute for connections created using DbProviderFactory. The fix will be available in the nearest build, which we plan to release next week.
This seem to have fixed the Unprepared Execute for connections created using DbProviderFactory when Protocol = Ver20. But the problem still exist for when Protocol=Ver30.
[Devart]
The performance problem is caused by the fact that by default Protocol 3 prepares commands before execution. When this preparation is disabled, the performance of Protocol 3 is approximately the same as the one of Protocol 2.
I need a fix for the performance problem when using DbProviderFactory and Protocol = Ver30.
Please run the sample test program you sent me to recreate the problem I am referring too on the latest dotConnect for Postgres version 4.95.180.0
Thanks,
Charlie J.
[/img]
- Mon 11 Oct 2010 14:39
- Forum: dotConnect for PostgreSQL
- Topic: Multiple insert statements with protocol 3
- Replies: 53
- Views: 10008
Ok. I understand. Thanks. So the fixed you mention that will be ready this week, will fix the performance problem for using DBProviderFactory.
[Devart]
We have fixed the problem with Unprepared Execute for connections created using DbProviderFactory. The fix will be available in the nearest build, which we plan to release next week.
[Devart]
We have fixed the problem with Unprepared Execute for connections created using DbProviderFactory. The fix will be available in the nearest build, which we plan to release next week.