On Wed, Jan 20, 2010 at 18:51, Muthu Annamalai <[email protected]> wrote:
> a record in customer table using Entity Framework all the PK’s were inserted
> as 0. I searched online and changed all the PK’s as Identity column, still
> no luck. See the sample row.

Reading this looks like you're talking about FK. Anyway if you have
proper associations created in your model and code, the EF will do the
FKs for you.

I.e.
Person p = new Person();
p.Name = "...";
p.Role = <some role/new role object>;
context.Persons.Add(p);
context.SaveChanges();

-- 
Jiri {x2} Cincura (CTO x2develop.com)
http://blog.cincura.net/ | http://www.ID3renamer.com

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Firebird-net-provider mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

Reply via email to